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:

  1. determine client's location (if in europe, proceed step 2, otherwise, bypass security check)
  2. 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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -