Annoyed! when some people hotlink your files/images and not giving link-back to your site, They run their own ads code using your bandwidth. I think this is not allowed! at least they should giving link-back not just stolen our bandwidth without anything like that. Would you give them some psycho attack? Then you’re on right page keep continue reading on this article.
If you want people back to your site you should make an code to stop hotlink files and give warning message on it… like my very easy sample 😛
I made an warning message in some of my site to stop hotlink, photoshop images are good but I prefer html/flash files with click action script so when people click on it it will redirect to your own site.
Once you make your own warning message time to edit .htaccess files and put this code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?YOURSITE.com [NC]
RewriteRule \.(swf|jpg|gif|etc)$ hotlink.jpg [NC,L]
Edit the word with bold red colors to fit your configuration. This code will stop all hotlink from ANYSITE except YOURSITE.
If you just want to specify which site not allowed to hotlink you can write code like this:
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^https://www.SOMESITE.com [NC]
RewriteRule \.(swf|jpg|gif|etc)$ https://yoursite.com/hotlink.jpg [R]
Edit the word with bold red colors to fit your configuration. This code will stop all hotlink from SOMESITE.
Look on this sample site(still there lot), They not giving link-back to my site so I stop hotlink from they site, If they give link-back I may permitted they use my bandwidth he he he.. is it really hard for send me email to ask my permission? *LOL* please stop thief my bandwidth 😀
https://www.projuegos.com/juegos/bigdiamond/diamond.php
https://www.baixakijogos.com.br/flash/teenage-mutant-ninjaturtles/index.html
https://www.tuttogratis.it/giochi_gratis/mico_maco/
Enjoy 🙂
Similar Posts:
- PHP: How To Blocking Bad Referrer Site
- Please stop spam my blog!
- Playing with .htaccess file
- Secure Your WordPress, Playing With Your .htaccess File.
i use this trick too 🙂