Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
htaccess clarification
One of my sites is under attack by bots.
I’m currently blocking their ips using htaccess.
The clarification: The txp install with its htacces resides in a subdirectory. As I’m never sure as to how the htaccess works do I need to add the ‘deny’ rules both in the root and the subdirectory or is it OK to just have it in the root of the site?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: htaccess clarification
AFAIU, it’s ok to just have them in the root directory, as .htaccess rules are applied to subdirectories (unless specifically overridden).
Offline
Re: htaccess clarification
Thanks Julián
Related:)
so would a txp install in a subdirectory work OK if its htaccess is in the root?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: htaccess clarification
Mmmm… not sure! I can’t think of any reason why it wouldn’t.
So, I’d say ‘yes’, but go, try it and tell us :)
In any case, why would you like to keep the TXP .htaccess outside (one level up) of the TXP folder?
I’d keep it there, where it belongs, and then also have the other .htaccess (the one blocking bot’s IPs) in the root.
Offline
Re: htaccess clarification
maniqui wrote:
I’d keep it there, where it belongs, and then also have the other .htaccess (the one blocking bot’s IPs) in the root.
That might be the simplest as I’ll be able to update the txp file whenever the devs do:)
Thanks again.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Pages: 1