PDA

View Full Version : Source Code Protection



AndyB
Jun 13th, 2002, 01:03 AM
How do I stop people from viewing my source code?

Just thought I'd get that question out of the way early :rolleyes:

WA
Jun 13th, 2002, 01:06 AM
As you probably know, vBulletin supports sticky threads, so once the post pattern becomes more clear, the mods and I will be posting FAQs that remain always in view. Disable source code/right click definitely will be among the questions.

Thejavaman1
Jun 13th, 2002, 01:07 AM
There is no way!

You might be able to stop n00bs from getting to it for a while, but any one dedicated will get to it. Flash can be cracked, Java can be decompiled, right click scripts don't work, neither does new windows without tool bars, any trick out there has been tried and broken.

Sticky please... :)

boxer_1
Jun 13th, 2002, 01:13 AM
Originally posted by Thejavaman1
Sticky please... :)

I think I'll hold off on the sticky. I'll be making a "sticky" FAQs in a couple of weeks and will probably find a way to incorporate the "Hinding source code/disable right click" references in it.


Print it off and bury it in the back yard - Chris Pike An answer that stuck in my memory ;) .

Oops...didn't see your post when I replied George.

Gordo
Jun 13th, 2002, 07:24 AM
I'm speechless. If I had any hair to pull out...I would.

I can't believe AndyB posted this. Of course, I've been taught to respect my elders...so I won't go off on another rant about this over-asked query. :p

I'm taking the high road like Brothercake has...and will no longer reply to "protection" queries. Well, I say that for now at least.

Okay, enough kidding around.

---

Anyway, I guess this is my first post here since I deleted my test posts. I needed a change. I'm thrilled we have the new look-n-feel, etc.

I look forward to getting and giving assistance. :thumbsup:

sir pannels
Jun 13th, 2002, 07:51 AM
hehe can see we are all gona have lots of fun with the whole color thing:D

Jeewhizz
Jun 13th, 2002, 09:57 AM
If its abused then it will be turned off, so be careful how you use it :)

AndyB
Jun 13th, 2002, 11:24 AM
Good one Gordo ... seriously, though if anyone wants to use this web site here (http://continue.to/hope) as a stock response/sub-FAQ on the dreaded protection, you're welcome to it.

joh6nn
Jun 13th, 2002, 12:08 PM
my favourite answer to this problem is to set your server on fire. ain't nobody touching that code now, foo'.

Gordo
Jun 13th, 2002, 05:50 PM
Yeah, AndyB, I've wanted to reference http://continue.to/hope many times, but never could remember the URL. I've got too many floating around in my head as it is. But I'll try to remember it now!

cryonic
Jun 15th, 2002, 10:48 AM
i dont really understand why some people lock or block others from viewing the source codes, but isn't it obviously rare people would do that.

i thought most people learnt alot by viewing the source codes on webpages, anyway if it were to be a high-profile, govermental agencies wif lots of things to hide.... I guess that would be a good reason.:o

my first post here in this forum:cool:

scroots
Jun 15th, 2002, 10:51 AM
i learnt a lot by viewing source code as i taught myself.

no matter how much you protect/encrpt it people will still be able to decript it.

scroots

cryonic
Jun 15th, 2002, 11:02 AM
oh btw, i had checked gordo's reference site. I would like to mentioned that I am currently using I.E 6.0 any although one may locked the site by not being able to right click, there are some images there and when I moved my mouse over the image, there are options to where I am still able to resize and\or save the pics, of course this option in I.E 6.0 for windows can be disable.

Again, I think is vain trying to lock the source code:cool:

ragnarokk
Jun 15th, 2002, 02:05 PM
The irony of trying to protect source code is that it actually works, though not the ways intended of the designer. When I encounter a site that employs a right-click hindering script, I always get the feeling that the designer must be much ashamed of his code. And most often this is the case, once you get past around the pathetic attempts to guard against doing so. As the result, I don't bother with such sites any longer and let their URLs fall into oblivion.

IMO the wish to protect one's source code arises from the fact that one wants to hide ugly code.

Kang He
Jun 15th, 2002, 08:13 PM
Originally posted by AndyB
Good one Gordo ... seriously, though if anyone wants to use this web site here (http://continue.to/hope) as a stock response/sub-FAQ on the dreaded protection, you're welcome to it.

Don't you just hate it when people link without the URL in the text? (nowebsitehere)

Reminds me of Geoff :).

Dynamix
Jun 16th, 2002, 04:11 AM
Hey, what I did was to protect my source was goto Dynamic Drive and used their source scrambler and a no right click script also on the site and togo even farther get a URL mask so when someone tries to view the source it just points your file that is all scrambled.
Before scrambling up your site back it up so you can make changes later but then you will have to do it again.

boxer_1
Jun 16th, 2002, 05:34 AM
Originally posted by Dynamix
Hey, what I did was to protect my source was goto Dynamic Drive and used their source scrambler and a no right click script also on the site and togo even farther get a URL mask so when someone tries to view the source it just points your file that is all scrambled.
Before scrambling up your site back it up so you can make changes later but then you will have to do it again.

What page have you done this on? Not the 'Team Dynamix' site made with DreamWeaver (in part anyway because of this part in the source-MM_reloadPage) and calls a pop-up window onUnload?

Basically, what you're saying in your post is to use scripts written by other people and offered free of charge to protect the source which is made up of, in part, those scripts. No offense, I'm just trying to put things into perspective, but if the authors of the scripts you mentioned had decided to protect their source code (not freely offer their scripts), then you wouldn't have them to use to protect your source.

Out of curiosity, what is unique about the source (other than the scripts from DD of course), that makes it so important to keep people from seeing it?

If the scripts to protect the source code were able to keep some people from viewing it, people wouldn't even get to see the credits to the authors of the scripts or the fact that they were offered/obtained from Dynamic Drive ;).

I just have a hard time with the reasoning behind wanting to protect source code, in part, for reasons I stated in my post here (http://freewarejava.com/ubb/Forum2/HTML/007678.html).

jkd
Jun 16th, 2002, 05:48 AM
javascript:document.documentElement.outerHTML.replace(/</g,'&lt;')

in the location bar defeats pretty much all source code protection I've seen in IE. Make it a favorite, and save yourself from typing it everytime.

QuackHead
Jun 18th, 2002, 05:22 PM
This question has been asked so many times...

I don't know if it's already been stated in this post - but there's not a perfect way to protect your source code...

If someone wants your code badly enough - they'll find it, download it, and use it to their hearts content - that's the beauty (or fall back) of the Internet... ;)

Someone I made a site for once asked me to make it so that users could not download and save our pictures - well, this is impossible, considering that all the user has to do is just take a screen shot and paste it into their favourite graphics editing program. Even if you disable right clicking, the user has downloaded your picture to their temp. internet files - so if they want to find it, it's on their hard drive already...
This goes the same for your code.

Don't be worried about people stealing your code - most people who look at your code do so to learn more, and advance their knowledge - so in a way, you're helping us all :D

~Quack