Results 1 to 4 of 4

Thread: disabling right mouse click script with redirecting instead of pop-up

  1. #1
    Join Date
    Sep 2010
    Posts
    2
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default disabling right mouse click script with redirecting instead of pop-up

    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

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. The Following User Says Thank You to djr33 For This Useful Post:

    vmh (09-25-2010)

  4. #3
    Join Date
    Sep 2010
    Posts
    2
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    thanks bluewalrus. i just read the terms and condition and i realised it's a violation of tos!
    Last edited by vmh; 09-25-2010 at 11:59 AM.

  5. #4
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    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.
    Corrections to my coding/thoughts welcome.

  6. The Following User Says Thank You to bluewalrus For This Useful Post:

    vmh (09-25-2010)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •