Archive for January, 2009

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 [...]