Provide option for specific URIs to remain exempt/unrestriced

Created on 18 May 2023, over 1 year ago
Updated 30 June 2023, over 1 year ago

By submitting patches for review, you agree to the Developer Certificate of Origin. A copy of this agreement can be found in the project root, named CONTRIBUTING.txt.

Problem/Motivation

We have implemented geoblock on our website. It is working well. However, we have integrated with a 3rd party service and we need to be able to receive calls to a specific URI on our site (a webhook) to take action on events. This call from the 3rd party service comes from a region which we otherwise want to block (it is outside of our country, and all of our users are within our country).

For this reason, we would like the ability to exempt specific URIs on our site.

Proposed resolution

We have implemented the attached patch. It adds a new field to the configuration area where exempt URIs can be entered (one per line). It also modifies isRequestApplicable() to check whether the current URI is one that should be exempt.

Remaining tasks

Please review and merge. :)

✨ Feature request
Status

Needs review

Version

1.1

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada jdhildeb

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024