The following should work as you want:
It's also possible to use the same PHP file for all images:Code:RewriteEngine on RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g|png)$ [NC] RewriteCond %{HTTP_REFERER} !(domain\.com) [NC] RewriteRule (.*)\.(gif|jpe?g|png)$ http://domain.com/folder/$1.php [R,L]
where hotlink.php contains something like the following:Code:RewriteEngine on RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g|png)$ [NC] RewriteCond %{HTTP_REFERER} !(domain\.com) [NC] RewriteRule (.*)\.(gif|jpe?g|png)$ http://domain.com/folder/hotlink.php?image=$0 [R,L]
PHP Code:<img src="<?php echo $_REQUEST['image']; ?>">
LinkBack URL
About LinkBacks
. I know its possible because I've seen it done.
Reply With Quote

Bookmarks