
| Tutorials Main Latest Tutorials Popular Tutorials Top Rated Tutorials |
| Login to See your Favorite Tutorials |
| Description: This is a short tutorial on how to block images from being hotlinked by other sites. | |
| Version: 1.0 | |
| Added on: 18 January 2009 | |
| Author: Floppy | |
| Difficulty Level: Very Easy | |
| Views: 534 | |
| Rating: 10.0 (2 Votes) | |
This short tutorial will explain how to block images from being linked from other sites. It is a term better known as hotlinking.
To use this hack you must insure that apache rewrite engine is enabled. The best way to find that out is simply by trying.
You need to create a .htaccess file with the following code.
| Code: |
| RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www.)?clan-themes.co.uk(/)?.*$ [NC] RewriteRule .*.(gif|jpg|jpeg|bmp|png|jpeg)$ - [F,NC] |
| Code: |
| RewriteRule .*.(gif|jpg|jpeg|bmp|png|jpeg)$ - [F,NC] |
Submitted by floppy