Partially disable html code protection
Автор: Дмитрий Тулупов
Просмотрено 822,
Подписчики 1,
Размещенный 0
Greetings to all lovers and fans of X5!
On some pages of my site there are forms for specifying your Email address.
Many users use Copy-Paste to specify their email.
The enabled HTML code protection function prevents right-clicking on all pages of the site.
How can I disable this feature on certain pages, especially those with a feedback form?
Is it possible to improve this function so that in certain places on the page it is allowed to use the right mouse button?
If you have a solution, please indicate where to put this code in the constructor.
In any case, many thanks in advance to everyone.
Sincerely,
Dmitriy Tulupov.
Размещено
I know this is not what you ask for - but: Remove the protection.
You need not to be a experienced user to be able to copy elements, and using F+12 and Ctrl+U can be used to show and inspect the code anyway. It is a "false" protection if you think it can be used to prevent much.
Автор
I understand what you are talking about and you are right in your own way. But I'm interested in selective protection on some pages of my site. If you have a solution, please send!
You CANNOT protect a page that you publish on the net. https://www.quora.com/How-can-I-hide-my-websites-source-code-and-prevent-anyone-from-viewing-page-source
But you can make it difficult. Could you tell some more about what it is you want to prevent the users from.
Then someone could maybe tell a way how to make it very difficult for a user to do what you do not want him/her to do on that page. But I think you will have to remove the general protection on all pages.
In the link I give in this post, it can be seen that it is not possible to protect 100% but for certain cases you can make it troublesome for the user.
Things that happen only on the server (typically PHP) you can make it impossible for a user to see what happens.
Things that happens on the client (typically java, html, CSS) you cannot prevent the user to find out what is going on - but you can make it troublesome.
So - what is it you want to prevent the user from seeing?
Автор
I have read this article. And I think that I'm really worried about this protection, because it can be easily bypassed, and create inconvenience for users.
Thank you for putting me on the right path!
I wish you all the best!
(It > En)... regardless of the philosophy about the usefulness of protection, which instead has a logical purpose that goes beyond the protection itself, ...it is still possible, ...and you could use one of my simple and historical methods...
... if you are interested, either re-enable this Topic, or open a new Topic, ... otherwise ignore my Post...
Hello, ciao
.