Anti-Source Code....

D

Dark_Raven

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

-dR-
 
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...
 
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
 
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>
 
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.
 
you could put the page inside an invisible frame, that way view source from the view menu would just show the frame source
 
Unless you're using Mozilla or opera, you then get a seperate frame menu ;)
 
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... :)
 
Maybe I should start an online movement to ban it...

go for it, it's useless code and normally never compliant anyway :)
 
Originally posted by SPeedY_B
go for it, it's useless code and normally never compliant anyway :)

I hate site with those, and i basically never visit them again :).
 
Errrr.... Send all your money to me and I'll mail you an informational pamflet. ;)
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back