Log in

View Full Version : htaccess problem


kalle7
2005-08-30, 05:21 PM
Hi,
I am having a problem regarding my htaccess file on one of my domains. I have a bunch of hotlinkers and I mean a bunch. I have used the "Block hitbots with .htaccess" tool that is located here: http://www.htaccesstools.com/block-hitbots/

When I type in all the domains that is hotlinking to my things I get a list of about 180 domains and I am redirecting that traffic to another domain of mine.

My problem is that when I put this htaccess file up on the server everything on the server loads slowly. I have talked with the support department at my hosting company and they have told me that it could be the amount of redirecting traffic that causes the slowness in the system. The second I take away the htaccess file it is all good again.

Have anyone another solution for me about this problem? I would like to keep on redirecting the hotlinking traffic |clown|

Thanks!

urb
2005-08-30, 05:34 PM
If you are re-directing to the same domain that the .htaccess is on then it's looping, which will cause server strain.

But 180 domains is 180 things to check for the server before it serves a page. :(

So about half way down this page
http://www.cleos-porn-links.com/adult-links/webmaster-help.php
there is a more efficient way of blocking everything except the domain you intended the images to be served from.

Tommy
2005-08-30, 05:43 PM
that happened to me a long time ago

you cant have a lot of domains in those hta files

the server has to stop and check each time something is requested

kalle7
2005-08-30, 06:30 PM
Thanks Urb and Tommy |thumb

I guess I will have to block the domains that is hotlinking. Better to save on the bandwith as I guess the traffic I am getting from it is not of the best quality.

juggernaut
2005-08-30, 10:59 PM
Post who they are so everyone here can at least keep an eye out.

Halfdeck
2005-08-30, 11:40 PM
If you are re-directing to the same domain that the .htaccess is on then it's looping, which will cause server strain.

But 180 domains is 180 things to check for the server before it serves a page. :(

So about half way down this page
http://www.cleos-porn-links.com/adult-links/webmaster-help.php
there is a more efficient way of blocking everything except the domain you intended the images to be served from.

You'll have to mod Cleo's .htaccess code I believe if you want images indexed by Google.

juggernaut
2005-08-30, 11:47 PM
Nice tool

http://www.bitesizeinc.net/demo.htaccesser.html

Fonz
2005-08-31, 05:15 AM
Nice tool

http://www.bitesizeinc.net/demo.htaccesser.html
Nice tool indeed, it looks even cooler if you download the code and put it on one of your own domains like http://www.porndiner.com/htaccess/ :)

eskimoen
2005-08-31, 06:01 AM
Hi,
I am having a problem regarding my htaccess file on one of my domains. I have a bunch of hotlinkers and I mean a bunch. I have used the "Block hitbots with .htaccess" tool that is located here: http://www.htaccesstools.com/block-hitbots/

When I type in all the domains that is hotlinking to my things I get a list of about 180 domains and I am redirecting that traffic to another domain of mine.

My problem is that when I put this htaccess file up on the server everything on the server loads slowly. I have talked with the support department at my hosting company and they have told me that it could be the amount of redirecting traffic that causes the slowness in the system. The second I take away the htaccess file it is all good again.

Have anyone another solution for me about this problem? I would like to keep on redirecting the hotlinking traffic |clown|

Thanks!

If you want to stop hotlinking you should use http://www.htaccesstools.com/hotlink-protection/

With this tool you can specify which domains to ALLOW hotlinking from. Its a whitelist approach and is often much better than creating a blacklist.

wolfie
2005-08-31, 11:26 AM
If you want to stop hotlinking you should use http://www.htaccesstools.com/hotlink-protection/

With this tool you can specify which domains to ALLOW hotlinking from. Its a whitelist approach and is often much better than creating a blacklist.
I agree with Eskimoen.
Blacklist can become a very big list and you need to update it when more hotlinkers come.