title: PHP code for anti hotlinking
body: <p>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 generated url.</p>
  
  <p>For example in our site the image source is like: <code>image_file.php?type=image&amp;w=10&amp;h=10&amp;i=12</code></p>
  
  <p>(this only a fake url for example purpose).</p>
  
  <p>So using this url we need to show image in our site and at the same time want to prevent it from hot linking is there any way for prevent hotlinking?</p>