backdrop-contrib / ip_blocking

Enables blocking of IP addresses.
GNU General Public License v2.0
0 stars 2 forks source link

a way to avoid blocking by role? or whitelist? #9

Closed robertgarrigos closed 3 years ago

robertgarrigos commented 3 years ago

I'm having problems with this module when it blocks me when doing admin tasks. Wouldn't it be nice to have a way to avoid a blocking by role? Or just a whitelist of ips?

findlabnet commented 3 years ago

Thanks for your input, can you describe the scenario in which this problem(s) occurred? By design you cannot block your own IP.

robertgarrigos commented 3 years ago

It's happening, sometimes, when uploading an image through a standard image field. The ajax call is triggering the block. I have to go to the database and delete the entry of my ip.

findlabnet commented 3 years ago

Do you have the "Antiscan" module installed? If so, which of "Restricted path patterns" do you use?

robertgarrigos commented 3 years ago

The default ones: user/ and admin/. I see, I could add the file/ajax/ one, isn't?

findlabnet commented 3 years ago

If I understand correctly, you mean "Not blockable path patterns" in the "Antiscan" module. You have the "Test mode" checkbox below in the module settings form, which gives you the ability to test any path pattern you want without self-blocking. Anyway, in the next release of "Antiscan" module (few more days) I'll add check for current logged in user IP for this module too. Let me know if you need any help.

robertgarrigos commented 3 years ago

thanks @findlabnet

robertgarrigos commented 3 years ago

However, I added the fiel/ajax/ path to that antiscan setting, and it's still blocking me, not always, though.

findlabnet commented 3 years ago

If you try file/* as temporary solution? In new version this will be fixed.

findlabnet commented 3 years ago

Version 1.x-1.0.5 of Antiscan module are available for now with notable additions. Thanks again @robertgarrigos for testing, this issue can be closed. If you have any further questions, please use the module issue queue at https://github.com/backdrop-contrib/antiscan/issues.

robertgarrigos commented 3 years ago

Thanks @findlabnet