|
4 Notices
|
KB Home >
.htaccess
>
Preventing Image Bandwidth Theft
|
Preventing Image Bandwidth Theft With .htaccess 1. Place all your images you wish to protect from being stolen (bandwidth-wise) in a separate directory. 2. Create an text file(ASCII) named .htaccess and save it in that directory. 3. Paste the follwing code exactly how it is into that file: SetEnvIfNoCase Referer "^http://www.your-domain-name-here.com/" locally_linked=1 SetEnvIfNoCase Referer "^http://www.your-domain-name-here.com$" locally_linked=1 SetEnvIfNoCase Referer "^http://your-domain-name-here.com/" locally_linked=1 SetEnvIfNoCase Referer "^http://your-domain-name-here.com$" locally_linked=1 SetEnvIfNoCase Referer "^$" locally_linked=1 <FilesMatch "\.(gif|png|jpe?g)$"> Order Allow,Deny Allow from env=locally_linked </FilesMatch> 4. Place your real domain name in exchange for "your-domain-name-here.com" . If your site can be accessed using other domain names be sure to add more entries.Please also be aware that most sites can be accessed with or without the "www" prefix. |
Mail |
Print| Additional Info |
![]() |