you can always use a TEXT file to store the IP's and read from it, could be a much better approach cause you can always use an Admin Page to modify that File and every time you add/remove/edit something it would be easier...
the AllowedIPs.txt
file you should insert an IP per line, like:
192.168.2.1
192.168.2.2
192.168.2.3