View Single Post
Old 04-12-2007, 12:22 PM  
mikeyddddd
Viva la vulva!
 
mikeyddddd's Avatar
 
Join Date: Mar 2003
Location: you can't please everyone, so you got to please yourself
Posts: 16,557
Quote:
Originally Posted by Jace View Post
what if the image is 404? then that will just break the frame and throw them on the 404 page, right?
You could do something like this in the .htaccess for the image folder:

RewriteCond %{HTTP_REFERER} !^http://(www\.)?YOURDOMAIN(/)?.*$ [NC]
RewriteRule /* /path-to/redirect.php [NC]

In redirect.php:

header("Location: your_url");
mikeyddddd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote