Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Issue:
When a grey listed user visits /httpbl/whitelist and successfully gets themselves white listed their status is not updated in the httpbl table.
Expectation:
Upon successfully completing /httpbl/whitelist, the user’s IP address should have their status changed from ‘2’ to ‘0’ in the httpbl table.
# # #
Notes so I don’t have to re-look up the codes...:
define('HTTPBL_LIST_SAFE', 0); // Not listed (or very low threat)
define('HTTPBL_LIST_GREY', 2); // Greylisted: session whitelist request permitted
define('HTTPBL_LIST_BLACK', 1); // Blacklisted: all requests blocked.
Comments
Comment #2
bryrock CreditAttribution: bryrock as a volunteer commentedYour expectation conflicts with the module's design.
As designed, when a grey-listed user successfully passes a challenge, only their current session is white-listed. The table is not updated.
See the code. The session is checked for white-listed before there are any further checks on the IP.
...