Anti-Source Code....

D

Dark_Raven

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

-dR-
 
D

Dark_Raven

Guest
#3
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...
 

SPeedY_B

I may actually be insane.
#4
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: http://www.hotscripts.com/JavaScript/Scripts_and_Programs/Security/index.html
 
D

Dark_Raven

Guest
#5
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 (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

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.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</script>
</body>
</html>
 

X-Istence

*
Political User
#6
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.
 

Khayman

I'm sorry Hal...
Political User
#7
you could put the page inside an invisible frame, that way view source from the view menu would just show the frame source
 
#11
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 https://tinyurl.com/ycpxl
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 ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,971
Messages
673,300
Members
89,016
Latest member
Poseeut