Example use cases for the developer hooks

The following gist includes example use cases for the developer hooks provided by IP Location Block.

ip-location-block-maxmind-dir

The absolute path to the directory where MaxMind database is installed.

(more…)

ip-location-block-maxmind-zip-ipv4

The URI to MaxMind GeoLite Legacy database for IPv4.

(more…)

ip-location-block-maxmind-zip-ipv6

The URI to MaxMind GeoLite Legacy database for IPv6.

(more…)

ip-location-block-record-logs

Specify the condition of recording logs.

(more…)

ip-location-block-upload-capability

Overwrite the upload_files capability.

(more…)

ip-location-block-upload-forbidden

This filter hook will be applied when forbidden uploading is detected.

Warning: The filter hook ip-location-block-forbidden-upload was abolished in release 0.3.0.4 , but is replaced to ip-location-block-upload-forbidden.

(more…)

ip-location-block-xxxxx-reason

The message of the reason when the blocking occurs.

(more…)

ip-location-block-xxxxx-status

The HTTP status code when the blocking occurs.

(more…)