Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

hotlinking problem

Discussion in 'General Discussion' started by cyanide, Dec 3, 2004.

  1. cyanide

    cyanide Well-Known Member

    Aug 11, 2003
    Likes Received:
    Trophy Points:
    Toronto, Canada
    I have a client that's trying to ward off people direct-linking images.

    We enabled hotlinking and ofcourse put the domain (with and without www) in the ignore list.
    It seems to work fine, but the client cannot see the images on their own site.
    Running win xp on dsl . Even tried another computer in the home running Windows 98 on dialup and same thing.

    Everything works for me! Anyone have a clue ? or have encountered this before?
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. OCX

    OCX Well-Known Member

    Sep 20, 2003
    Likes Received:
    Trophy Points:

    try this ..edit the .htaccess file with

    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?*$ [NC]
    RewriteRule .*\.(gif|jpg|jpeg|bmp|png)$ [R,NC]

    you can enter subdomains too

    make an image that says something like STOLEN IMAGE
    then save it rename the ext that your NOT trying to block like how i have it in
    the example

    so if someone tryed to hot link to an image it would show that stolen image image instead

    works fine for me


Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice