| ||||
| I have been up for the past hour trying to figure out a way of stopping some punkasses from linking to our cool smilies. It would be fine if they were to just save it and serve it themselves, but they are just linking to us and using NZBs bandwidth. I am trying to make .htaccess block it, but doesn't seem to be working. | ||||
| ||||
| Quote:
Code: <IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://66.194.238.6.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.nzboards.com/forums.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.nzboards.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://nzboards.com.*$ [NC]
RewriteRule .*$ http://www.nzboards.com/forums/index.php [R,L]
</IfModule> It should display a broken image to someone hotlinking to your images and redirect anyone trying to open them via a link on their website to your forums index. If you have any other subdomains e.g. gallery.nzboards.com etc add them to the list of allowed sites together with any other site you want to have access to your images. | ||||
| ||||
| Hmm.. I will try it, but it sounds nowhere near as much fun as changing a couple of emoticons to read 'YOU ARE DIRTY BANDWIDTH THIEVES!' ... ![]() | ||||
| ||||
| Quote:
*looks all proud-like* | ||||
| ||||
| *nods* Theft is definitely the sincerest form of flattery. ![]() Quote:
| ||||
| ||||
| Quote:
| ||||
| ||||
| Yeah, twice! Yay us! I don't think the protection is working. ![]() I spose I could always deny all runboard.com's IP... | ||||
| ||||
| Quote:
Try emptying your cache and then viewing one of the sites you know to have hot linked your images to see it has worked. *edit* It must be your cache I just tried hotlinking to some of your images and all I got was broken images. | ||||
| ||||
| What about when I clear my cache and enter an IMG link to a smilie I have never viewed using IE, and it still comes up? *edit* after your edit: Is that still the case? | ||||
| ||||
| Quote:
I see you have replaced the redirect page with a redirect image. Attached. You may be seeing an image cached by your ISP if you have cleared your own. How are you trying to view the images? Don't type the address straight into the address bar as you will still see them Also be sure that the page you are calling the image from is not being allowed because it is either on your PC, on a site you have specified as allowed, or on the same server and being granted access by the same IP you have. | ||||
| ||||
| Ahh no, that's all good. I do believe the 'on the same server' may have applied, as I was using the host's forum to test... ![]() | ||||
| ||||
| Quote:
I expect that was it then. It all looks to be working just fine. | ||||
| ||||
| Kall, you've been going about this all the wrong way. You have cPanel right? Have you gone through it's features lately? If you have you will see there is a feature called Hotlink Protection. It does exactly what you are trying to accomplish here ![]() Good luck man! | ||||
| ||||
| Quote:
I know..and I enabled it, and tested it on the host's server. ![]() Or something happened that still allowed me to see the images. As they are now, some dirty runboard.com people will be getting 'DIRTY BANDWIDTH THIEF' instead of a smilie. ![]() | ||||
| ||||
| Coolness. If you're still having problems with bandwidth theft head on over to Distant-Help.com and post about it there. Someone will be able to direct you in the right direction for a script which will stop it dead in it's tracks ![]() | ||||
| ||||
| Quote:
I hadn't ever noticed this as a problem until cpanel... I mean, 21404 requests from "http://com3.runboard.com/bflaminghell.foutercircle.t591|pleasedo=followup"? Somewhat excessive, specially when almost all of the requests in the top 10 are from that site. | ||||
| ||||
| It might mean that that forum/site is very busy and several of their members use images from your site in their posts. You should put a warning somewhere on your site in big bold letters that you frown upon bandwidth theft and violators of this NZBoard law will be dealt with accordingly. | ||||
| ||||
| I have just been given the suggestion to make it link not to 'DIRTY BANDWIDTH THIEF', but some porn image on yet another site. Now there's a thought... Person posts what they think is the link to the smilie kicking the other smilie in the nads, but instead gets something far more disturbing. | ||||