From:
mortifis@ALLEYCAT.remove-p6l-this
To: Utopian Galt
Is there any geo blocking in Synchronet where I can block nations that have too many script kiddies?
geoip.js can be used for that purpose. Depending on how you wish to implement it, using ip.can or ip-silent.can is the easiest way.
as an example you could add this to the beginning of login.js:
between bbs.nodesync();
// block all Canadians
load('geoip.js');
var geoip = get_geoip(client.ip_address, true);
if(geoip.countryName.toUpperCase() === 'CANADA') {
console.writeln('Country Blocked ');
bbs.hangup();
exit();
}
and ... // Display login prompt
---
þ Synchronet þ AlleyCat! BBS -
http://alleycat.synchro.net:81
--- Synchronet 3.17c-Win32 NewsLink 1.111
* Vertrauen - Riverside County, California -
telnet://vert.synchro.net
--- SoupGate-Win32 v1.05
* Origin: www.darkrealms.ca (1:229/2)