-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 Answers1

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.

user9517
  • 115,471
  • 20
  • 215
  • 297