Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do I stop someone from downloading a web page

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi
How do I stop someone from downloading a webpage.
 
Stop them from downloading?

Uh, you mean so that their browser wont even load your page?

Or do you mean to stop the "File SAVE AS" function of a browser?


Sorry, you can't
 
Well, there are some work arounds if you want to protect your HTML code. None of them work 100%. Here are some steps you can take:
1) you can embed them in frames (one frame of zero width, and the other of 100% width with the file), so when the user clicks on View Source, he'll see the frameset document. You can repeat the embedding as many times as you want. Hole: user can right-click and choose "view source" from the context menu.
2) you can open the file with sensitive information in a new popup window with all the menus and toolbars disabled. Then you also run a special script in <head onload=&quot;your_function()&quot;> that will disabled the right mouse click (do you have one?). After that the only way to break the defense for the nosy user is to go back to previous file, view source and copyhe url for the link. then paste the link in the address bar and view the file. after that choose &quot;save as&quot; from the file menu. ---
---
 
check
you cannot prevent people from downloading your page if they go to it... that how the browser displays it. you can, though, make it nore difficult for users to download. adam@aauser.com
 
uh, ludiddream, that link dosn't work theEclipse
eclipse_web@hotmail.com
**\\||It was recently discovered that research causes cancer in rats||//**
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top