Tuesday, 11 July 2017

How to disable cut, copy and paste operation from website text

Sometimes we need to restrict cut, copy, paste for website. Below
example no body can not copy text from this page.

oncopy="return false" oncut="return false" onpaste="return false"  - this
code will be restrict cut, copy and paste
<div oncopy="return false" oncut="return false" onpaste="return false">  
   Lorem ipsum Lorem ipsum orem ipsum Lorem ipsum orem ipsum  
   Lorem ipsum Lorem ipsum orem ipsum Lorem ipsum orem ipsum  
   Lorem ipsum Lorem ipsum orem ipsum Lorem ipsum orem ipsum  
   Lorem ipsum Lorem ipsum orem ipsum Lorem ipsum orem ipsum  
   Lorem ipsum Lorem ipsum orem ipsum Lorem ipsum orem ipsum  
 </div>  
Click download from here

1 comment:

How to create an visitor counter in PHP | hit counter

Total page view in the php. This count hit in the page. <?php session_start(); if(isset($_SESSION['page_view'])){...