Logging IP Addresses


#1

Is it possible to log the IP address of someone coming to my site should I ever need to ban them?


#2

If you have a PHP based site you can use $_SERVER[‘remote_addr’] to get the person’s ip.