Help : image anti-leeching by redirect to my script

Discussion in 'Apache' started by tonyinabox, May 31, 2006.

  1. #1
    I have some question,, my mod_rewrite didn't work in the way I want. I'm not sure what's wrong

    I want to use it for image anti-leeching by redirect to my script with image URL and produce the image

    Please tell me what's wrong with above code. :confused:
     
    tonyinabox, May 31, 2006 IP
  2. tonyinabox

    tonyinabox Peon

    Messages:
    1,988
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    0
    #2
    ;( anybody HELPPPPPPPPP!
     
    tonyinabox, Jun 2, 2006 IP
  3. yfs1

    yfs1 User Title Not Found

    Messages:
    13,798
    Likes Received:
    922
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Heres what I use if it helps

    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?test.com(/)?.*$     [NC]
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?test-externalsite.com(/)?.*$     [NC]
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?forums.test.com(/)?.*$     [NC]
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?test.co.uk(/)?.*$     [NC]
    RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://www.test.com/notfound.gig [R,NC]
    Code (markup):
    You can also PM Nintendo and let him know about this thread
     
    yfs1, Jun 2, 2006 IP
  4. tonyinabox

    tonyinabox Peon

    Messages:
    1,988
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    0
    #4
    LOL,, he answered me already. He can't do other than changing URL.

    thanks. i might ask him again
     
    tonyinabox, Jun 2, 2006 IP