• Geo blocking

    From Utopian Galt@1:103/705 to All on Sunday, November 10, 2019 20:55:24
    Is there any geo blocking in Synchronet where I can block nations that have too many script kiddies?
    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From mark lewis@1:3634/12.73 to Utopian Galt on Monday, November 11, 2019 08:45:54

    On 2019 Nov 10 20:55:24, you wrote to All:

    Is there any geo blocking in Synchronet where I can block nations that have too many script kiddies?

    sbbs/text/ip.can and sbbs/text/host.can can be used...

    )\/(ark

    Once men turned their thinking over to machines in the hope that this would set
    them free. But that only permitted other men with machines to enslave them.
    ... Modern people have put aside superstition and acquired psychiatry.
    ---
    * Origin: (1:3634/12.73)
  • From Mortifis@1:103/705 to Utopian Galt on Tuesday, November 12, 2019 08:58:12
    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
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Mortifis@1:103/705 to Utopian Galt on Thursday, November 14, 2019 13:29:01
    Is there any geo blocking in Synchronet where I can block nations that have too many script kiddies?

    I threw together a script for ya, coob.js (country of origin blocking) if you like to use it, let me know, I will send it to you

    ---
    þ Synchronet þ AlleyCat! BBS - http://alleycat.synchro.net:81
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)