Forum Moderators: phranque
RewriteEngine On
RewriteCond %{HTTP_REFERER}!^http://(www\.)?mydomain\.net/ [NC]
RewriteRule \.(jpe?g¦gif¦bmp¦png¦JPE?G)$ - [F]
and seems to be working fine. but the problem is i have a file "index.php" that when someone first comes to the site, it pulls a random splash page from the folder "mydomain.net/splash". But the pics on those pages are not coming up now. what should i add so that pages in the "splash" folder are allowed to display my images?
Thank U
Welcome to WebmasterWorld [webmasterworld.com]!
It's possible that your php page is not providing a referrer. Referers are notoriously unreliable anyway, and I always suggest allowing blank referers due to the fact that many caching proxies and internet security software packages suppress the referer info. So, it looks like you've run into another case where the referrer is suppressed.
To fix it, you can try this:
RewriteEngine On
RewriteCond %{HTTP_REFERER} .
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain\.net/ [NC]
RewriteRule \.(jpe?g¦gif¦bmp¦png)$ - [NC,F]
Jim