Sageth
10-10-2008, 10:02 PM
I run an arcade site that uses files from IPBArcade. I'm having some problems with one of my rewrite rules where it's causing my anti-hotlink file to be in a transparent overlay in front of the swf, but only on certain games. I'm wondering if someone who has a bit more experience in .htaccess can help me out. Here's the relevant part of my file:
# Use PHP5CGI as default
AddHandler fcgid-script .php
Options +FollowSymlinks
RewriteEngine on
## Allow Sites listed
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?sageth\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?myspace\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?livejournal\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?blogspot\.com/ [NC]
## send inappropriate hotlinkers to "hotlink.swf"
#RewriteRule .*\.(swf)$ hotlink.swf [NC,L]
My caveat is that I didn't create the original .htaccess, but expanding it and enabling certain functions has proven difficult.
Anyway, this works fine. The game at http://www.sageth.com/game/1462/YetiSports-8---Jungle-Swing.html works perfectly. If I uncomment my rewrite for hotlinkers, the game loads properly, but then transparently overlays the hotlink.swf file. Other games show the non-transparent version, and yet other games work fine.
Does the code here look OK? I've even gone so far as to use a packet sniffer and read through my log files, but I can't find any evidence that the Yeti .swf file is calling home.
Any thoughts?
# Use PHP5CGI as default
AddHandler fcgid-script .php
Options +FollowSymlinks
RewriteEngine on
## Allow Sites listed
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?sageth\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?myspace\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?livejournal\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?blogspot\.com/ [NC]
## send inappropriate hotlinkers to "hotlink.swf"
#RewriteRule .*\.(swf)$ hotlink.swf [NC,L]
My caveat is that I didn't create the original .htaccess, but expanding it and enabling certain functions has proven difficult.
Anyway, this works fine. The game at http://www.sageth.com/game/1462/YetiSports-8---Jungle-Swing.html works perfectly. If I uncomment my rewrite for hotlinkers, the game loads properly, but then transparently overlays the hotlink.swf file. Other games show the non-transparent version, and yet other games work fine.
Does the code here look OK? I've even gone so far as to use a packet sniffer and read through my log files, but I can't find any evidence that the Yeti .swf file is calling home.
Any thoughts?