The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download | Blog
Personal tools

Modules/geoip

From Inspire IRCd (InspIRCd)

Jump to: navigation, search

Description

m_geoip provides the ability to ban users by their country code.

Configuration Tags

<geoip banunknown="yes">
<geoban country="KR" reason="KOREA IS KEKEKEKE">

Where the attributes for the geoban tab are as follows:

  • country - The ISO code for the country (Complete list Here)
  • reason - The reason for the ban

The <geoip:banunknown> value, if set to true, yes, or 1 will cause the module to ban unknown IPs. Unknown IPs usually include LAN addresses and localhost ranges. You cannot use country code ZZ to imply an unknown country.

Examples

<geoban country="KR" reason="KOREA IS KEKEKEKE">
<geoban country="TR" reason="TURK EYE">
<geoban country="UK" reason="No limeys!">
<geoban country="US" reason="All Americans are Fat!">

Additional Modes

None

Additional Commands

None

Special Notes

Extra ModuleThis module is an 'extra' module. This means that by default it is not compiled when you type make to build your IRCd. To enable this module follow these steps.

Dependencies

GeoIP - Geographical IP lookup database