Hello, I'm wondering if it's possible to get the senders ip address through the contact form. Is there an undocumented couch tag or some handy php stuff to achieve that? In some cases I want to know the senders country of origin to avoid phishing/spam.
I found a php snippet to show the Ip address but got no idea how to implement that into the contact form.
Thanks for any idea or help
best Christoph
I found a php snippet to show the Ip address but got no idea how to implement that into the contact form.
- Code: Select all
<?php
$ip = $_SERVER["REMOTE_ADDR"];
$host = gethostbyaddr($ip);
echo "IP Adresse: $ip<br>";
echo "Hostname: $host";
?>
Thanks for any idea or help
best Christoph