Restrict people to save HTML pages

Asked By 20 points N/A Posted on -
qa-featured

How can I restrict people to save the HTML pages that I created in a website?

SHARE
Best Answer by Sharath Reddy
Answered By 0 points N/A #119773

Restrict people to save HTML pages

qa-featured

 

There are scripts that can disable right clicks such as:
 
<script language="JavaScript1.2"> 
 
function disabletext(e){ 
return false 
 
function reEnable(){ 
return true 
 
//if the browser is IE4+ 
document.onselectstart=new Function ("return false") 
 
//if the browser is NS6
if (window.sidebar){ 
document.onmousedown=disabletext
document.onclick=reEnable
</script>
 
But these are just only to disable the right click. Still your data's, tet
are visible in the site. People now are way too genius to generate codes illegally.
 
Others get your data by using print screen and here's a code to disable clipboard:
 
<style media="print"> 
 
body { 
 
display : none; 
 
 
</style> 
 
</HEAD> 
 
<BODY onload=setInterval("window.clipboardData.clearData()",20)> 
 
</BODY> 
 
</HTML>
 
 
Also, here's to disable Printing:
 
<style media="print"> 
     body { 
          display : none; 
     } 
</style>
 
 
Still user's can save web pages as HTML or as text files under File menu, Save As command.
I don't seem to find a way to disable everything that won't allow users to save everything from your website.
So even if you are using codes, still it's useless.
Best Answer
Best Answer
Answered By 590495 points N/A #119774

Restrict people to save HTML pages

qa-featured

 

There are really no sure ways of preventing other people from saving a webpage or maybe from saving your website’s own webpage. The latest versions of web browsers that are being launched nowadays include the function of viewing the source code of the webpage or every webpage you have visited. This function is not only present from the versions being launched today but is supported in all versions of web browsers even from the very first version created. And most especially, web browsers have the ability to save web pages as an HTML file.

There is really no sure fire on this. If you don’t want others to save your website’s page then you should not have published the webpage after all. There are options to disable right-clicks on a webpage to prevent your images from being copied by others but this doesn’t prevent the user from viewing and accessing the source code of the webpage.

Answered By 0 points N/A #119775

Restrict people to save HTML pages

qa-featured

In general, just about all internet sites are generally readily readable by simply any individual who would like to see these individuals. Needing a new end user label in addition to private data gain access to several hypersensitive areas of your website means that you can restrict access to merely a picked couple of those who realize the secret unique codes. Restricting access:

Create a directory for the password file.

Create the password file.

Create a .htaccess file.

 

Related Questions