The directory where the backup files of validation logs are saved.
The filter hook “ip-location-block-backup-dir” assigns the absolute path to the directory where the backup files of validation logs are saved.
The maximum entries of each validation log for the target (e.g.
public) is limited to 100. So if you want to save backups, use this hook.
(string) Absolute path to the directory. Default value is
The following code snippet in your theme’s
functions.php selectively saves the CSV formatted text files which will be named as
WARNING: The '
/absolute/path/to/' should be outside of your public area.
NOTE: When you select
"mu-plugins" (ip-location-block-mu.php)as Validation timing , you should put your code snippet into
drop-in.phpin Geolocation API folder instead of
functions.php. See My custom functions in “functions.php” doesn’t work. in FAQ for detail.
The CSV format is as follows:
|time||requested time in seconds|
|ip address||ip address of requester|
|target||requested target e.g.
|authority||logged in user or not|
|result||validation result e.g.
|method||HTTP method and port e.g. GET, POST|
|UA||user agent strings|
Leave a Reply