phphilter
This class can allow or deny access to a specific port via *nix 'iptables' command. I developed this class because i have an application running under tomcat on port 9521, and there is no way for me to use an apache 'htaccess' method to manage accesses to this port. With this script i have created a web page redirecting browser requests to tomcat server. For all granted access, will be inserted in my firewall list a rule with port 9521 access. User can be enabled with user/password or by ip.