In our sites we are doing a image protection section. So as a part of image protection we need
provide antihotlinking for images.In our site we are showing the image using a
You can try checking the value of $_SERVER['HTTP_REFERER'] against a known value, but as the documentation states, that can be spoofed. It might help against the common case, though.