Current location: Hot Scripts Forums » General Web Coding » JavaScript » Hiding/protecting source code and searching the forum!


Hiding/protecting source code and searching the forum!

Reply
  #1 (permalink)  
Old 03-27-06, 02:39 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Hiding/protecting source code and searching the forum!

We get multiple topics from people who wants to protect their contents from being stolen/ripped, and none of them seem to be able to use the search function...

There are two search buttons available in each forum. The one located on the top toolbar searches the complete PT forum. The other one, located to the right above the views and replies counters, says Search this Forum, and does exactly that.

Try entering "hide source code" (without quotes) in the toolbar box and you'll get just about every thread about protecting source code in the entire forum.

Here are a few examples:
http://www.programmingtalk.com/showthread.php?t=17499
http://www.programmingtalk.com/showthread.php?t=13866

And here's the quick answer:
It is NOT possible to entirely protect anything on the web, especially what's running clientside!

http://www.programmingtalk.com/showthread.php?t=26830 - This method even goes as far as using MD5 hashes to protect sources. But that can be brute-forced if somebody really wanted to find out what's been hidden.


Please start any new discussions about hiding/protecting source code using JavaScript in this thread, that way it is all kept in one place and it won't clutter up the forum with many similar threads.

Thank you for your attention.
__________________
[W3Schools - learn all about the standards.] [QuirksMode - Browser Quirks] [MS's Online Reference Docs] [DOM in Gecko.]
Please pay attention to stickys, announcements and forum rules, thank you.
Please also remember Code Wrappers and [SOLVED] Marking, this helps everyone.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 03-29-06, 06:41 PM
Christian's Avatar
Christian Christian is offline
Community VIP
 
Join Date: Mar 2005
Location: ProgrammingTalk
Posts: 2,449
Thanks: 0
Thanked 6 Times in 5 Posts
Also, the sticky in the XHTML/HTML forum has some useful infomation.
__________________
:: ImperialBB :: New version in the works! :: http://www.imperialbb.com ::

:: Have a question about the board? The Rules? An Infraction/Warning? :: Contact Form ::
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 10-31-08, 11:10 PM
mityelir88 mityelir88 is offline
Newbie Coder
 
Join Date: Oct 2008
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 11-01-08, 12:01 AM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Quote:
Originally Posted by mityelir88 View Post
Another product that claims to do what, by definition, cannot be done.
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 11-05-08, 11:41 PM
mityelir88 mityelir88 is offline
Newbie Coder
 
Join Date: Oct 2008
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
yeah, you're prob. right.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 12-21-08, 11:13 PM
DAL's Avatar
DAL DAL is offline
Code Master
 
Join Date: Jun 2003
Location: North East England/UK
Posts: 874
Thanks: 0
Thanked 0 Times in 0 Posts
Generally speaking it's the idea thats stolen not the code! I mean anyone stupid enough to use code exactly as it was from the source (or even just renaming the variables) deserves everything coming to them. This is a pet hate of mine and I always start from scratch on everything I do, there are times where I need direction on how to accomplish this task and I look at other code to see how things are done but I do not rip them off, I generally use the idea for a base then put my own things into it and try and improve on the existing platform. EDIT: I should have really pointed out that the platform I'm on about would be the idea platform not the coding platform.

Anyone interested in protecting client side code should be aware that most programmers/scripters/coders will look at the output of a page and know how to replicate it without looking at code, those that just dive straight in there and steal it don't really know what their doing... best way to fool these people is to get them to copy along your trademark or dummy functions so that you have undeniable proof that they stole the very sole of you code.

There are soooo many free scripts to choose from now that this kind of activity is less and less. For instance, google wysiwyg editors and you will find that there are loads wanting you to pay for them (I know because I paid for one) if you look hard enough there are probably the same number that are free to use and modify with support forums of their own to help you to do that.


If you do want to protect your code, think of other ways such as getting a company to look after your code. Some I've heard search the web for their clients code to see if anyone has stolen it and then the whole legal thing kicks off as part of your contract to them. I suppose this kind of activity, once the author has legitimate standing it goes in and out of court very quickly.


Cheers
Dal
__________________
"once upon a midnight dreary, while i pron surfed, weak and weary, over many a strange and spurious site of 'hot xxx galore'. While i clicked my fav'rite bookmark, suddenly there came a warning, and my heart was filled with mourning, mourning for my dear amour," 'Tis not possible!", i muttered, "give me back my free hardcore!" quoth the server, 404."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #7 (permalink)  
Old 02-12-09, 10:36 AM
roflposters roflposters is offline
Newbie Coder
 
Join Date: Jan 2009
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
__________________
demotivational posters

Last edited by roflposters; 02-12-09 at 10:38 AM. Reason: added code link
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #8 (permalink)  
Old 02-12-09, 06:35 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
I was told to protect some algorithms from theft, and converted them from javascript to PHP, and used AJAX to display the results.

It really wasn't that difficult to convert it over, and it did protect the process they were concerned about.

Another developer came along later and discarded all my work. That ensures no one will ever steal it. I was successful.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #9 (permalink)  
Old 03-03-09, 04:57 AM
nathan3011 nathan3011 is offline
New Member
 
Join Date: Dec 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by wirehopper View Post
I was told to protect some algorithms from theft, and converted them from javascript to PHP, and used AJAX to display the results.

It really wasn't that difficult to convert it over, and it did protect the process they were concerned about.

Another developer came along later and discarded all my work. That ensures no one will ever steal it. I was successful.

Hey mate sounds good, can I just ask how long did it take to convert it across and was it a difficult process??

Also its good that it was discarded and that way yeah no one will ever steal it haha good stuff!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #10 (permalink)  
Old 03-03-09, 04:58 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
It didn't really take long to convert, it was kind of fun. Maybe a day or two.

The syntax is fairly similar between javascript and PHP, so I picked out the code that they wanted to protect, converted it to PHP, and then added a bit of javascript to call that code to get the results required.

The code was used to calculate the cost of something, and the computation was very complex. I gave up trying to actually calculate it and created a matrix, which contained the fees based on the state of a bunch of radio buttons. The matrix is what I put into PHP, then I created javascript to send the input values and request the value.

If I had the code I'd send it to you. If you use an AJAX toolkit like dojo (http://dojotoolkit.org), it will probably take you a fraction of the time it took me.

Good luck!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Method for searching and storing <html> code GrnEydGuy PHP 2 03-09-06 12:04 AM
Source Code Bravi JavaScript 6 02-09-05 06:03 AM
Look for a source code bionicsamir Script Requests 3 01-29-04 06:21 PM


All times are GMT -5. The time now is 10:09 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.