Archive for the 'PHP' Category

January 2, 2009

PHP to redirect IP addresses to different page

If you would like to redirect browsers based on their IP the following method can be used to handle multiple IP’s.  You can choose to redirect entire networks or a single ip.

<?php
//array of ip’s you wish to block. Note that you can block an
//entire class by replacing it with 0, so to block [...]

August 25, 2008

Blocking by country and high connection counts hosting servers

Most of our hosting servers run Centos Linux but we have Windows servers too and a problem common to both is the occasional high volume of traffic generated by non organic growth.  I don’t mean that someones blog hits the front page of digg, rather a malicious or DDOS attack against a website.  On shared [...]