Skip to main content

No Copy and Paste Script

Did you know that you can disable the copy and paste function on your web pages? 
   This little JavaScript snippet will prevent someone from highlighting your text
 and using the copy function to copy it and rip it off. It also prevents them 
from using Ctrl + A to select all the text, or using the right-click menu to
 Select All.

It doesn't work if the visitor has JavaScript 
disabled or has a browser that doesn't support JavaScript. That isn't very many
 users, but anyone with some experience would know a way around this trick. It 
will stop most new users though, and at least make it harder for everyone else.
 
Just add the following code to the HEAD tag of your web page: 
 

<script type="text/JavaScript">
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>
 
-It will make right click copy protect, select copy protect, etc.  

Comments

Popular posts from this blog

IBM iAccess for windows 7.1 "a system restart is pending" error

 IBM iAccess for windows 7.1 "a system restart is pending" error HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager 1. Look for the following key:  PendingFileRenameOperations or   FileRenameOperations ** 2. Right-click ->  Rename . 3. Add a prefix ### and press Enter. 4. Close regedit and attempt the installation.  Note:  Make sure to go back and remove the ### prefix. The installation should continue.

Webex always using Microphone

 Webex always using Microphone 1). Navigate to Webex settings 2). Devices - Use Ultrasound 3). Remove ticket "Use Ultrasound"

Cisco Webex - Outlook integration issue

 Cisco Webex - Outlook integration issue Close MS Outlook and Cisco Webex. Open Registry Editor (regedit.msc) and navigate to  Computer\HKEY_CURRENT_USER\SOFTWARE\IM Providers Remove  Cisco Jabber  folder and all items with name like " Cisco Jabber ". NOTE: Don't remove and don't change " Cisco Spark " folder. Close Registry Editor. Then you need to register integration .dll: Run cmd.exe  AS ADMINISTRATOR Navigate to  c:\Users\<YOUR USERNAME>\AppData\Local\Programs\Cisco Spark\dependencies Enter command  regsvr32.exe /s spark-windows-office-integration.dll Close cmd.exe Start Cisco Webex. Start MS Outlook. Check integration feature. Note :  If webex was installed from official site, then path is   с :\Users\<YOURUSERNAME>\AppData\Local\Programs\Cisco Spark\dependencies Else if webex was deployed by SCCM (or installed from Software Center), then path is  с:\ProgramFiles\Cisco Spark\dependencies