How To Disable Right-Click On Your Website or Blog

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 ...



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

post-feature-image
post-feature-image

new

Name

A-Kay Ajay Devgn Akhil Akshay Kumar Android Automobile Ayurveda B Praak Babbal Rai Badshah Bilal Saeed Blogger Tips Bollywood BSNL Bunty Bains Chemical Engineering CLEO Computer Tricks Defense Forces Desi Crew Desi Routz Didar Othie Documentary Dr. Zeus EA Cricket Kits EA Cricket Team Logos EA Sports Cricket 07 Education Emraan Hashmi English Songs Entertainment Funny Gaming Garry Sandhu Gippy Grewal Girik Aman Goldboy GTA Games GTA San Andreas Gurmeet Ram Rahim Hacking Happy Raikoti Hardeep Grewal Harish Verma Harshit Tomar Health Hindi Songs History Hollywood How to HTML Ikka Import/Export Tools Internet Tips Jaani Jassie Gill Kamal Heer Kamal Khaira Kambi Kanth Kaler KRK Living Lyrics Manni Sandhu Mass Transfer Master Saleem Minor Mods Mobile Movie Reviews Movie Trailer MSG Apparels MSG Products Music My Diary News Ninja Open Letters Parmish Verma Pav Dharia People Posters Prabh Gill Preet Hundal Preet Mand Product Reviews Punjabi Songs Rakhi Sawant Reviews Riddle Shael Oswal Shakira Sharry Mann Sheera Jasvir Short Films Sippy Gill Social Sports Star Talks Sukh-E Sushil Kumar Tarsem Jassar Tech Terrorism Tools Top List Tutorials Twitter Virus Solutions Wallpapers Wars Windows Tips Wrestling Writings Yoga YWF Events
false
ltr
item
Test!: How To Disable Right-Click On Your Website or Blog
How To Disable Right-Click On Your Website or Blog
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjm5sgspgW0AZmOjkV2d8GNyqjgg1K5arZ8yYLrUiXK_xHOV7LV1tr-hCn8LEI07Zethw-JkeB2FKPDJjXvOrEvgaXkEjBljgefTfyd7UzC3ozbTKkupUFJTdaXFjJoXhsTR_cdaGwt0zY/s1600/Disable+Right+Click.jpg
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjm5sgspgW0AZmOjkV2d8GNyqjgg1K5arZ8yYLrUiXK_xHOV7LV1tr-hCn8LEI07Zethw-JkeB2FKPDJjXvOrEvgaXkEjBljgefTfyd7UzC3ozbTKkupUFJTdaXFjJoXhsTR_cdaGwt0zY/s72-c/Disable+Right+Click.jpg
Test!
https://ywfyouthvoice.blogspot.com/2016/04/how-to-disable-right-click-on-your.html
https://ywfyouthvoice.blogspot.com/
http://ywfyouthvoice.blogspot.com/
http://ywfyouthvoice.blogspot.com/2016/04/how-to-disable-right-click-on-your.html
true
2724627827121263907
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