FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Prevent my website from being downloaded

 


jawker
im working on my website at present and i would like my site to secured.. i mean i want to prevent others from downloading my site.. does anyone of you guys know how i could do this? like i opened my site from the internet and i tried the "file -> save as" from my browser and saved it on my desktop.. when i checked it out, my javascripts, styles, and other files where all saved on the desktop..i would like to prevent this.. i hope someone could help me thanks.
clogfan
Hi,

It is impossible to do what you want. You could open your site in a blank window, without the menu. That'll prevent the regular visitor to use "file - save as", but not the person that really wants your site. And if someone wants to browse offline, and thus lets his browser download your site for offline viewing, you can't avoid that either.

Disadvantage is that you need javascript to be active, as in HTML you cannot specify how a new window should be opened. This might lead to difficulties for users to view your site if they disabled javascript.

Maybe Flash might help, but I cannot judge that as I never used Flash.

Good luck !
jawker
i do believe it is possible because i've seen sites where i tried to save it to my harddisk and all i get is request java information and a blank browser saved on my disk
homer09001
simply seperate your code into different files name them randomly and create a simple php file using teh following code:

Code:


<?php
include("18346283.htm");
?>



this should in theory not download al the files otherwise i pass
Grimboy
By the time the page has been viewed by the user it's already been downloaded. You could shut out part of your audience by using some long javascript hack, but I doubt any would be fully whole proof.

Wanting to do this is very old-man-on-counsil-estate-with-big-dog. Why would you need to protect your pages anyway? This goes against common internet etiquette.
Naif
What exactly are you trying to protect? The images on your site, the content, the webpage graphics, the HTML code or what?

If you dont want others to see or steal your HTML code, then you can encrypt it. Yeah, its impossible to encrypt HTML documents because they are nothing more than ASCII files, I know that. But still its possible to encrypt HTML documents using Javascript technology. To learn more about it, refer to this webpage:

http://www.html-protector.com/encrypt/password_protect_html.aspx

You can even download a free trial of their application from there. The application has quite a handful of interesting features.

To find a list of more applications you can use to encrypt your HTML documents, go to download.com and search for "HTML encrypt"

All the best....
izcool
I don't see any reason on why you would want to protect your work from being "downloaded". As mentioned in other people's replies above mine, they can get to the source one way or another. They can get the HTML source by going to View >> Source Code, opening a new window to get all the toolbars, disabling JavaScript, and other common methods like that. Only some very picky sites actually succeed with doing a good job with finding the source. I know some video sites have a page that directs to the video file where it cannot be downloaded, very tricky to get past. Big sites like http://www.msn.com/ have their source code so screwed up that it would be near impossible to decode it all to get one bit out of it. (They removed all of the lines and blank spaces to probably save room, make page loads go quicker, and hard to try to get one bit of source code out of.

- Mike.
sonam
He, he, he,
You can simple disable "Save As" function in IE and Mozila Firefox (tested only on localhost) with three things. These things are very expensive but today I have big heart. A Cool lso you can use this thinks on both html or php pages (others I didn’t tested).

OK, first, put this CSS link in head of your page. CSS is little bit irregular but it is working. Of course, don’t try to create CSS file. This moment is very important because I find this trick before two years but I didn’t publishing it. Rolling Eyes

Code:
<link rel="stylesheet" href="no:save.css" type="text/css">


Second put this nosave iframe on the end of page.

Code:
<IFRAME NAME='nosave' SRC= nosave.htm' WIDTH='0' HEIGHT='0' SCROLLING='no' MARGINWIDTH='0' MARGINHEIGHT='0' STYLE="border: 0; "></IFRAME>


Third, go on my site and download my sig. Then create link to my site, hi, hi, hi. I am joking…




…or maybe not! Wink

Sonam

P.S.
Don’t forget to post here how is everything working on Netscape and Operaaaaaaaaaaaaa. Of course, like others, I think this is not necessary because every kid can fake this protection.
Related topics

New anime website being started
i want to play video from my site
Windows Tips&tricks!
Web site structure and filenames
Folder structure and file names - index or name, php or html

Great! Bandwidth all used up
Web developer
Fantastico could be updated
more space
Online file storage

problem with my computer
Raise limit on points
Need comments for my site
Mac OS tiger running on vmware
Global Warming Source..
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.