Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Attachment | Size |
---|---|
iplocation.zip | 889.78 KB |
Project information
- Maintenance fixes only
Considered feature-complete by its maintainers. - Module categories: Developer Tools, Site Structure, Security
- Created by bod.dev on , updated