public function IpBanSetBanInterface::iPBanSetValue in IP Ban 8
Set the user's ban value based on their country or individual IP address.
Load the user's country code based on their IP address, then check if that country is set to complete ban, read-only, or has no access restrictions. We then do the same for any additional read-only or complete ban IP addresses added. If the user matched a country or an IP address entered, then they are shown a message and/or redirected based on complete ban or read-only.
1 method overrides IpBanSetBanInterface::iPBanSetValue()
- IpBanSetBanManager::iPBanSetValue in src/
IpBanSetBanManager.php - Set the user's ban value based on their country or individual IP address.
File
- src/
IpBanSetBanInterface.php, line 22 - Contains \Drupal\ip_ban\IpBanSetBanInterface.
Class
Namespace
Drupal\ip_banCode
public function iPBanSetValue();