Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ***************************** STOP copy-paste from your website ***********************************
- //paste this code in your theme's header.php file before header closing tag </header>.
- Code 1
- ==============
- <script type="text/javascript">
- /******************************************************************************
- *** COPY PROTECTED BY CHETANGOLE.COM/BLOG/WP-COPYPROTECT version 2.2.0 ****
- ******************************************************************************/
- function clickIE4(){
- if (event.button==2){
- return false;
- }
- }
- function clickNS4(e){
- if (document.layers||document.getElementById&&!document.all){
- if (e.which==2||e.which==3){
- return false;
- }
- }
- }
- if (document.layers){
- document.captureEvents(Event.MOUSEDOWN);
- document.onmousedown=clickNS4;
- }
- else if (document.all&&!document.getElementById){
- document.onmousedown=clickIE4;
- }
- document.oncontextmenu=new Function("return false")
- // -->
- </script>
- <script type="text/javascript">
- function disableSelection(target){
- if (typeof target.onselectstart!="undefined") //For IE
- target.onselectstart=function(){return false}
- else if (typeof target.style.MozUserSelect!="undefined") //For Firefox
- target.style.MozUserSelect="none"
- else //All other route (For Opera)
- target.onmousedown=function(){return false}
- target.style.cursor = "default"
- }
- </script>
- * Note: using this code you can disable mouse right click and keyboard shortcuts copy system.
- *****************************************************************************
- //This this another code for stop copy-paste from you website
- Code 2
- ==============
- <script type=”text/JavaScript”>
- //courtesy of hostcoding.com
- function killCopy(e){
- return false
- }
- function reEnable(){
- return true
- }
- document.onselectstart=new Function (“return false”)
- if (window.sidebar){
- document.onmousedown=killCopy
- document.onclick=reEnable
- }
- </script>
- ********** Thanks **********
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement