can anyone help me in getting a website firewall , which will block ip's automatically when the data transfer thru port 80 [http] is more a specified limit [ for example 3 mb per day], and unblock [ reset it] after 1 month ??
You need a dedicated IP for that website or all websites in question. If you just have a shared ip, you need to create private IP's, host sites in the private IP and NAT via your single ip internally in the server. Solution is to mangle that ip using iptables, then setup a counter using iptables, and use a custom script to count/process the bandwidth used. If over your limit, block it .
This method originally is widely used to setup a linux based router/bandwidth-manager to limit bandwidth/transfer to cable/wifi clients in ISP model .. but can be used for sites too .. for any IP that requires custom bandwidth calculation.
Experienced OpenStack Admin For Hire
regular as admin0 on freenode IRC on #openstack and #openstack-ansible channels
thanks for your replies. Im using a shared server and all these modules are loaded
"Loaded Modules mod_auth_passthrough, mod_log_bytes, mod_bwlimited, mod_php4, mod_frontpage, mod_ssl, mod_setenvif, mod_so, mod_expires, mod_auth, mod_access, mod_rewrite, mod_alias, mod_userdir, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_status, mod_negotiation, mod_mime, mod_log_config, mod_env, http_core "
so is there anyway i can get my purpose done ?
i mean i wont be able to get access to httpd.conf file.