• Welcome to Valhalla Legends Archive.
 

Limited Connections based on IP

Started by saintage, April 27, 2003, 06:57 PM

Previous topic - Next topic

saintage

Hello, i was wondering if anyone knew how to limit a certain amount of connections per ip in c++ to a certain program?

iago

Just check their ip against a list of ips when it tries to connect, and if it matches to a certain number, deny it, otherwise increment the count for that ip and move on.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*