Prevent hotlinking of attachments
- by reggie
People are able to embed my forum's attachments (vbulletin).
I tried to create an htaccess rule for the hotlinking, but it did not work.
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain\.com.*$ [NC]
RewriteRule attachmentid=\d+(\&d=\d*)?|\.([Gg][Ii][Ff]|[Jj][Pp][Gg])$ http://mydomain.com/antihotlink.jpeg [R]
Is it not possible to check for numbers in regular expressions in htaccess files?