About This File
Simple solution to check incoming connections from unwanted countries.
I. Install geoip-Lite: npm i geoip-lite
II. Edit country_ban list with the specified country codes https://dev.maxmind.com/geoip/legacy/codes/iso3166/
III. Save and put this script to "server-files\packages" and add require('./countryBan'); in index.js

Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now