View Single Post
Old 09-22-2004, 10:54 PM  
Mr Pheer
So Fucking Banned
 
Industry Role:
Join Date: Dec 2002
Posts: 22,083
anti-hotlink mod_rewrite question

How do i stop people from hotlinking images, but if they link to a page with an image, have that work?

in other words, linking to a page is fine, hotlinking just the image on the page is not

this is what I have:
RewriteEngine on
RewriteCond %{http_referer} !^$
RewriteCond %{http_referer} !^http://(www\.)?mydomain.com/.*$ [NC]
rewriterule ^.*$ http://www.mrpheer.com/bdc.gif [R,L]

but its blocking everything, pages and images

help?
Mr Pheer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote