(adsbygoogle = window.adsbygoogle || []).push({});
Well I'm sure many of you put lots of time and effort in to making your own sites or just your own pages. Now, I know the last thing you want is someone coming along and effortlessly stealing it. This is especially annoying if you have spent endless hours creating your own deface page that is awesome and some inexperianced person just comes along, views your source and saves it. Please note that intelligent people will know how to fully get your code.
The things we are going to do are:
- Disable right click
- Disable copy and paste
- Encrypt your site's code
- Make your source disappear
If you have any questions please quote me and I'll try my best to answer you
[multipage=Disabling Right Click]
To disable the right click you must add this script within the <head> tags of your HTML script. It completely stops all visitors froms using the functions of right click and instead it produces a popup box saying ' You can't right click thanks to Bark! ' Please note that in the code the text highlighted as red is the only part you can edit.
(It is the message in the popup box)
ALSO if you want to apply this for your whole site you must add this in every page's source.
<script language="JavaScript1.1">
<!-- var debug = true; function
right(e) { if (navigator.appName == 'Netscape' && (e.which == 3 || e.which
== 2)) return false; else if (navigator.appName == 'Microsoft Internet Explorer'
&& (event.button == 2 || event.button == 3)) { alert('[COLOR="Red"]You can't right click thanks to Bark![/COLOR]'
; return false; } return true; } document.onmousedown=right; if (document.layers)
window.captureEvents(Event.MOUSEDOWN); window.onmousedown=right; //--></script>
[multipage=Disabling Copy & Paste]
If you still want the ability to right click and only want disable the copy and paste functions on your site/page add this code to your <body> tag.
ondragstart="return
false" onselectstart="return false"
If done correctly the <body> tag should now look something like this:
<body bgcolor="#FFFFFF" ondragstart="return false" onselectstart="return false">
[multipage=Encrypting Your Site's Code]
Now your site is protected from right clicking so the total noobs will not be able to view your source, also the very common browser Firefox requires you to press the ALT key to display the options at the top including View, so this helps also.
You must login or register to view this content.
You must login or register to view this content.
Unfortunately the Intelligant people will know that CTRL + U is the shortcut to View Source, so they will be able to see your source.
To stop them from editing your source once they take it, you should encrypt it. This will stop most of them in their tracks as they probably don't know how to decrypt it.
To
encrypt your code go here:
You must login or register to view this content.
To
decrypt your code go here:
You must login or register to view this content.
This is normal HTML or decrypted HTML:
<html>
<head>
<title>Bark's basic page example</title>
</head>
<script type="text/javascript">
This is random code stuff that does nothing at all.
blah = asdhsfkgoiefjv ffekjbalshfsdf a
Bark is cool
afkew CODEs 1337 no 1328 ruefuufhihdsa
dwdf fsej fsdfksH
</script>
<body onload="javascript: poponload()">
<h1>blahblahblahheader</h1>
YO YO YO ITS BARK DAWG WASSUP!!!
</body>
</html>
This is Encrypted HTML:
<Script Language='Javascript'>
<!-- Bark's encrypted page source code example -->
<!--
document.write(unescape('%3C%68%74%6D%6C%3E%0A%3C%68%65%61%64%3E%0A%20%3C%74%69%74%6C%65%3E%42%61%72%6B%27%73%20%62%61%73%69%63%20%70%61%67%65%20%65%78%61%6D%70%6C%65%3C%2F%74%69%74%6C%65%3E%0A%3C%2F%68%65%61%64%3E%0A%3C%73%63%72%69%70%74%20%74%79%70%65%3D%22%74%65%78%74%2F%6A%61%76%61%73%63%72%69%70%74%22%3E%0A%54%68%69%73%20%69%73%20%72%61%6E%64%6F%6D%20%63%6F%64%65%20%73%74%75%66%66%20%74%68%61%74%20%64%6F%65%73%20%6E%6F%74%68%69%6E%67%20%61%74%20%61%6C%6C%2E%0A%62%6C%61%68%20%3D%20%61%73%64%68%73%66%6B%67%6F%69%65%66%6A%76%20%66%66%65%6B%6A%62%61%6C%73%68%66%73%64%66%20%61%0A%42%61%72%6B%20%69%73%20%63%6F%6F%6C%20%38%29%20%20%20%61%66%6B%65%77%20%43%4F%44%45%73%20%31%33%33%37%20%6E%6F%20%31%33%32%38%20%72%75%65%66%75%75%66%68%69%68%64%73%61%0A%64%77%64%66%20%66%73%65%6A%20%66%73%64%66%6B%73%48%0A%3C%2F%73%63%72%69%70%74%3E%0A%3C%62%6F%64%79%20%6F%6E%6C%6F%61%64%3D%22%6A%61%76%61%73%63%72%69%70%74%3A%20%70%6F%70%6F%6E%6C%6F%61%64%28%29%22%3E%0A%3C%68%31%3E%62%6C%61%68%62%6C%61%68%62%6C%61%68%68%65%61%64%65%72%3C%2F%68%31%3E%0A%59%4F%20%59%4F%20%59%4F%20%49%54%53%20%42%41%52%4B%20%44%41%57%47%20%57%41%53%53%55%50%21%21%21%0A%3C%2F%62%6F%64%79%3E%0A%3C%2F%68%74%6D%6C%3E'
);
//-->
</Script>
[multipage=Making Your Source Disappear]
This is the probably the most important part.
Once you have got your source code ready with the right click disabled and your whole code encrypted, you'll want to use this simple trick to fool people in to thinking that you have somehow made your source invisible.
Ok, so get your code in a document on notepad or whatever program you use to edit, click at the very start of the whole code and press and hold enter for about 5-10 seconds. If done correctly the top of the document should look completely blank and you have to scroll all the way to the bottom to find the code.
This trick fools many people, even the intelligent ones sometimes :lol:
For example my site
You must login or register to view this content.
Go to it and view source you will see that it looks blank.
You must login or register to view this content.