Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Directory Submission Service   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 09-08-2004, 06:39 AM   #1 (permalink)
Inactive
 
samer's Avatar
 
Join Date: 10-13-03
Location: Lebanon
Posts: 4,099
iTrader: 0 / 0%
Latest Blog:
None

samer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nice
Question Protect Javascript from being ripped of .. How-to ?

?
samer is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 09-08-2004, 06:50 AM   #2 (permalink)
Inactive
 
Join Date: 06-27-04
Posts: 454
iTrader: 0 / 0%
Latest Blog:
None

crazyhorse is liked by many
http://scriptasylum.com/tutorials/en...t_encoder.html
crazyhorse is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-08-2004, 06:55 AM   #3 (permalink)
Inactive
 
Join Date: 06-27-04
Posts: 454
iTrader: 0 / 0%
Latest Blog:
None

crazyhorse is liked by many
http://gosu.pl/demo/JavascriptDecode...ptDecoder.html
crazyhorse is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-08-2004, 10:27 AM   #4 (permalink)
Inactive
 
samer's Avatar
 
Join Date: 10-13-03
Location: Lebanon
Posts: 4,099
iTrader: 0 / 0%
Latest Blog:
None

samer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nice
yes but the guy still copy / past it to his website ... i think this is impossible
samer is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-08-2004, 04:59 PM   #5 (permalink)
Moderator
 
LazyJim's Avatar
 
Join Date: 10-13-03
Location: UK
Posts: 2,819
iTrader: 0 / 0%
Latest Blog:
None

LazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to all
Send a message via MSN to LazyJim
deterants are all u can really do i think.
maybe try...
make sure it's a linked .js file but change the extension to PHP (or asp or whatever u use) and make the PHP file check for the HTTP Referer, that it is your site, not an empty string, and then print the script, else print a message saying pls don't view my code!

and all your code should be wrapped in functions, and the should have a toString() method attched that returns a message "protected code" or something like that.

U can get past it if your browser has a "set fake referea header" option though :/

hey maybe get PHP to store it in a secure cookie and make another script to pull it out and run it. (don't forget the .toString() thing though!)

like I said - all just deterants I think.
__________________

-LJ-

My advice is to look at each case individually, with an informed mind and an appropriately balanced and objective viewpoint.

Web Design and Development, Ipswich, UK.
My deviantArt
LazyJim is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-10-2004, 05:23 AM   #6 (permalink)
Inactive
 
samer's Avatar
 
Join Date: 10-13-03
Location: Lebanon
Posts: 4,099
iTrader: 0 / 0%
Latest Blog:
None

samer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nice
thanks for the advice LJ
samer is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-14-2007, 03:16 AM   #7 (permalink)
Inactive
 
Join Date: 12-14-07
Posts: 1
iTrader: 0 / 0%
Latest Blog:
None

JackyBrown is liked by many
Hi ,
I create more progressive JavaScript Encoder, working at once with several algorithms
JackyBrown is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-14-2007, 11:07 AM   #8 (permalink)
v7n Mentor
 
searchbliss's Avatar
 
Join Date: 03-25-06
Posts: 810
iTrader: 1 / 100%
searchbliss is just really nicesearchbliss is just really nicesearchbliss is just really nicesearchbliss is just really nicesearchbliss is just really nicesearchbliss is just really nicesearchbliss is just really nicesearchbliss is just really nicesearchbliss is just really nicesearchbliss is just really nicesearchbliss is just really nice
What has helped me in the past is to call an external js file, that calls another js file. Then I encrypt them both, so if the first js file is viewed, it is calling the real file (but encrypted). The real file is also encrypted (in case). Most would just give up after the first.
searchbliss is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-11-2008, 03:26 AM   #9 (permalink)
Member
 
Join Date: 03-02-08
Location: Belgium
Posts: 31
iTrader: 0 / 0%
Latest Blog:
None

isaak is liked by many
Don't use any of the JavaScript encoders, they bring a high overhead with them and you scripts will function much slower. Probably the best way is to create a php script using header(), and checking the referer or you can put your javascript folder on a non-web accessible location so your files will be able to load them but users won't be able to view your JavaScript code. Professionals can easily find a way through this though.
isaak is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-13-2008, 05:12 AM   #10 (permalink)
Contributing Member
 
Bagi Zoltán's Avatar
 
Join Date: 11-28-06
Location: Hungary
Posts: 196
iTrader: 1 / 100%
Bagi Zoltán is liked by somebodyBagi Zoltán is liked by somebodyBagi Zoltán is liked by somebodyBagi Zoltán is liked by somebodyBagi Zoltán is liked by somebody
I think the strongest protection can be implemented via .htaccess.
As first step please place the javascript codes into external js files and insert this into your .htaccess file.
Code:
RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://(www\.)?yoursite.com(/)?.*$ [NC] RewriteRule .*\.(js)$ http://yoursite.com/ [R,NC]
It will redirect every javascript spy try to the homepage (specified at the second line).
__________________
eCommerce shopping cart :: seo directory
Bagi Zoltán is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
She ripped them off, tried to swallow it then claimed she can't remember! StrongInTheArm Forum Lobby 31 06-19-2007 09:26 AM
I think i got ripped off tonight? chum112 Domain Name Forum 3 05-28-2007 02:03 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 06:38 AM.
© Copyright 2008 V7 Inc