Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filter.d/squid.conf: Improve existing failregexes against bot crawlers #2273

Open
wants to merge 1 commit into
base: 0.11
Choose a base branch
from

Conversation

frizz925
Copy link

  • improve existing failregexes
  • recognize failures from bot crawlers (eg. HTTP error code 400)

Before submitting your PR, please review the following checklist:

  • CHOOSE CORRECT BRANCH: if filing a bugfix/enhancement
    against 0.9.x series, choose master branch
  • CONSIDER adding a unit test if your PR resolves an issue
  • LIST ISSUES this PR resolves
  • MAKE SURE this PR doesn't break existing tests
  • KEEP PR small so it could be easily reviewed.
  • AVOID making unnecessary stylistic changes in unrelated code
  • ACCOMPANY each new failregex for filter X with sample log lines
    within fail2ban/tests/files/logs/X file

Current filter for Squid Proxy does not detect failures from bots trying to crawl on the proxy itself. This mostly happens if the proxy is set to listen on ports normally used for web servers (eg: port 80 and 443).

- recognizes failures from bot crawlers (eg. HTTP error code 400)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant