-2

I want to ban bad agents. I have tried many way including this one!

But it doesn't work. If I create a perl file: check this!

I think this is because of Order deny,allow syntax as it is for apache2.2! I want to create a file badagents.conf where I will put all the bad agents (like done in link 1) and then create a common banbadagents.conf that I just include in my vhost because I have like 9 vhosts. And changing something in all of them is really problematic.

How to globally ban the agents listed in badagents.conf?

1

If you think this

I think this is because of Order deny,allow syntax as it is for apache2.2!

then the obvious thing to try is converting it to the relevant 2.4 access control syntax.

3
  • That was the first obvious thing I already tried but I can not find a coversion for deny from env=BadAgent! Oct 31 '16 at 10:29
  • You need to tell us what you've done so we don't waste our time then.
    – user9517
    Oct 31 '16 at 12:10
  • Sorry for that. I tried to do so by providing the link. I have done exactly as mentioned in the link and it did not worked! Oct 31 '16 at 14:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.