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 ... I will 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: | Winzlo |
|---|---|
| Location: | Minnesota, USA |
| Users: | 11 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 495941:10:44 |
| Calls: | 82 |
| Files: | 1,070 |
| D/L today: |
27 files (11,920K bytes) |
| Messages: | 286,980 |