Dear Friends

I want restrict ip based browsing (not one web site). for example i want restrict http://ip-address of the website.
But i want allow all url browsing. Any firewall or any idea please reply.