I have written a simple PHP file to do that for me and I run it every 1 minute using Cron-Job.
The script needs to run as PHP-CLI (cron or command prompt) as it runs system commands and would be blocked if run as Apache script.
Here is the code.
I have written a simple PHP file to do that for me and I run it every 1 minute using Cron-Job.
The script needs to run as PHP-CLI (cron or command prompt) as it runs system commands and would be blocked if run as Apache script.
Here is the code.
On Ubuntu server you can check connections to your server using command:
netstat -na
to check number of http connections per IP address use
netstat -anp | grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n