ID:2834246
 
(See the best response by F0lak.)
Is there a way to filter connections to disallow requests coming from specific countries? or only allow some countries?
Best response
You'll need to write a script to check their IP and run it against a home brewed database or list to check their locale and decide what you want to do from there.

You can see a list of IP ranges in different countries here.

Considering the widespread use of VPNs these days, this might not give you the results you're hoping for.
You can use this site to get all the information you need about player ip
VPN detection is possible, but highly likely to false positive, or just cost money
Thank you all for the help, How would i make a script that runs when someone tries to join in the server? Is there a way to watch the byond port or something?
New players connect to the server and call client/New()