Override Global Rule
4 posts
• Page 1 of 1
Override Global Rule
I have a global rule to block a particular bot that causes problems on 99% of my websites. However, there is a single client, who in-turn has a client that uses this bot internally and they need to have access to their website. Is there a rule that I can put within this one site's .htaccess file to allow requests from this bot, but continue to block it for everyone else?
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Override Global Rule
Hello,
Create a section for this particular domain in http.conf using this directive - VirtualHost and duplicate your global rules there, excluding the block. In this case your domain will apply all rules minus one.
Regards
Andrew
Create a section for this particular domain in http.conf using this directive - VirtualHost and duplicate your global rules there, excluding the block. In this case your domain will apply all rules minus one.
Regards
Andrew
Re: Override Global Rule
Andrew,
I just tried that and the global rule is still being applied. Just to make sure that my virtualhost block was being picked up, I temporarily moved the blocking rule into my virtualhost block and it did block my request properly. However, when I have the blocking rule defined outside of the virtualhost block and not inside, the blocking rule is still blocking requests to that host when I access it.
I just tried that and the global rule is still being applied. Just to make sure that my virtualhost block was being picked up, I temporarily moved the blocking rule into my virtualhost block and it did block my request properly. However, when I have the blocking rule defined outside of the virtualhost block and not inside, the blocking rule is still blocking requests to that host when I access it.
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Override Global Rule
Maybe there's smth with www. or non-www... strange. Or you may try to move the virtualHost section on top of your config file...
Please, provide rewrite.log for the testing request. Logging issues described in FAQ
Regards
Andrew
Please, provide rewrite.log for the testing request. Logging issues described in FAQ
Regards
Andrew
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests