Skip to content

fix: return 403 for Honeypot bot detection - #10490

Open
michalsn wants to merge 1 commit into
codeigniter4:developfrom
michalsn:fix/honeypot-http-status
Open

fix: return 403 for Honeypot bot detection#10490
michalsn wants to merge 1 commit into
codeigniter4:developfrom
michalsn:fix/honeypot-http-status

Conversation

@michalsn

Copy link
Copy Markdown
Member

Description
This PR fixes a bug where Honeypot bot detection caused an HTTP 500 response instead of 403 Forbidden.

HoneypotException now implements HTTPExceptionInterface, allowing the exception handler to use its exception code as the HTTP status code.

Fixes #10489

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value (without duplication)
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@michalsn michalsn added the bug Verified issues on the current code behavior or pull requests that will fix them label Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Verified issues on the current code behavior or pull requests that will fix them

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: HoneyPotException is Critical Error with HTTP Status Code 500

2 participants