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"

Your organization manages updates on this PC

 Your organization manages updates on this PC We can disable updates from SCCM/WSUS for time being by using below command $currentWU = Get-ItemProperty -Path “HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU” -Name “UseWUServer” | select -ExpandProperty UseWUServer Set-ItemProperty -Path “HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU” -Name “UseWUServer” -Value 0 Restart-Service wuauserv Once required updates are installed on Laptop switch back to previous settings Set-ItemProperty -Path “HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU” -Name “UseWUServer” -Value $currentWU Restart-Service wuauserv