Forum Moderators: open
Firefox:
it blocks everything i put in my hotlinks, but for some reason it seems to block my flash gallery from reading the hotlinks file. My flash read in a XML file, but hotlinks seems to block it from reading it! They're all on the same directory/folder.
IE:
On the other hand, if i load up the blocked files the first time it shows. However, if i click "refresh" the files get blocked.
i emailed my hosting support and everything, but they're no help what so ever. :(
Wish i can just post my own URL on here so everyone can see what's going on, or maybe just my computer but i don't think i'm allowed to post my own URL.
please help :(
my .htaccess file
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://www.example.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.example.com$ [NC]
RewriteRule .*\.(xml¦js¦jpg)$ http://www.example.com/ [R,NC]
[edited by: tedster at 3:08 am (utc) on Mar. 24, 2008]
[edit reason] switch to example.com - it can never be owned [/edit]
RewriteEngine on
# If referrer is non-blank
RewriteCond %{HTTP_REFERER} .
# and referrer is not our own site (www or non-www)
RewriteCond %{HTTP_REFERER} !^http://(www\.)?example\.com [NC]
# Return 403-Forbidden response
RewriteRule \.(xml¦js¦jpg)$ - [F]
Completely flush your browser cache before testing any new .htaccess code.
If you use a custom 403 error page, add another RewriteCond to the code:
RewriteCond %{REQUEST_URI} !^/path-to-custom-403-error-page\.html$
Jim
RewriteEngine on
RewriteCond %{HTTP_REFERER} .
RewriteCond %{HTTP_REFERER} !^http://(www\.)?example\.com [NC]
RewriteRule \.(xml¦js¦jpg)$ - [F]
[edited by: tedster at 3:48 am (utc) on Mar. 25, 2008]
[edit reason] switch to example.com - it can never be owned [/edit]