Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 9th, 2006, 8:20 PM   #1
DBZ
Newbie
 
Join Date: Feb 2006
Posts: 22
Rep Power: 0 DBZ is on a distinguished road
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.
DBZ is offline   Reply With Quote
Old Apr 9th, 2006, 8:24 PM   #2
Toro
Hobbyist Programmer
 
Toro's Avatar
 
Join Date: Apr 2006
Posts: 136
Rep Power: 0 Toro is an unknown quantity at this point
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.
Toro is offline   Reply With Quote
Old Apr 9th, 2006, 8:45 PM   #3
Mjordan2nd
The Supreme Ruler
 
Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6 Mjordan2nd is on a distinguished road
~Moved
__________________
"Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children." - Dwight D. Eisenhower
Mjordan2nd is offline   Reply With Quote
Old Apr 9th, 2006, 9:09 PM   #4
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
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.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Apr 9th, 2006, 9:43 PM   #5
Mocker
Hobbyist Programmer
 
Mocker's Avatar
 
Join Date: Oct 2005
Location: Indiana
Posts: 224
Rep Power: 0 Mocker is an unknown quantity at this point
Send a message via AIM to 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
__________________
#programmingforums relay - http://thegupstudio.com/cgi-bin/pforelay.cgi
freelance scripts - http://ryanguthrie.com/index.html
Mocker is offline   Reply With Quote
Old Apr 10th, 2006, 4:12 PM   #6
DBZ
Newbie
 
Join Date: Feb 2006
Posts: 22
Rep Power: 0 DBZ is on a distinguished road
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
DBZ is offline   Reply With Quote
Old Apr 10th, 2006, 4:22 PM   #7
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Apr 10th, 2006, 4:40 PM   #8
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4 Polyphemus_ is on a distinguished road
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.
Polyphemus_ is offline   Reply With Quote
Old Apr 17th, 2006, 12:20 AM   #9
DBZ
Newbie
 
Join Date: Feb 2006
Posts: 22
Rep Power: 0 DBZ is on a distinguished road
is there an ecryption program for this?
__________________
im a professional programmer
DBZ is offline   Reply With Quote
Old Apr 17th, 2006, 8:07 AM   #10
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
what is this `this` you speak of?
Cerulean is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:11 PM.

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