PascalMinder / geoblock

Traefik middleware plugin - Deny requests based on country of origin
98 stars 10 forks source link

Random incorrect detection #59

Open Aetherinox opened 2 weeks ago

Aetherinox commented 2 weeks ago

I installed this, and it works great 96% of the time.

What happens is that when I'm moving from page to page, all is well. I can see in the logs that it's detecting the correct IP, and allows me to work.

I have sessions set to about every 2 hours, so once every 2 hours I must sign back in, but at the moment that I sign in, instead of taking me back to the internal pages, it throws a 403

Access to nextcloud.domain.com was denied
You don't have authorization to view this page.
HTTP ERROR 403

If I simply click refresh on the page, it lets me in. Seems to happen the most right after a sign-in, and then all the pages after that work just fine.

Any idea on what may be causing such issue? Also, I am using Cloudflare, with the setting:

ipGeolocationHttpHeaderField: "Cf-Ipcountry"
PascalMinder commented 1 week ago

Do you have any additional infos? E.g. in the logs, there should be the reason the connection was blocked.