allow,deny methods
Brought to you by:
mahype
I need to dynamically block ip addresses, can the class include two more methods to manage ip access and deny?
I want to be able to manipulate the list of blocked and denied ip addresses dynamically. The ideal implementation should consists of the following methods:
return_type function name
string array() GetAllowedIP()
string array() GetDeniedIP()
bool AddAllowedIP(string ip)
bool DelAllowedIP(string ip)
bool AddDeniedIP(string ip)
bool DelDeniedIP(string ip)
bool GetIPStatus(string ip)
Regards.