![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Feb 2006
Posts: 22
Rep Power: 0
![]() |
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. |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
Join Date: Apr 2006
Posts: 136
Rep Power: 0
![]() |
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.
|
|
|
|
|
|
#3 |
|
The Supreme Ruler
![]() Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6
![]() |
~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 |
|
|
|
|
|
#4 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
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 |
|
|
|
|
|
#5 |
|
Hobbyist Programmer
|
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 |
|
|
|
|
|
#6 | |
|
Newbie
Join Date: Feb 2006
Posts: 22
Rep Power: 0
![]() |
Quote:
|
|
|
|
|
|
|
#7 | |
|
Expert Programmer
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4
![]() |
Quote:
|
|
|
|
|
|
|
#8 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#9 |
|
Newbie
Join Date: Feb 2006
Posts: 22
Rep Power: 0
![]() |
is there an ecryption program for this?
__________________
im a professional programmer |
|
|
|
|
|
#10 |
|
Hobbyist Programmer
Join Date: Mar 2005
Posts: 141
Rep Power: 4
![]() |
if you put your javaScript code in .js file and set the access properties of that file so that anyone other then owner has no access, pple cannot downlaod it. As for not saving it... not sure.
ps: to do the above, simply put file on the FTP server andright click on it and you will see what i mean |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|