.htaccess modification request

xyretp21

Joined: 2004-11-07
Posts: 8
Posted: Wed, 2005-06-01 12:24

Would you consider adding a standard anti-hotlinking section to the .htaccess file, suitably commented so people can either add it or not ...

regards,
Joe

 
Gaile

Joined: 2002-07-20
Posts: 1301
Posted: Wed, 2005-06-01 17:14

The biggest problem I see with doing that is that all server configurations are a little different, and so what works for you might not work for someone else and vice versa. We'd have to have a lot of different configuration options listed and that would probably make it more confusing than it is.

Your best bet would be to ask the support staff for your website (or check their FAQ, it's often in there somewhere). Another option would be to use google (htaccess prevents hotlinking) and you'll get enough links to educate yourself and find what works best for your situation.

Gaile

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Wed, 2005-06-01 17:18

As PixelPoet said, there are reasons that we explicitly don't do this.

The main reason is that many servers don't allow users to use .htaccess at all, and adding one causes the server to return Error 500 for all requests, valid or not.