if someone was to ping my computer, how could i get it to notify me of thier attempts to ping and tell me their ip address?

i need this because i want to make a program that will protect against nuking, spoofing, etc.

and is there a way of stopping the packet from getting returned back to the computer that sent it?


thanks