Skip to content

Swag dbip: Add example for blacklisting a continent #1055

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 16, 2025

Conversation

TheMihle
Copy link

linuxserver.io


  • I have read the contributing guideline and understand that I have made the correct modifications

Description:

Adds template lines/example of blacklisting one or more continents

Benefits of this PR and context:

Easier for users to setup for people that want to blacklist a continent as a whole rather than or in addition to individual countries.

How Has This Been Tested?

Had the SWAG docker with the docker mod installed on my unraid NAS. Tested with the changes in the config files directly there with proxy for Nextcloud. Worked as I expected there.

Source / References:

@TheMihle TheMihle changed the base branch from master to swag-dbip August 14, 2025 19:58
@Roxedus
Copy link
Member

Roxedus commented Aug 14, 2025

Is there a good, documented list of the continent codes, like there are with country codes? (i realize its only 7)

@TheMihle
Copy link
Author

Is there a good, documented list of the continent codes, like there are with country codes? (i realize its only 7)

I just used this and tested it would be the same, it is for Africa and South America at least:
https://support.maxmind.com/hc/en-us/articles/4414877149467-IP-Geolocation-Data#h_01FRRJSP2B14KSWWJTXKRWZGKJ

And there is this from DBIP site:
https://db-ip.com/db/format/ip-to-country/csv.html

3 continent
Two-letter continent code [AF, AS, EU, NA, OC, SA, AN]

Could add a link, or just list them without a link as a comment?

@LinuxServer-CI
Copy link

PR build pushed to ghcr.io/linuxserver/mods:pull_request_1055

@github-project-automation github-project-automation bot moved this from PRs to PRs Approved in Issue & PR Tracker Aug 16, 2025
@Roxedus Roxedus merged commit ba39fe3 into linuxserver:swag-dbip Aug 16, 2025
3 checks passed
@LinuxServer-CI LinuxServer-CI moved this from PRs Approved to Done in Issue & PR Tracker Aug 16, 2025
@TheMihle
Copy link
Author

btw, the same thing may work in the Maxmind mod but I have not tested it so I dont feel like making a PR for that one at the moment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants