Is there a way to stop a WP hacking bot with null user-agent with fail2ban? #676
Unanswered
chall3ng3r
asked this question in
Q&A
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
Fail2ban is already installed. I hope there's some easy way I can create a rule for all my WP sites to ban the bot IP which is hitting random pages like hunting for old plugins or hacked files.
For now I've created a rule in vhost to send 403 to any request which comes with null user-agent, it works.
It'd be great if fail2ban can pick up the 403 and 503 codes and ban those IPs which continuously hit all my WP websites. Maybe a feature in CP UI to have something for this?
Beta Was this translation helpful? Give feedback.
All reactions