Jump to content

[SHARE-JAVASCRIPT] NO Right-Click on your Website - Hide the Source !


Recommended Posts

Posted

well, here we are.

 

I was browsing the web ...then I saw this : NO right click !

 

How it Works ? You must put the following code in your Page Source BEFORE THE </head> ! ;D

 

 

Here is the code :

 


<script language=JavaScript>
<!--

//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>

 

 

Proof => www.l2-x.com  (try to see the page source with right click) ;D

Posted

you mean Opera with right click or from the panel ? cuz, from the panel you can see the source...this is to prevent Right clicks on your Website...not to Hide the source XD

Posted

you mean Opera with right click or from the panel ? cuz, from the panel you can see the source...this is to prevent Right clicks on your Website...not to Hide the source XD

 

you added this to your web , with firefox i cant right click to click , "view source" but with opera i can do this .. without panel ..

Posted

Warning!

GameServer/ Forum/ Website Closed for UNKNOWN Reasons !

Go play Somewhere else, Thank you !

 

jaja u cant cp unless u read and cp :P good one a man =) ty

Posted

I would like to advise all to encrypt all the Important Documents of your Webpage with this encrypter which can be ARABIAN for Humans, But Just fine for all Browsers XD

 

http://www.dynamicdrive.com/dynamicindex9/encrypter.htm

 

Here is the Source of www.l2-x.com , Proof =>

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<script>
<!--
document.write(unescape("%3Chead%3E%0A%3Cmeta%20http-equiv%3D%22content-type%22%20content%3D%22text/html%3B%20charset%3DUTF-8%22%20/%3E%0A%3Ctitle%3EWelcome%20to%20Lineage%20%5D%5B%20X%3C/title%3E%0A%3Cmeta%20name%3D%22keywords%22%20content%3D%22vendetta%2C%20lineage2%2C%20lineage%2C%20games%2C%20date%2C%20max%2C%20new%2C%20menubar%2C%20location%2C%20toolbar%2C%20open%2C%20function%2C%20eval%2C%20home%2C%20game%20cp%2C%20how%20to%20connect%2C%20features%2C%20rules%2C%20downloads%2C%20forums%2C%20contact%2C%20navigation%2C%20links%2C%20irc%20chat%2C%20make%20a%20donation%2C%20download%2C%20server%2C%20servers%2C%20germany%2C%20gamesites%2C%20gamesites200%2C%20items%2C%20how%20to%2C%20internet%2C%20virtual%22%20/%3E%20%0A%3Cmeta%20name%3D%22robots%22%20content%3D%22index%2Cfollow%22%20/%3E%0A%3Cmeta%20name%3D%22description%22%20content%3D%22Welcome%20to%20Lineage%20%5D%5B%20X%21%22%20/%3E%0A%3Cmeta%20name%3D%22author%22%20content%3D%22A-Style%22%20/%3E%0A%3Clink%20rel%3D%22stylesheet%22%20href%3D%22agreement/style.css%22%20type%3D%22text/css%22%20/%3E%0A%0A%3Cscript%20language%3DJavaScript%3E%0A%3C%21--%0A%0A//Disable%20right%20click%20script%20III-%20By%20Renigade%20%28renigade@mediaone.net%29%0A//For%20full%20source%20code%2C%20visit%20http%3A//www.dynamicdrive.com%0A%0Avar%20message%3D%22%22%3B%0A///////////////////////////////////%0Afunction%20clickIE%28%29%20%7Bif%20%28document.all%29%20%7B%28message%29%3Breturn%20false%3B%7D%7D%0Afunction%20clickNS%28e%29%20%7Bif%20%0A%28document.layers%7C%7C%28document.getElementById%26%26%21document.all%29%29%20%7B%0Aif%20%28e.which%3D%3D2%7C%7Ce.which%3D%3D3%29%20%7B%28message%29%3Breturn%20false%3B%7D%7D%7D%0Aif%20%28document.layers%29%20%0A%7Bdocument.captureEvents%28Event.MOUSEDOWN%29%3Bdocument.onmousedown%3DclickNS%3B%7D%0Aelse%7Bdocument.onmouseup%3DclickNS%3Bdocument.oncontextmenu%3DclickIE%3B%7D%0A%0Adocument.oncontextmenu%3Dnew%20Function%28%22return%20false%22%29%0A//%20--%3E%20%0A%3C/script%3E%0A%0A%3C/head%3E%0A%0A%3Cbody%3E%0A%3Cdiv%20border%3D%220%22%20align%3D%22center%22%3E%0A%3Cbr%20/%3E%0A%3Cdiv%20align%3D%22center%22%20style%3D%22border%3Anone%22%3E%0A%3Cimg%20src%3D%22/splash.jpg%22/%3E%0A%3C/div%3E%0A%3Cbr%20/%3E%0A%0A%09%09%09%09%09%09%09%09%09%3Cdiv%20border%3D%220%22%20style%3D%22margin-right%3A30px%22%20align%3D%22center%22%3E%0A%09%09%09%09%09%09%09%09%09%09%3Ctable%20class%3D%22terms%22%20width%3D%22100%25%22%20cellpadding%3D%223%22%20cellspacing%3D%221%22%20border%3D%220%22%3E%0A%09%09%09%09%09%09%09%09%09%09%09%3Ctr%3E%20%0A%09%09%09%09%09%09%09%09%09%09%09%09%3Cth%3E%3Cspan%20style%3D%22font-size%3A14px%22%20%3EWarning%21%3C/span%3E%3C/th%3E%0A%09%09%09%09%09%09%09%09%09%09%20%20%3C/tr%3E%0A%0A%09%09%09%09%09%09%09%09%09%09%09%3Ctr%3E%0A%09%09%09%09%09%09%09%09%09%09%09%09%3Ctd%20class%3D%22terms%22%3E%0A%09%09%09%09%09%09%09%09%09%09%09%09%20GameServer/%20Forum/%20Website%20Closed%20for%20UNKNOWN%20Reasons%20%21%20%3Cbr%3E%3Ccenter%3EGo%20play%20Somewhere%20else%2C%20Thank%20you%20%21%3C/center%3E%3Cbr%20/%3E%0A%09%09%09%09%09%09%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%09%09%09%09%20%20%3C/td%3E%20%20%20%0A%09%09%09%09%09%09%09%09%09%09%20%20%3C/tr%3E%0A%09%09%09%09%09%09%09%09%09%09%3C/table%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C/div%3E%0A%0A%3Cbr%20/%3E%0A%0A%09%3Cform%20method%3D%22post%22%3E%0A%09%09%3Cdiv%20style%3D%22margin-right%3A30px%22%20align%3D%22center%22%3E%0A%09%09%09%3Cinput%20type%3D%22hidden%22%20value%3D%22submit%22%20name%3D%22action%22%20/%3E%0A%09%09%09%3Cinput%20type%3D%22reset%22%20%20value%3D%22OK%20%21%22%20name%3D%22iagree%22%20class%3D%22agreement%22%20onclick%3D%22javascript%3Awindow.location%3D%27http%3A//l2.hopzone.net/lineage2/list.html%27%22%20/%3E%0A%09%09%09%3Cinput%20type%3D%22reset%22%20style%3D%22margin-left%3A15px%22%20value%3D%22Hell%20NO%20%21%22%20name%3D%22iagree%22%20class%3D%22agreement%22%20onclick%3D%22javascript%3Awindow.location%3D%27http%3A//www.google.com%27%22%20/%3E%0A%09%09%3C/div%3E%0A%09%3C/form%3E%0A%3C/div%3E%0A%0A%3Cbr%20/%3E%0A%3Cbr%20/%3E%0A%3C/body%3E%20%0A%3C/html%3E"));
//-->
</script>

 

Enjoy ! ;D

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...