kopia lustrzana https://github.com/harvard-lil/archive.social
1.7 KiB
1.7 KiB
IPBlockList
thread-keeper
Author: The Harvard Library Innovation Lab
License: MIT
IPBlockList.IPBlockList
Utility class for handling the app's IP block list. [!] For alpha launch only.
Kind: static class of IPBlockList
new exports.IPBlockList()
On init:
- Create access keys file if it doesn't exist
- Load IPS from file into
this.#ips
.
ipBlockList.filepath : string
Complete path to ip-block-list.json
.
Kind: instance property of IPBlockList
ipBlockList.check(ip)
Checks that a IP is on the blocklist and (still) blocked.
Kind: instance method of IPBlockList
Param | Type |
---|---|
ip | string |