• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

Hiding your source code(website)

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.
The thing is, is when u have that javascript that doesn't let you right click, you can still go to view and then source. Also if someone really, really wanted to see ur source, they cant be stopped. Best thing to do is to pull the plug.
 
there's no way not to see the source

just make sure you copyright your website, that'll take care of it :cool:
 
well you can always use pseudo-encryption (aka making code that runs around in circles so much people won't bother to try to understand it unless they're incredably bored)
 
It would probably be better described as a code obfuscator.

Even then, I don't see why that would stop anyone from taking your html. Is your html that awesome anyways? If it is, you should be proud to show it off.
 
A lot of the sites you may *think* have their code "hidden" in fact just have about 50 or 100 blank lines at the beginning of the web document. If you scroll on down that apparently "blank" file, suddenly you'll notice - hey, there's code there after all!

;-)

Adovbs

Other than that, not much you can do (at least not to my knowledge) except what's already been posted, and that's sure not fool proof.
 
You can use PHP to write your html.
I use the javascript which doesn't allow right clicking but there are ways to get around it for more experienced html users. It does slow down most who try to steal your graphics though. I have the very short script if you wish.
 
Really, who cares, the whole idea is assinine.

Writing php in lieu of being able to conceal html is silly, you're doing more work for no reason, you still need to send html to the browser.
 
Writing php in lieu of being able to conceal html is silly, you're doing more work for no reason, you still need to send html to the browser.
Exactly.

The only way this would even be useful at all is if you had some kind of proprietary business logic that you didn't want exposed to prying eyes, so you did all the computations server side and just served up the result, instead of using something more client side like inline javascript. Now that I can see being worth the added effort, but not just a normal web page.

Adovbs
 
While there is software around that can download a complete site which then can be viewed at your own pace and the souce code can be read using notepad.. it does seem a little pointless and the effort could be better used in making a nicer site
 
Last edited:
adovbs said:
A lot of the sites you may *think* have their code "hidden" in fact just have about 50 or 100 blank lines at the beginning of the web document. If you scroll on down that apparently "blank" file, suddenly you'll notice - hey, there's code there after all!

Yeah, most of the time, that's just where the PHP (or ASP or CF) code that doesn't get passed to the browser is at.

Other than that, not much you can do (at least not to my knowledge) except what's already been posted, and that's sure not fool proof.

There isn't anything. Lots of people try, but there's nothing fool-proof. If all else fails, I can telnet to a server on port 80 and pull the raw code that way. :)

Oh, same with images, too. Lots of people try to block those and it's just not possible.

--Ben
 
I don't see how it would be possible to prevent people from stealing images. All those things go to the browser cache anyway.

That is, unless there is a way to prevent it :rolleyes:
 
You could make a java applet and use that to show images.... but that would be lame, and make me not want to visit your page.
 
Talk about going to extremes. If your graphics are so important that you don't want people on the Internet to get them, then ummm... don't post them on the Internet :D
 
why not just make tumb nails of you picture that are reallllly realllllllly tiney so if some one wants a real one they have to contact you
 
The no right click script is farely annoying sometimes although once or twice while making websites I have come upon things in scripts that I didn't want people to see. I forget what reason. It is annoying when people have no right click just so you cannot save the pictures from the site. There is a way around that though.
 
Back