+321 123 4567
info@test.com
  • Home
  • My Services
    • Web Design
    • Web Development
    • Technical Writing
  • Portfolio
  • My Thoughts
  • Free Tools
    • Photo Editor
    • Avatar Generator
    • Email Migration Tool
    • QR Code Generator
    • RSS to HTML Converter
    • Rich Text Editor
    • IP Address Geolocation
    • Base64 Image Encoder
    • NATO Translator
    • All Tools
  • Contact
Home
Blogger
How To Disable Right Click On Your Blog

How To Disable Right Click On Your Blog

Wale Adekile
September 22, 2011

Are you worried because you think your blog content is being copied without your permission? I wrote a post in the past on how to fight content thieves but I didn’t mention disabling right click because I never saw it as a good idea. A visitor might want to copy your tutorial to a notepad for reference purpose but disabling right-click on your blog makes this impossible. This can actually make you lose visitors. The simple truth is that only a very few percentage of your visitors want to copy your content for the purpose of using it on their own blog.


Also, disabling right click on your blog just to protect your content looks rather unprofessional to me. I won’t advice you to do this because I, personally can’t do it. Well, that’s just my own opinion though, you can follow the process if it’s important you implement it on your blog but I still maintain it ain’t cool. 🙂

To disable right click on your blog

1. Login to your blogger account

2. Click on Design > Edit HTML

3. Search for <head>


4. Paste this code just below it:


<script language='Javascript'>
function mycontextmenu() {
alert('Sorry, right-click has been disabled');
return false;
}
document.oncontextmenu = mycontextmenu;
</script>

It should look just like this:

5. Save your template and visit your blog. You’ll only find out that right click is totally disable.

6. This is optional but you can change the characters in red to your personal text. This is the message that’ll be displayed instead of context menu.

Like I said earlier, disabling right-click is a lame method to protect your content and I won’t recommend it to anyone. Have you given it a thought that regular visitors won’t even be able to right click on a link and open it in a new tab? It’s one of the ways to frustrate your regular visitors and drive them off.

How To Bypass Disabled Right-Click


In case you visit a site with right-click disabled, there’s a way to bypass it. Just copy the javascript below and paste it into the address bar, hit ENTER and it totally disables whatever right click script used:

javascript:void(document.onmousedown=null);void(document.onclick=null);void(document.oncontextmenu=null)

Please share the post if it helps!


Previous Post
Easy Way To Hack Your Nokia Or Sony Ericsson Symbian Phone Without Flashing
Next Post
Tips To Make Computer Games Run Faster
Wale Adekile
Husband to the world's most beautiful woman and father to two awesome kids. A nerd, obviously; also, a technical business analyst, a web designer who preaches the gospel of WordPress, and a writer. You can check out my published books on Amazon.
disqus-wordpress-comment
Blogging Tips

Why I Switched from Disqus Comments Back to WordPress Default

11 years ago
Blogging Tips

7 Tips That Will Make Your Blog Stand Out

12 years ago

Recent Articles

wahl rapic clip hair clipper
Wahl Rapid Clip Hair Clipper Review: DIY Made Easy
BenQ LaptopBar Review: Luxury or Necessity?
yunmai easepro unboxed
Yunmai EasePro Massage Gun Review
g20
Teendow G20 Robot Vacuum and Mop Review
bathroom
Dear Men, Spraying All Over the Toilet Seat is Disgusting and Irresponsible
winx mediatrans
How to Transfer Photos from iPhone to Computer Without iTunes
google workspace
How to Migrate Emails From Google Workspace/G Suite to cPanel
synology diskstation ds920+
Synology DiskStation DS920+ Review
playstation 4
Why I haven’t Upgraded to the PlayStation 5 Yet
pain
Started Watching Anime as an Adult? You’re Not Alone

All contents on this blog are copyright protected and cannot be reproduced on other websites without permission.

Copyright © 2022 – NerdieDad | Home | Contact | About | Privacy Policy