Prevent theft of your files [.png, .txt, .jpg, .rar, .gif ...]

onateac

Programmer
Messages
233
Reaction score
271
Points
698
Hello, Often without knowing your site is victim theft file causing a slowdown of your site including your bandwidth. I could go through about ten websites with our our smilies gif or smileys etc. Here is how these leechers blocked. In your .htaccess

code:
RewriteCond% {HTTP_REFERER}! (I.e.
RewriteCond% {HTTP_REFERER} ^ http (s): // your field [NC] (www \.)?
RewriteCond% {HTTP_REFERER} ^ http (s): // google.com [NC] (www \.)?
RewriteCond% {http_REFERER} ^ http (s): // google.fr [NC] (www \.)?
RewriteCond% {HTTP_REFERER} ^ http (s): // bing.com [NC] (www \.)?
RewriteCond% {HTTP_REFERER} ^ http (s): // yahoo.com [NC] (www \.)?
RewriteCond% {HTTP_REFERER} ^ http (s): // facebook.com [NC] (www \.)?
RewriteCond% {HTTP_REFERER} ^ http (s): // twitter.com [NC] (www \.)?
RewriteRule \. (JPG | jpeg | png | gif | bmp | tiff | peak | mp3 | doc | xls | mpeg | mpg | ram | rm | wma | wav | ASX | wmv | avi | zip | rar | exe |
You do not have permission to view link Log in or register now.
 

Harry

Software Engineer
Premium Member
Messages
1,258
Reaction score
962
Points
748
Hello, Often without knowing your site is victim theft file causing a slowdown of your site including your bandwidth. I could go through about ten websites with our our smilies gif or smileys etc. Here is how these leechers blocked. In your .htaccess

code:
RewriteCond% {HTTP_REFERER}! (I.e.
RewriteCond% {HTTP_REFERER} ^ http (s): // your field [NC] (www \.)?
RewriteCond% {HTTP_REFERER} ^ http (s): // google.com [NC] (www \.)?
RewriteCond% {http_REFERER} ^ http (s): // google.fr [NC] (www \.)?
RewriteCond% {HTTP_REFERER} ^ http (s): // bing.com [NC] (www \.)?
RewriteCond% {HTTP_REFERER} ^ http (s): // yahoo.com [NC] (www \.)?
RewriteCond% {HTTP_REFERER} ^ http (s): // facebook.com [NC] (www \.)?
RewriteCond% {HTTP_REFERER} ^ http (s): // twitter.com [NC] (www \.)?
RewriteRule \. (JPG | jpeg | png | gif | bmp | tiff | peak | mp3 | doc | xls | mpeg | mpg | ram | rm | wma | wav | ASX | wmv | avi | zip | rar | exe |
You do not have permission to view link Log in or register now.
This hurts my eyes.
Is it possible you can give us an example.
Take this site for an example :smile:
 
Top