Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can view source be disabled by a website?

Is it possible I create a webpage that doesn't allow the website source to be displayed?

like image 249
Alex Stelea Avatar asked Feb 11 '11 07:02

Alex Stelea


People also ask

Can you disable view page source?

Technically, you can't. The client has to receive the HTML to display it. You can try to hide it using frames, but some browsers offer the option to view frame source. Also, a savvy user will know how to get at the source even if you use frames.

Why is View Source blocked?

Blocking “View Source” is a way of securing through obscurity. Such methods should not be relied upon to provide significant protection. Security by obscurity is discouraged and not recommended by most standards bodies like NIST. That security by obscurity does not work was demonstrated as far back as 1851.

How do you prevent people from viewing source code?

See Create a role. On the Edit Role page, click Source Code. Under Permissions for Specific Repositories, select a repository in the project and specify this role's access to the repository as a whole. To block users with this role from seeing this repository at all, select No Access.

Why can't I view the page source?

Too many files in the Internet cache Make sure your Internet cache and history are cleared out. Having too much information in the cache or corrupt files could cause various issues to occur in Internet Explorer. How to clear Internet browser history.


1 Answers

No.

like image 117
wilson Avatar answered Sep 27 '22 17:09

wilson