Block Right-Clicking in Clip-Bucket v2


Have you seen some websites blocking mouse right clicks? They do it to block certain content from being either downloaded or shared (can be still downloaded, though). Learn how to do it in your Clip-Bucket v2 powered website by following these simple instructions. Cross-browser.

1. Open ./styles/{YOURTEMPLATE}/global_header.html

2. Find


and before that line, paste

<script type="text/javascript">
var message="Right Clicking Has Been Disabled.";
function clickIE() {if (document.all) {alert(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {alert(message);return false;}}}
if (document.layers) {


} else {


document.oncontextmenu=new Function("return false");

3. Save & Upload.

Now go to your site and notice that whenever you right click, an alert will pop up saying the function has been disabled. If you cannot get it working or you get stuck at any step, please do not hesitate to can’t me ASAP so I can assist you. If you’d like me to cover a specific topic, I’m up for suggestions, just let me know!

Best Regards,


Looking for quality Clip-Bucket hosting? Try out Arvixe and you won’t be disappointed.
Tags: , , , , , , , , , , , , | Posted under ClipBucket | RSS 2.0

Author Spotlight

Richi González

I started programming when I was 12. I'm a Developer and have been working with the Clip-Bucket script since it came out. I'm the Liaison between Arvixe and Clip-Bucket, so anything you need regarding Clip-Bucket or any particular computer-related subject you need, let me know so I can assist you.

Leave a Reply

Your email address will not be published. Required fields are marked *