Web Africa - Home
Register your Domain
www
4 Notices

.htaccess > Prevening hot-linking of images from your website - Web Africa > Support KnowledgeBase

KnowledgeBase

Please Enable Javascript
KB Home > .htaccess > Prevening hot-linking of images from your website

Preventing hot-linking of images from your website

If your website contains images which people from other websites are linking to and you get charged for the extra bandwidth, then placing the following lines will prevent any such image hot-linking.

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?your-domain.com/.*$ [NC]
RewriteRule .(gif|jpg)$ - [F]


In the above code, replace [your-domain] with your actual domain name [without www] =]


Mail | Print


Additional Info
General
Article Number: 137
Views: 1130
Created By: Craig Vine
Date Created: 21/11/2006
Last reviewed by: Aziz Arnold
Last updated: 20/05/2008


Comments
No Comments...



Article Rating
Average Rating: 5 (2 Votes)
Rate this article:
5 (Great!)
4
3
2
1 (Awful!)


Client Log In
User
Pass
Contact
0861-555-222
24 hours a day / 7 days a week
Live Assistance
News
WA acquires Frogfoot consumers MailFire: Email Marketing Launched! Hosting Overage Traffic Price Reduction
Testimonials
We have used and worked with quite a few internet service providers, both in South Africa and abroad. WebAfrica is by far the most organized and user-friendly. So far it has been an extremely positive experience, keep up the good work!
- David Gommeren
Privacy PolicyTerms & ConditionsDisclaimerRefund PolicyAcceptable Usage PolicyEmail this page to a friendPrint
ISPA Member Copyright Web Africa 1996 - 2008. All rights reserved.
Site Map | ADSL | Web Hosting | Windows Hosting | Linux Hosting | Reseller | Reseller Hosting | Domain Registration | Dedicated Servers