Using an apache webserver, im currently redirecting hotlinks to a certain image.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?camosreptiles.com.au/ [NC]
RewriteCond %{HTTP_REFERER} !google\. [NC]
RewriteCond %{HTTP_REFERER} !search\?q=cache [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ http://i14.photobucket.com/albums/a345/Instar/nedry2.gif [NC,R,L]
</ifModule>
What id like to do, is redirect to a certain page (my own domain) if somebody pastes my image url into a browser, or uses an image url from my site in href. If they use image tags, i want to replace the image.
Not sure if this can be done anymore, I used to do this...
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(www\.)?camosreptiles.com.au(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|png|jpeg|bmp)$ http://www.camosreptiles.com.au/hotlink.shtml [R,NC]
and it used to work, but not anymore. If someone used image tags, it just showed a broken image.
Ive ream books worth of .htaccess stuff, but it all seems to be out of date and not work.
Is the above possible and can you show me how please? P.s. not sure if the coding is right for my .com.au domain?