block specified ip address
am doing one project on that i want to block users by using there ip address plz anybody send sample code or tell any logic for this .plz reply soon
Last edited by kavya_dhivya; 04-16-2005 at 07:51 AM.
You need to use the getInetAddress of the Socket class, all you need then to do
is to close that socket if it is one of the addresses that you wish to block.
This will disconnect them.
Hope this helps
Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, and if they get mad, you are a mile away and you have their shoes ;-)
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center