Need help .htaccess

Discussion in 'Apache' started by Jakobi, Jun 12, 2007.

  1. #1
    I am not understanding something but why doesnt this block my hotlinked images..

    or better yet is this correct?

    
    
    Options +FollowSymLinks
    RewriteEngine on
    
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?www.mysite.com(/)?.*$     [NC]
    RewriteRule .*\.(gif|jpg|jpeg|bmp|png)$ http://www.mysite.com [R,NC]
    
    RewriteRule funny-news(.*)\.htm$ /news.php
    RewriteRule forums(.*)\.htm$ /forums.php
    RewriteRule funny-jokes(.*)\.htm$ /jokes.php
    RewriteRule funny-comics(.*)\.htm$ /comics.php
    RewriteRule funny-pictures.htm$ /pictures/index.php
    RewriteRule funny-links(.*)\.htm$ /links/index.php
    RewriteRule flash-games(.*)\.htm$ /games/index.php
    RewriteRule funny-videos(.*)\.htm$ /videos/index.php
    RewriteRule picture_(.*)\.htm$ /photos/showgallery.php/cat/
    RewriteRule binghamton-jokes(.*)\.htm$ /binghamton_tidbit.php
    RewriteRule binghamton-barbie-dolls(.*)\.htm$ /binghamton_barbie.php
    RewriteRule trade-traffic(.*)\.htm$ /webmasters.php
    RewriteRule funny-humor(.*)\.htm$ /referrers.php
    
    
    Code (markup):

     
    Jakobi, Jun 12, 2007 IP