Dear comrade,
I think you should think again about your needs for a Whois with every conection. 'Normal' private users have a IP that belongs to a service provider, an not even the information of the country where the conection comes must be true. For example, owner of the IP may be a company in Amsterdam, and the user sits in Spain! If you want to know if the conection comes from a government or security institution, donĀ“t believe that they use IP's in the gov's range!
So in every case, the information you can get will really be almost useless!