- Define a country's name by ip when they visited your web.
- Allow some country to access your website
- Restrict spam
- You install module "iplocation"
- Setting countries access web by link : admin/config/development/iplocation/setting
- iplocation_get_country_by_ip($ip = 0) : get country's name by visitor's IP
Return array with structure array('VN','VNM','VIET NAM'); if this county is VIET NAM
- iplocation_alow($ip = 0) : Define ip has permission to allow access web
Return : boolean