GeoBlock per Resource #1614

Closed
opened 2026-04-05 19:37:35 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @Sf298 on 4/12/2025

Issue Description

Hello! I am loving the GeoBlock plugin, however there are some Resources that I do want to expose to the global community. This does not seem to be currently possible

Ideal Solution

It would be amazing if, once the GeoBlock plugin is enabled, we could have a new option in the "Match Type" dropdown in the Resource > Rules section. The new option could be called 'Countries', and accept a comma separated list of country codes.

More Realistic Solution

If it is difficult to update the UI to handle this, then we could use a custom version of the GeoBlock plugin (or create a PR to enhance GeoBlock), that lets you apply different filters based on subdomain.

Implementation Suggestion

Looking at it's code, it seems easy to modify GeoBlock to add the ability to consider subdomains (by checking the URL parameter of the http.Request, in the allowDenyIPAddress functions).
I am quite keen on finding some kind of per Resource geo-blocking solution, so let me know if you need help with the plugin and I'll try to find the time.

*Originally created by @Sf298 on 4/12/2025* ## Issue Description Hello! I am loving the GeoBlock plugin, however there are some Resources that I do want to expose to the global community. This does not seem to be currently possible ## Ideal Solution It would be amazing if, once the GeoBlock plugin is enabled, we could have a new option in the "Match Type" dropdown in the Resource > Rules section. The new option could be called 'Countries', and accept a comma separated list of country codes. ## More Realistic Solution If it is difficult to update the UI to handle this, then we could use a custom version of the GeoBlock plugin (or create a PR to enhance GeoBlock), that lets you apply different filters based on subdomain. ## Implementation Suggestion Looking at it's code, it seems easy to modify GeoBlock to add the ability to consider subdomains (by checking the URL parameter of the http.Request, in the allowDenyIPAddress functions). I am quite keen on finding some kind of per Resource geo-blocking solution, so let me know if you need help with the plugin and I'll try to find the time.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#1614