Skip to content

<zeronex.me />

code, eat, sleep, repeat

Pages

  • About Me
  • Bookmarks
  • Command Ref
  • Errors&Solutions
  • Portfolio

Categories

  • Amazon Web Service – AWS (2)
  • General (3)
  • Hosting (6)
  • Java (2)
  • Linux (6)
  • PHP (1)
  • Problem and solutions (14)
  • Programming (2)
  • Uncategorized (5)

Tags

firefox google java performance php zend framework

Archives

  • February 2015
  • October 2014
  • October 2012
  • August 2011
  • November 2010
  • September 2010
  • August 2010

Tag: performance

How to block/restrict max number of HTTP connection per IP address

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.

Posted on October 17, 2012October 17, 2012Categories Hosting, Linux, PHP, Problem and solutionsTags performanceLeave a comment
Proudly powered by WordPress