Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   JavaScript and Client-Side Browser Scripting (http://www.programmingforums.org/forum23.html)
-   -   Need a javascript disabling people to view source or saving a site (http://www.programmingforums.org/showthread.php?t=9294)

DBZ Apr 9th, 2006 7:20 PM

Need a javascript disabling people to view source or saving a site
 
Does anyone got a javascript or know one where you can make people to not save your site or view your source? Cuz I am a bit annoyed about people stealing stuff.

So far Ive written a couple of javascripts eventually none did work perfectly. so im hoping to get a perfect one.

Toro Apr 9th, 2006 7:24 PM

um...Java is not Javascript. Java is a programming language. Javascript is a scripting language thats only for webpages. And i dont think you can do this but I not 100% but I also think PHP can if you were to use that b/c it doesnt show on the "view source" page. Correct someone if I am wrong about PHP.

Mjordan2nd Apr 9th, 2006 7:45 PM

~Moved

Dameon Apr 9th, 2006 8:09 PM

If you don't send them your content then they can't view it. If you do send it they can. If they can view it, then they can save it, copy it, send it, etc. It is as simple as that. As simple as turning off javascript. Or bringing up the source view another way. Or any number or other ways. Attempting to prevent such "theft" via annoying scripts only defers the least informed. If you have something worth protecting, then look into copright/trademark/patent law. What sort of content are you trying to protect? Preventing people from saving images? Text? Or are you concerned about people discovering vulnerabilities in your serverside scripts? If it is because of that last point, you have a lot to learn about security. Otherwise, perhaps you should rethink the value of even bothering with such measures.

Mocker Apr 9th, 2006 8:43 PM

for a linux/apache server here is the best way to prevent people from viewing the source

"killall -9 httpd"

or maybe in your .htaccess file

deny from all

.. if someone can see your website in their browser then they can see the source. PHP and other scripts just generates that source dynamically, you can still see the source it sends. Anything that is client-ran like javascript is sent to that users computer, so therefore they have complete access to it. Take daemons advice and brush up on Internet 101

DBZ Apr 10th, 2006 3:12 PM

Quote:

Originally Posted by Mocker
for a linux/apache server here is the best way to prevent people from viewing the source

"killall -9 httpd"

or maybe in your .htaccess file

deny from all

.. if someone can see your website in their browser then they can see the source. PHP and other scripts just generates that source dynamically, you can still see the source it sends. Anything that is client-ran like javascript is sent to that users computer, so therefore they have complete access to it. Take daemons advice and brush up on Internet 101

i need window, not linux but thxs tho

DaWei Apr 10th, 2006 3:22 PM

If you don't realize that re-posting your question again isn't going to change the answer, then I don't suppose you'll realize that what you're asking is silly, and I don't suppose you'll realize Java isn't Javascript. C is not chocolate and C++ is not chocolate chips. It woiks like that.

Polyphemus_ Apr 10th, 2006 3:40 PM

Quote:

Originally Posted by Mocker
for a linux/apache server here is the best way to prevent people from viewing the source

"killall -9 httpd"

or maybe in your .htaccess file

deny from all

.. if someone can see your website in their browser then they can see the source. PHP and other scripts just generates that source dynamically, you can still see the source it sends. Anything that is client-ran like javascript is sent to that users computer, so therefore they have complete access to it. Take daemons advice and brush up on Internet 101

Yup, a commonly used technique. You can place 'deny from all' in the httpd.conf file (if I recall correctly), too.

DBZ Apr 16th, 2006 11:20 PM

is there an ecryption program for this?

Cerulean Apr 17th, 2006 7:07 AM

what is this `this` you speak of?


All times are GMT -5. The time now is 6:43 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC