SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Zealot webhost's Avatar
    Join Date
    May 2001
    Location
    Il
    Posts
    194
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    htaccess right click

    Does anyone know if it is possible to disable right click on the entire domain using htaccess file? If so what would that command be in the file?

  2. #2
    SitePoint Evangelist ucahg's Avatar
    Join Date
    Apr 2001
    Location
    Sarnia, Ontario, Canada
    Posts
    434
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not possible.

    .htaccess is for configuring Apache at the folder level (server-side changes).

    Right click disabling is done by javascript on the client side. They are completely seperate.

    Not to mention that you shouldn't be disabling right click in the first place.
    Love it? Hate it? Helpful? Useless?
    Use the rate button to let me know what you think of my post!

  3. #3
    SitePoint Zealot webhost's Avatar
    Join Date
    May 2001
    Location
    Il
    Posts
    194
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes I kinow the javascript way. And why may I ask why I should not disable right click?
    http://www.realwebhost.net/vps.php
    ICQ 120397604 |MSN : rwhmax@hotmail.com |
    AIM : rwhsupport | Yahoo: rwhmax
    For more information send us a email, Here

  4. #4
    "Of" != "Have" bronze trophy Jeff Lange's Avatar
    Join Date
    Jan 2003
    Location
    Calgary, Canada
    Posts
    2,063
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Because it makes your site look less professional, annoys the user, and doesn't really prevent anything anyways, since it is always possible to do whatever you want with someones website.
    Who walks the stairs without a care
    It shoots so high in the sky.
    Bounce up and down just like a clown.
    Everyone knows its Slinky.

  5. #5
    SitePoint Wizard Crowe's Avatar
    Join Date
    Nov 2001
    Location
    Huntsville
    Posts
    1,117
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Because it annoys the living daylights out of people.. (people being me!) I browse tabbed and I use right click to do a number of tasks. I've got several browser extensions loaded that allow me to use a page as I see fit - resize the window, list all links on a page, highlight a word to define it, open links in a new window, adjust font sizes etc. I LOATH sites that disable right click. Most people who disable right click are trying to keep graphics from being stolen, which is like trying to keep people from stealing money that your letting them keep at their house. Images are downloaded when viewed!!! The only thing you do by disabling the right click is limit your visitors ability to surf they way they are used to.
    Chrispian H. Burks
    Nothing To Say

  6. #6
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    Accessibility issues and mouse gestures are the two main reasons why you should avoid disabling the mouse button via some form of script.

    Protect images by digital watermarks.

  7. #7
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Whenever I come across a no-right-click script I just disable Javascript in that window/tab anyway, just to prove a point.

  8. #8
    SitePoint Zealot webhost's Avatar
    Join Date
    May 2001
    Location
    Il
    Posts
    194
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Lol
    http://www.realwebhost.net/vps.php
    ICQ 120397604 |MSN : rwhmax@hotmail.com |
    AIM : rwhsupport | Yahoo: rwhmax
    For more information send us a email, Here


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
  •