We provide this tool for FREE! However, we would greatly appreciate your support so we can continue to develop more tools (online tools and downloadable tools). You can show your support by sharing / liking this tool
on Facebook. You can also tweet this page to your Twitter followers and following us on Twitter.
What is hotlinking? Hotlinking (= bandwidth and intellectual property theft) refers to direct linking to a website's files (images, video, etc.). An example would be using an <img> HTML tag to display an image you found on someone else's webpage so it
will appear on your own website, blog, forum message, etc. The most common solution is to add Rewrite lines to .htaccess file in images directory to check Referer. Only display images if referer is from certain domains. Old school,
ineffective, and easy to cheat. For one, it is common for browsers to not pass referer (for example, under certain browser privacy settings, and when viewing site as HTTPS). Referer can also be faked or spoofed. Unreliable. This tool
serves to block hotlinking of images without referer checking.
You need to create two(2) files: (1) a page to display the image, and (2) a PHP file (image.php) to serve the image.
Change '/img/' in line 03 to reflect relative URL to images directory where you are linking to an image.
Change "/image.php?img=image.jpg" in line 25 to reflect URL to image.php, and image name.
Change "overlay.gif" in line 27 to reflect URL to overlay.gif. Download the file below.
Rather use a HTML page instead of a PHP one? Easy solution. Rename index.php as index.html. Then, in the same directory as the
file, create a .htaccess file if it does not already exists. Then add the following lines to the .htaccess file: