Mortifis wrote to All <=-
I am sure there are better ways to do this, however, I threw
together a quick script that allows for Geo Blocking by Country.
For me, it has already cut down on a significant number of 'fake
login attempts'. The script can be evoked by simply calling it
from within other scripts, ie: login.js
the script can be found at
http://alleycat.synchro.net:81/dls/coob.js ... simply copy/paste
the code and save it as coob.js in /sbbs/exec/load
Mortifis wrote to All <=-
I am sure there are better ways to do this, however, I threw
together a quick script that allows for Geo Blocking by Country.
For me, it has already cut down on a significant number of 'fake
login attempts'. The script can be evoked by simply calling it
from within other scripts, ie: login.js
the script can be found at
http://alleycat.synchro.net:81/dls/coob.js ... simply copy/paste
the code and save it as coob.js in /sbbs/exec/load
Getting a 404-not found at that address...
keeps yelling about an api key
Mortifis wrote to Gamgee <=-
Mortifis wrote to All <=-
I am sure there are better ways to do this, however, I threw
together a quick script that allows for Geo Blocking by Country.
For me, it has already cut down on a significant number of 'fake
login attempts'. The script can be evoked by simply calling it
from within other scripts, ie: login.js
the script can be found at
http://alleycat.synchro.net:81/dls/coob.js ... simply copy/paste
the code and save it as coob.js in /sbbs/exec/load
Getting a 404-not found at that address...
Sorry, I had it as a zip but I extracted it, it should work now
That's geoip.js, it works without one but it says "You should get an API key from ... " follow the link in the log message ... the key is free :-)
---
¨ Synchronet ¨ AlleyCat! BBS - http://alleycat.synchro.net:81
Richard Williamson wrote to Gamgee <=-
lol got a key... still yelled at me , erased the log from the
geoip.js
Richard Williamson wrote to Gamgee <=-
love it, right when i added it started blocking china ip's
:-)That's geoip.js, it works without one but it says "You should get an API key from ... " follow the link in the log message ... the key is free
---
Synchronet AlleyCat! BBS - http://alleycat.synchro.net:81
so why does it repeat it self 3 times
I am guessing because it is inside a for loop in login.js. Try moving "load('coob.js');" in login.js to just before for(var c=0; c < options.login_prompts; c++) { ... } and see if that quiets it down ... Iwill
add a 'quit = true' to modopts.ini if you'd like.
---
¨ Synchronet ¨ AlleyCat! BBS - http://alleycat.synchro.net:81
I am guessing because it is inside a for loop in login.js. Try moving "load('coob.js');" in login.js to just before for(var c=0; c < options.login_prompts; c++) { ... } and see if that quiets it down ... I will add a 'quit = true' to modopts.ini if you'd like.
---
Synchronet AlleyCat! BBS - http://alleycat.synchro.net:81
That worked
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 83:38:32 |
Calls: | 6,658 |
Calls today: | 4 |
Files: | 12,203 |
Messages: | 5,333,527 |
Posted today: | 1 |