Problem/Motivation

I want to include Bing, Google and Facebook bots in my autoban whitelist so I never accidentally ban them. I take the IP addresses I need from https://www.ip2location.com/ (as recommended on the project page) and notice it's over 20,000 lines of CIDR notation. This seems too much to store in the autoban_whitelist variable because variables are loaded into memory on every page request. I've turned off "Forced mode" so I know that the whitelist variables will never be used on ordinary page requests.

Proposed resolution

Add the option to accept an IP whitelist from file.

Issue fork autoban-3192002

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jamsilver created an issue. See original summary.

jamsilver’s picture

Status: Active » Needs review

OK - I've had a go at my first issue fork / merge request to add my proposed solution. Let me know if there's something I've not got quite right!

goodboy’s picture

Status: Needs review » Fixed

Thank you, I've merged.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.