Releases: PascalMinder/geoblock
Releases · PascalMinder/geoblock
v0.3.3
What's Changed
- Trim spaces in forwarded header addresses by @Dutchy- in #83
- New features and bug fixes by @PascalMinder in #82
New Contributors
Full Changelog: v0.3.2...v0.3.3
v0.3.2
Fixes the issue that the blocking did not work.
Redirect on block
It is now possible to redirect a client to a defined URL instead of blocking it.
v0.3.0
What's Changed
- Update readme.md by @smagicld in #56
- Add new features (custom logfile / X-ForwardedFor header) by @PascalMinder in #64
New Contributors
Full Changelog: v0.2.8...v0.3.0
New configuration options
- 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
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
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
Adds a new configuration option, which allows specifying allowed IP addresses or IP address blocks
Switch between white and black list
Thanks to @tmeckel
Allows using the list of countries as a white or black list.
Fixed plugin logging
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]