[DONE] m_geoip_whois: displays users' countries in WHOIS

These are old archives. They are kept for historic purposes only.

Moderators: Gottem, Supporters

Post Reply
k4be
UnrealIRCd coder
Posts: 49
Joined: Sun Jan 09, 2005 12:19 pm
Location: Poland

[DONE] m_geoip_whois: displays users' countries in WHOIS

Post by k4be »

Not very elegant, but working. Appends swhois info to all users, unless they are not listed in the input data.
This module needs to be loaded on only single server on the network.
This version is not configurable. It expects three files in conf/: GeoLite2-Country-Blocks-IPv4.csv, GeoLite2-Country-Locations-en.csv, GeoLite2-Country-Blocks-IPv6.csv. These can be downloaded from here (get GeoLite2 Country in CSV format).
Download link
Any feedback would be appreciated.
Gottem
UnrealIRCd coder
Posts: 192
Joined: Fri Aug 19, 2016 5:26 pm
Location: NL

Re: [DONE] m_geoip: displays users' countries in WHOIS

Post by Gottem »

Err, could you rename your module perhaps? :D I happen to have a (paid) one with the exact same name which prevents users from certain countries connecting to your IRCd. =]
If you like my modules, pls consider donating (credit card or iDEAL, use the custom job fee option in my shop) ;];]
k4be
UnrealIRCd coder
Posts: 49
Joined: Sun Jan 09, 2005 12:19 pm
Location: Poland

Re: [DONE] m_geoip: displays users' countries in WHOIS

Post by k4be »

Changed.
Download link
Gottem
UnrealIRCd coder
Posts: 192
Joined: Fri Aug 19, 2016 5:26 pm
Location: NL

Re: [DONE] m_geoip_whois: displays users' countries in WHOIS

Post by Gottem »

Cool, thanks fam. =] Changed the topic title as well to help people searching for either module.
If you like my modules, pls consider donating (credit card or iDEAL, use the custom job fee option in my shop) ;];]
k4be
UnrealIRCd coder
Posts: 49
Joined: Sun Jan 09, 2005 12:19 pm
Location: Poland

Re: [DONE] m_geoip_whois: displays users' countries in WHOIS

Post by k4be »

Updated to match current GeoLite2 database format (and future ones too, I hope).
New download link on GitHub
rootProject
Posts: 1
Joined: Mon Dec 31, 2018 11:53 pm

Re: [DONE] m_geoip_whois: displays users' countries in WHOIS

Post by rootProject »

Is it all users or only ircops that can see this info?
k4be
UnrealIRCd coder
Posts: 49
Joined: Sun Jan 09, 2005 12:19 pm
Location: Poland

Re: [DONE] m_geoip_whois: displays users' countries in WHOIS

Post by k4be »

The SWHOIS info can be seen by anyone, only +H umode hides it, together with all SWHOIS (but i see it rather like a bug than a feature).
Since the module changed a bit since the original post, here is the current documentation.
Suratka
Posts: 72
Joined: Thu Nov 14, 2019 12:32 am
Contact:

Re: [DONE] m_geoip_whois: displays users' countries in WHOIS

Post by Suratka »

Hello to all;
I am not an expert; I would like to know, after downloading the 3 files you have named,
there is also on the other link, where there is a configuration file, I understood correctly I have to copy it and save it as a csv file.

so I have 4 files;

how do i install them?

I have to put the first three in the "conf" folder, ok

is the last file I copied and pasted and saved as a csv where to put it?

I only ask you for a small guide to install these files.
sorry if I'm ignorant.

My unrealircd is ver 4.2.4
Post Reply