Home    Blog    Entertainment    Links    RSS     Disclosure

Wednesday, April 16, 2008

How To Disable Right Clicking In Your Site



Ever wonder why when you right-click on my site, there a message that says, “Right-clicking has been disabled?” Well, I actually added a code in my blog that restricts right clicking. So, what’s this right-click disabling can do to your site? Not only it will protect you from others copying your text content and pictures but it will also restrict others from viewing your source code. If you are an IT person like me, of course there is a technique that can make you still copy and view source codes.

Thanks by the way to Itot for the source code. If you are a blogger user, all you need to do is to go to your Dashboard then click the Layout selection. At the layout screen, click the Add A Page Element then choose HTML/JavaScript. Paste the code then click Save. Refresh your web site then try right clicking on your site. Voila!

Download the source code here.

If you like this post, buy me a cup of coffee.

3 comments:

Pweng Bee said...

You know what my friend.... Even right-clicking can be disabled, I can still select contents in your blog by typing ctrl+A and ctrl+C...

As simple as that, then I can copy it. Maybe the one we should work out is how to disable that, not just the right-clicking thing. :)

That's the one I'm thinking to do in my blog but I don't know how. Let me know if you know how. Hehehe...

muragdoctor said...

I did a different method. I highlighted the text I wanted, using the Left Click, of course. Then I went to Edit and selected Copy.
For the source code, I just went to View and clicked on Page Source*. Alternatively, anyone can use Ctrl+U for that.
Btw, I recently visited a site wherein I couldn't Left Click, Right Click, or even do anything with Ctrl+A on the non-linking text. Nevertheless, all of its effects are brought to naught if Scripts are disabled. I dunno how IE users could do that, but this is just one of the reasons why Firefox rocks!


*I use Firefox. I dunno how IE users could view that, however.

Denis said...

this is a great feature especially if you like to protect your contents