chrislim2888 / IP2Location-PHP-Module

This module is a PHP module that enables the user to find the country, region, city, coordinates, zip code, ISP, domain name, timezone, connection speed, IDD code, area code, weather station code, weather station name, mobile, usage types, address type, IAB category, etc that any IP address or host name originates from.
https://www.ip2location.com
MIT License
197 stars 69 forks source link

New function get_cidr($ipAddr) returns cidr sub-network for firewalls #19

Closed bazooka07 closed 5 years ago

bazooka07 commented 6 years ago

new function get_cidr($ipAddr.

For example, calling get_cidr('91.200.12.233') returns '91.200.0.0/13'. Useful to setup .htaccess file with Apache2 against spam.