Best Web Design & Development Agency Across the Globe!

Blog by iSquare Technologies.

Tips, Tricks & Hacks

Interactive eCommerce | Design | Development Agency / Blog / Disable right click on web site to avoid content theft

Disable right click on web site to avoid content theft

We all are very well aware of the fact that what right click can do while visiting any website. Using right click, any image of website can be saved, all content can be copy and whole page source can be viewed and copied.

So sometimes, it becomes necessary to add some kind of protection so that visitors can’t be steal information that you have on your website. Simple solution of this problem is to disable right click on website. Once right click of mouse is disabled nobody will be able to copy your images from your web page.

So how to disable right click on web page? Don’t worry, there is a very simple and straight forward solution available to make this happen. You just need to copy below code snippet of jQuery and place it in your web page and that’s it. Right click will disabled once this code is placed inside your website.

$(document).ready(function(){
$(document).bind("contextmenu",function(e){
return false;
});
});
Back to Top
Are you looking for affordable but yet top notch Joomla Services? Check out our Joomla services site