Anti-Source Code....



Hey guys, when im at the main page of this site i can't view the source code, how can i do that?



LoL wait i said it wrong, i want to have the code to disable the "view source" (for my site).

Anyways when i visit a site i mostly check out the source code, no reason :p
And i was curious if this was a php nuke site...


I may actually be insane.
We use VirtuaNews and vBulliten here ;)
as for the disable view source.. they never work, as there are so many ways around it.
  • The "view" menu on your browser will usually allow you to see the source.
  • You can save the page then open it with notepad.
  • You can view a locally cached version of the page.
  • If available you can open the links browser, hit the '\' key, and you've got the source.
  • If it's a pop-up, you can keep the right button held, click the pop-up with the left, then release the right, and you have the code
  • and loads more methods...

If you really want to try and stop people looking though, there are some scripts available here:


thx but i only needed anti- source code :cool:

this one i use(anti right click):
<script language=JavaScript>

//Disable right click script III- By Renigade (
//For full source code, visit

var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)

document.oncontextmenu=new Function("return false")
// -->


Political User
Note to you, that doestn work in mozilla as the right click menu will still show up.

Second, on IE we can still get your source by going to: view -> source.


I'm sorry Hal...
Political User
you could put the page inside an invisible frame, that way view source from the view menu would just show the frame source
This type of code is just stupid IMO. It's easy to go around if you want to "steal code" or hotlink or whatever and it's really annoying for anyone who won't, but wants to look at the code or do anything else. Be gone I say! :)

Maybe I should start an online movement to ban it... :)

Members online

No members online now.

Latest posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
What a long strange trip it's been. =)

Forum statistics

Latest member