Skip to content

Releases: PascalMinder/geoblock

New configuration options

07 Apr 19:39
Compare
Choose a tag to compare
  • Adds a new option, to ignore any API timeout error and still allow the request
  • Adds the option to configure the name of an HTTP header field to get the geolocation of the request from.
  • Add the option to specify a custom HTTP code for a denied request.

Add silent option

05 Nov 09:00
Compare
Choose a tag to compare

Adds the silentStartUp option, which, if enabled, does not show any configuration output at start up.

Add `addCountryHeader` option to add HTTP `X-IPCountry` request header

13 Jun 13:33
Compare
Choose a tag to compare

Add a new option addCountryHeader, which allows adding the HTTP X-IPCountry request header to any incoming request.

Thanks to rjmidau

Add support to define a list of whitelisted IP addresses

21 Jan 14:04
Compare
Choose a tag to compare

Adds a new configuration option, which allows specifying allowed IP addresses or IP address blocks

Switch between white and black list

29 Dec 14:22
c95af23
Compare
Choose a tag to compare

Thanks to @tmeckel

Allows using the list of countries as a white or black list.

Fixed plugin logging

19 Jul 19:23
Compare
Choose a tag to compare

Creates logs like:

INFO: GeoBlock: 2022/07/19 15:13:59 allow local IPs: true
INFO: GeoBlock: 2022/07/19 15:13:59 log local requests: false
INFO: GeoBlock: 2022/07/19 15:13:59 log allowed requests: true
INFO: GeoBlock: 2022/07/19 15:13:59 log api requests: false
INFO: GeoBlock: 2022/07/19 15:13:59 API uri: https://get.geojs.io/v1/ip/country/{ip}
INFO: GeoBlock: 2022/07/19 15:13:59 API timeout: 750
INFO: GeoBlock: 2022/07/19 15:13:59 cache size: 15
INFO: GeoBlock: 2022/07/19 15:13:59 force monthly update: true
INFO: GeoBlock: 2022/07/19 15:13:59 allow unknown countries: false
INFO: GeoBlock: 2022/07/19 15:13:59 unknown country api response: nil
INFO: GeoBlock: 2022/07/19 15:13:59 allowed countries: [GB IS]

Configurable API timeout

07 Apr 16:48
Compare
Choose a tag to compare

Adds an optional API timeout configuration

Fix .traefik.yml

12 Mar 08:53
715553f
Compare
Choose a tag to compare

Fixes spelling mistake in .traefik.yml.

Use camel case in configuration

12 Mar 08:50
Compare
Choose a tag to compare

This release changes the configuration file variables. It now uses camel case for easier reading.
Additionally, it prevents logging reading and writing to the database.

Release v0.1.7

30 Dec 10:13
Compare
Choose a tag to compare
  • Added LRU cache for IP addresses
  • Added an "unknown country" IP address option