Menu

#1 allow,deny methods

open
nobody
None
5
2008-04-22
2008-04-22
Anonymous
No

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.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.