Hy i'm looking for a way to redirect to same page every time anyone wants to access specific image (example.gif for example ). Something like scipts for preventing hotlinking. But for only one image. I can't use .htaccess becouse godaddy doesn't support it. Is this even possible?
Without .htaccess or some apache configuration changes, no. An image request hits your webserver directly and this never comes into play with PHP.
ok i did it with .htaccess is there any way to know which image was hotlinked? $_SERVER["HTTP_REFERER"] doesn't work. And again, is this even possible
Exactly this well i read that it's only safe to redirect to files with same extention as the one hotlinked but this works for me
I can't see why it would ever be unsafe to redirect to different file extensions.. that would kinda limit the main uses of mod_rewrite. degy, HTTP_REFERER will give you the referring page, i.e. the page that the image was linked from. Try REQUEST_URI instead..