Preferisco PHP, grazie =)
Quindi dovrei usare qualcosa tipo $_SERVER['REMOTE_ADDR']?
E devo per forza avere un database, giusto?