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

pwnd08

Programmer
Messages
223
Points
348
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 have to be logged in to view links Log in or register now.
 

Harry

Software Engineer
Premium Member
Messages
1,234
Points
548
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 have to be logged in to view links 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