+40 745 232 788

Online Solutions Development Blog   |  

RSS

Tag Archives: ip

posted by ,
Categories: PHP
Tags , , ,

Below you can find a simple php script that blocks ip addresses. It uses a function (called iplong) that converts the standard IPv4 address to a long int value and the main function (ban) that checks if a provided ip can be found in a list of blocked addresses. Hope you will find this useful. …