I read somewhere about hot linking of images. Preventing image hot linking helps to stop bandwidth theft from your site. Would it work for a PHP file?
In my case, I am using a PHP file to generate thumbnails from an image. I don't want others to refer this PHP file from their site.