Experimental project

This is a sandbox project, which contains experimental code for developer use only.

Feature :
- Define a country's name by ip when they visited your web.
- Allow some country to access your website
- Restrict spam
Guide :
- You install module "iplocation"
- Setting countries access web by link : admin/config/development/iplocation/setting
API :
- 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

AttachmentSize
iplocation.zip889.78 KB

Project information