Why doesn't this work...htaccess

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ass Man
    Confirmed User
    • Jan 2002
    • 121

    #1

    Why doesn't this work...htaccess

    The bad image never shows when i try to hotlink.

    ErrorDocument 401 /errors/401.html
    ErrorDocument 403 /errors/403.html
    ErrorDocument 404 /errors/404.html
    ErrorDocument 500 /errors/500.html

    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://site.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.site.com/.*$ [NC]
    RewriteRule .*\.(gif|GIF|jpg|JPG)$ http://site.com/bad.gif [R]
    So many asses so little time.
  • eru
    Confirmed User
    • Mar 2002
    • 2612

    #2
    Because you fucked up. format c: and it will work... I think.
    <font color="#FFFFFF" size="2" face="Verdana">This thread will self-destruct in 5 seconds.</font><font color="#FFFFFF" face="Verdana"><br>
    <br>
    <font size="1">In the meantime, consider hosting with <a href="http://www.choopa.com"><font color="#00FF00">Choopa</font></a>
    -- The only provider with 9 x 1000mbps Transit Redundancy</font></font>

    Comment

    • Vox
      Confirmed User
      • Mar 2002
      • 2710

      #3
      Try this, works for me.

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


      Make sure you don't put your hotlink image in a directory that is protected, or it won't work.
      Last edited by Vox; 09-02-2002, 05:46 PM.
      Social profile assassination for hire

      Comment

      • PhilipX
        Confirmed User
        • Aug 2002
        • 200

        #4
        The images you are using may be of big size and your server does not support them. Change the host.

        Comment

        Working...