sitting here tailing logs from apache...
1000% success rate, if you are a bot, you don't ask for favicon.ico
Can we use favicon "port knocking?"
If you ask for / and dont ask for favicon, then yhou are a bot and passed over fail2ban
I need to make this a thing.
@kajer you can do this with mod_rewrite in apache, or otherwise its equivalent in nginx. is favicon the first thing that a regular browser asks for? or even in the top 5?
right, i'm thinking of something like:
if you request >20 things w/o one of them being favicon... straight to jail.
@kajer this would make a great fail2ban rule
@LinuxAndYarn @kajer wow you use lynx often enough this sort of setup would be a problem?
@Viss @kajer I do, a few times a week, because I use it on some servers to avoid the paywall. I also want to make sure that sites on our Network still produce good text only output for people who use a simpler browser for accessibility reasons.
I suppose a rule that made sure to exclude text-based browsers by ID would be the handy.
@LinuxAndYarn @kajer most bots are easy to spot, so this sort of exclusion is super easy
@Viss @LinuxAndYarn @kajer I use w3m every day, which would have the same problem. Mind you, I don't think many bots are faking their User-Agent as lynx - or w3m.