How To Disable Right-Click On Your Website or Blog

Simple one step method to disable right click on your webpages to prevent users from stealing your text or images easily.



You may have seen many websites (e.g. this page) that don't allow its user to right click and copy their content easily, wanna know how to do this on your website? If yes, then this post is for you.

Only thing that you need to do is to add simple JavaScript anywhere on your webpage, blogger users can add it to HTML of their template just before the
tag or you can add this to a HTML gadget.

JavaScript Code:
<script type="text/JavaScript">
//Script courtesy of www.ywfyouthvoice.com
var message="NoRightClicking";
function defeatIE() {if (document.all) {(message);return false;}}
function defeatNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=defeatNS;}
else{document.onmouseup=defeatNS;document.oncontextmenu=defeatIE;}
document.oncontextmenu=new Function("return false")
</script>

Note: How to copy without right click? Two methods -
(i) Highlight it by clicking and holding your mouse button down and dragging the cursor from the beginning to the end of the code, then release the mouse button. When you have the code highlighted, press Ctrl + C on your keyboard to copy it.
(ii) You can simply copy script from this page.

Will this make my content completely copy proof?
No, nothing can make your content 100% secure! I'll soon write a post on this topic, stay connected to our social media accounts for update.

You can make your content more secure by disabling text selection on your website, read: Easiest Way To Prevent Users From Highlighting And Copying Your Website or Blog Text

Can a user bypass this JavaScript protection?
Yes, very easily. Since it is JavaScript, 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. That may be all the discouragement they need to move on to easier pickings.

For any queries you can comment below in the comments section.

COMMENTS

Name

A-Kay Aagaaz Agriculture Ajay Devgn Akhil Akshay Kumar Ammy Virk Amrit Maan Android Anushka Sharma Apps Army Automobile Avantika Awards Ayurveda B Praak Babbal Rai Badshah Beat Minister Bilal Saeed Blogger Tips Blood Donation Bollywood Books BoxOffice Collection BSNL Bunty Bains Business Cars Chemical Engineering Chrome Extensions Clash Of Clans Climate Computer Tricks Defense Forces Dera Sacha Sauda Desi Crew Desi Routz Didar Othie Documentary Download Dr. Zeus Education Emraan Hashmi Encoding Engineering English Songs Entertainment Farming Fazilpuria Filmfare Finance Funny Gaming Garry Sandhu Geeta Zaildar Gippy Grewal Girik Aman Goldboy Gurmeet Ram Rahim Hacking Happy Raikoti Hardeep Grewal Harish Verma Harshit Tomar Haryanvi Songs Health Himanshi Khurana Himesh Reshammiya Hindi Songs History HKNKJ Hollywood Honeypreet Insan How to HTML Ikka Inspiration Internet Tips Jaani Jassie Gill Jatinder Shah Jattu Engineer Jay-K Jenny Johal Jordan Sandhu Kamal Heer Kamal Khaira Kambi Kanth Kaler KRK Kulbir Danoda Living Lyrics Maninder Kailey Mankirt Aulakh Manni Sandhu Mannu Diwana Mass Transfer Master Saleem MD KD Mehtab Virk Mobile Movie Reviews Movie Trailer MSG Apparels MSG Products Music My Diary Neha Kakkar News Nimrat Khaira Ninja Open Letters Parmish Verma Pav Dharia People Pollywood Posters Prabh Gill Preet Hundal Preet Mand Product Reviews Punjabi Songs Raftaar Rakhi Sawant Randeep Hooda Religion Reviews Riddle Salman Khan Science Shael Oswal Shah Rukh Khan Shakira Sharry Mann Sheera Jasvir Short Films Sippy Gill Social Sonam Bajwa Sports Star Talks Sukh Sanghera Sukh-E Sundar Pichai Sushil Kumar Tanvi Nagi Tarsem Jassar Tech Terrorism Tony Kakkar Top List Tutorials TV Series Twitter Virus Solutions Wallpapers Wars Windows Tips Wrestling Writings Yoga YWF Events
false
ltr
item
Youth Voice: How To Disable Right-Click On Your Website or Blog
How To Disable Right-Click On Your Website or Blog
Simple one step method to disable right click on your webpages to prevent users from stealing your text or images easily.
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM5hyphenhyphen4fN3ZW-II3RnYg_fpBgWGmxgn5Y8J07fwf5pqietmVch0hOzHfPEVhGhdsg59amRaBcg8uxukwPelcnvnZ_XrueVSIZ3jo9dP4g99bUXJ-lfcfqkCyOlnMkNRBzon_jnI_A6egsI/s1600/Disable+Right+Click.jpg
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM5hyphenhyphen4fN3ZW-II3RnYg_fpBgWGmxgn5Y8J07fwf5pqietmVch0hOzHfPEVhGhdsg59amRaBcg8uxukwPelcnvnZ_XrueVSIZ3jo9dP4g99bUXJ-lfcfqkCyOlnMkNRBzon_jnI_A6egsI/s72-c/Disable+Right+Click.jpg
Youth Voice
http://www.ywfyouthvoice.com/2016/04/how-to-disable-right-click-on-your.html
http://www.ywfyouthvoice.com/
http://www.ywfyouthvoice.com/
http://www.ywfyouthvoice.com/2016/04/how-to-disable-right-click-on-your.html
true
7857785866171732330
UTF-8
Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy