Repository navigation
Fix. Anti Flood. Passed cookie fixed. - #910
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #910 +/- ##
============================================
+ Coverage 33.39% 33.69% +0.30%
- Complexity 6983 6991 +8
============================================
Files 297 297
Lines 27314 27311 -3
============================================
+ Hits 9121 9203 +82
+ Misses 18193 18108 -85 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Fallback token validation, PHP compatibility, and database-load issues remain unresolved.
3 open issues
1 file not reviewed
tests/ApbctWP/Firewall/TestAntiFlood.php: Excluded by your content exclusion settings
What changed in this PR
This PR replaces reusable AntiFlood pass cookies with short-lived, single-use tokens.
Changes:
- Adds IP-bound token storage and atomic consumption.
- Logs passed requests in the activity counter.
- Reduces the browser cookie lifetime to one minute.
| File | Description |
|---|---|
| lib/Cleantalk/ApbctWP/Firewall/die_page_antiflood.html | Shortens pass-cookie expiration. |
| lib/Cleantalk/ApbctWP/Firewall/AntiFlood.php | Implements token issuance, consumption, and pass accounting. |
Review effort: Balanced
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The security-sensitive token lifecycle needs human validation because the changed AntiFlood tests were unavailable for review.
No open issues 🎉
3 resolved since last review
1 file not reviewed
tests/ApbctWP/Firewall/TestAntiFlood.php: Excluded by your content exclusion settings
Review effort: Balanced
AntonV1211
approved these changes
Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

https://app.doboard.com/1/task/58996