Disable and enable ip adress

Any easy script to disable and enable the client IP addresses from php ?