HOW TO DISABLE RIGHT CLICK ON WEBSITES USING JAVASCRIPT - HACKING Begins

March 19, 2011

HOW TO DISABLE RIGHT CLICK ON WEBSITES USING JAVASCRIPT

Welcome to "HACKING begins - An approach to introduce people with the truth of HACKING", Today in this post I'll tell you how can you disable right click on your website. well many of websites doesn't want to
show there source code of website or to protect their web page from PHISHING attack. There is a simple HACK by which you can disable right key on you web page. It is an easy to disable right key in any web page or website using simple Javascript .

CODE TO DISABLE RIGHT KEY:

oncontextmenu="alert('right click is disable');return false;" 

This code should be add in body as one of the attribute.

Example : <body oncontextmenu="alert('right click is disable');return false;" >

NOTE : This technique is not fully secure, there are many many add on or web tools are available that are used by HACKERS to break this but you can disable for other internet users.

Be a real hacker - PROFESSIONAL, and change the trend of HACKING.

Thanks & Regards:
Sahil Mahajan.


2 comments:

I hope you got some great ideas in this post! Please feel free to share additional ideas or query.