Account created on 8 December 2008, about 16 years ago
#

Merge Requests

Recent comments

🇬🇧United Kingdom code-brighton

I can confirm this patch works. I had the same issue that had me confused for days, it seemed like a random issue, but thank you for this great work, I was able to consistently recreate the issue (by filtering so I got an empty result, which then cached the view always as empty) Using the merge request patch the issue was solved. Thank you @selvira !

🇬🇧United Kingdom code-brighton

Hi great stuff,

Can someone help me with a use case where I want to whitelist this range of IPs:

59.26.62.25 > 59.56.62.128

How do i write that?

🇬🇧United Kingdom code-brighton

Allow IP ranges to be entered in the allow list e.g. 127.0.0.1>127.0.55.255

🇬🇧United Kingdom code-brighton

@alayham I understand your reasoning here, I see the other branch is a more straightforward solution, but due to my requirements that I don't want to give the wide ranging 'administer site configuration' permissions to the user role that needs to administer the allowed IPs OR even give them the administration rights to setting the "Ban URL patterns" if that became a separate permission for this module. So I will stick to this branch for my use-case for now.

🇬🇧United Kingdom code-brighton

Added patch from merge request that passed tests after fix to test!

🇬🇧United Kingdom code-brighton

@newswatch it's for the 3.x branch of this module (but patch might work on old version?) but you might find the work I've done in this issue to whitelist IPs useful? https://www.drupal.org/project/perimeter/issues/3394429 An IP Whitelist / Allowlist Active

🇬🇧United Kingdom code-brighton

I didn't want to give 'administer site configuration' permissions to the user role that needs to administer the allowed IPs list so I created a new route for just the Allowed IPs list config with a new permission 'administer perimeter defence allowed ips'
Patch created from merge request attached.

🇬🇧United Kingdom code-brighton

Created an allowed list of IPs in the config settings at /admin/config/system/perimeter. Patch (from merge request) attached.

🇬🇧United Kingdom code-brighton

I have this same issue in Drupal 9 (9.5.10)

Production build 0.71.5 2024