Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide html source & disable right click and text copy?

Tags:

html

The following website has both right click and view source disabled.

http://www.immihelp.com/visitor-visa/sponsor-documents.html

Can anyone shine some light on how this is possible?

like image 226
beeflavor Avatar asked Jul 06 '11 13:07

beeflavor


People also ask

How do I hide HTML source code?

After encrypting it, you can just write a basic HTML page just putting into the <head> tag once again the script to disable the right click, into the <body> tag you code and hide everything just writing at top of the page <html hidden> .

How do I hide HTML code from inspect element?

You simply can't. Code inspectors are designed for debugging HTML and JavaScript. They do so by showing the live DOM object of the web page. That means it reveals HTML code of everything you see on the page, even if they're generated by JavaScript.

How do I disable page source view?

If you want to disable view source from a browser menu, you will have to force open a new window with menubar/toolbar disabled. However, it is still defeated easily if the person really knows how to deal with "javascript." Therefore, there is no permanent way to do so.


1 Answers

The following website has both right click and view source disabled.

They fooled you. Just scroll down in view-source.

Furthermore, employing such tactics marks you as unprofessional. Don’t do it.

like image 167
Konrad Rudolph Avatar answered Oct 07 '22 01:10

Konrad Rudolph