Results 1 to 2 of 2

Thread: htaccess question

  1. #1
    Dzinerbear
    Guest

    htaccess question

    Hi all,

    I still got a lot of hits from the "hot-linker" yesterday. I thought I plugged up all of the holes yesterday with my htaccess file, but I only did that at 9 a.m., so perhaps this traffic is from between midnight and 9 a.m.

    Here's my htaccess file. Can someone tell me is it possible to include a line that just bans traffic from footbuddies.com altogether?

    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !^http://.+.mydomain.com/* [NC]
    RewriteCond %{HTTP_REFERER} !^http://mydomain.com/* [NC]
    RewriteCond %{HTTP_REFERER} !^http://.+.mancheck.com/* [NC]
    RewriteRule /* http://www.mydomain.com [R,L]

    Thanks
    Dzinerbear


  2. #2
    Xstr8guy
    Guest
    I'm no expert, but I think you need .htaccess like this to prevent hotlinking.

    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://www.hairyguys.us [NC]
    RewriteCond %{HTTP_REFERER} !^http://hairyguys.us [NC]
    RewriteRule .*\.(gif|GIF|jpg|JPG|mpg|MPG|Mpeg|mpeg|MPEG|rm|RM| swf|SWF)$ http://www.hairyguys.us/404page.html [R,L]


    here's a good link for more info.
    http://www.htmlbasix.com/generators.shtml
    Last edited by Xstr8guy; 03-09-2004 at 09:17 AM.


Posting Permissions

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