Got a question about technology? Ask it here. Discussion of hardware, software, TiVos, multi-region DVDs, Windows, Macs, LINUX, hand-helds, iPods, anything tech related. Better than any helpdesk!
If you were just filtering against xanga.com, did you remove the OR flag and remove the second RewriteCond from that chain?
Copy and paste -- I filtered against buffistas.org and xanga.com, and you can see the results. I did minor guessing tweaks in between each result to calibrate, and new joy.
Can you restart your httpd daemon on this server (after making changes to .htaccess)? I found that helped with mine, to get the new rules loaded.
Nope. It's a shared server. It seems to pick up on there being new rules with each save, since I can break and repair pretty quickly.
RewriteCond %{HTTP_REFERER} ^http://(.*.)?xanga.com/.*$ [NC]
This line, there's no ! in front of ^http:// correct?
I'm trying to figure out why b.org matched on this rule.
Yup.
I can try again, if you're going to be around for a second or two.
Yup, for about another half hour.
Try: [link]
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://(.*.)?buffistas.org/.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.*.)?xanga.com/.*$ [NC]
RewriteRule .*\\.(jpg|jpeg|gif)$ [link] [R,NC,L]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(.*\\.)?buffistas.org/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.*\\.)?provocateuse.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.*\\.)?worldcrossing.com/.*$ [NC]
RewriteRule .*\\.(jpg|jpeg|gif)$ [link] [R,NC]
Damn.
That works.
I
swear
that's what I had in there earlier today ....
I got "hotlinking is bad."
I got xanga.gif.
Which Firefox helpfully resized so that the text was really teeny.