Log in

View Full Version : disabling right mouse click script with redirecting instead of pop-up



vmh
09-24-2010, 01:59 PM
hi all, i chanced upon the disable right mouse click script and was wondering if there is another version of the script whereby right clicking on the site/images does not produce a pop up that says no clicking but directly links the person away from the site to a random website? to google.com.sg (or dynamicdrive?)

//Disable right mouse click Script //By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive //For full source code, visit http://www.dynamicdrive.com

thanks in advance! will credit dynamicdrive if i can find a script for my site :)

djr33
09-24-2010, 10:42 PM
I don't know of anything like this. It wouldn't be hard to adjust a script to do it though: just change the right click event to document.location = 'http://google.com/';

Also, this is a terrible idea. I'm sorry to be so blunt about it, but it's true. This is the sort of thing that may seem, from one perspective, to be a good idea but in the end will just be a lot of trouble. I understand why it may seem like a good idea, but it will make visitors randomly leave your site: you want more traffic, not less. If you have something that must be protected, either add logins (accounts, or just a password) or don't put it on the internet.

Additionally, people can get around any sort of "security" you might try so it won't protect anything-- it'll just confuse "real" visitors who accidentally click the wrong button or try to cut and paste some text (harmlessly) from your site.


If you just want this as a funny page or something, that's fine, but if you are putting this on a real website to protect something, I strongly suggest you reconsider.


Note: most/all right click scripts are outdated and don't work in all browsers. Most, maybe.

vmh
09-25-2010, 05:58 AM
thanks bluewalrus. i just read the terms and condition and i realised it's a violation of tos!

bluewalrus
09-25-2010, 06:17 AM
I'd think redirecting users unknowling to a page you are getting paid to send users to would be a violation of TOS either on your server/hosts side or on the ad hosts side if not both.