The IP address of the server for the current requester.
The filter hook “ip-location-block-ip-addr” assigns the IP address from which the current request comes. This plugin validate it by means of the country code and black / white list of extra IPs.
The following code snippet in your theme’s
functions.php can replace the IP address according to your browser’s user agent string. It’s useful to test this plugin’s functionality using browser’s addon which can be change the user agent string.
NOTE: It's also useful using VPN switcher addon to fake your IP address.
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.
Leave a Reply