c# - How to block all connections from Europe on a TCPListener -
is there simple way using tcplistener in c# block incoming connections european continent? need following in order decide whether or not block connection:
- determine client's location (if in europe, proceed step 2, otherwise, bypass security check)
- read authentication token client (session id). if session id indicates customer citizen of non-european country, authorize connection. otherwise, close networkstream immediately.
you try polling using c# geoip locator , doing dnsbl list application (though assume you're doing such asking question).
Comments
Post a Comment