Our school website uses Joomla 1.5, a great free CMS platform. We recently had a student use the contact form on the site to send a fake e-mail to a teacher. To my surprise, none of the e-mail information was logged on the site. Joomla relays the mail using our exchange server, so the message tracking there showed nothing but a message sent by the web server. After some searching, I found a little change that can be made that adds the sender's IP address directly into the body of the e-mail.
At line 157 of joomla\components\com_contact\controller.php, change the subject line from
$body = $prefix."\n".$name.' <'.$email.'>'."\r\n\r\n".stripslashes($body);
to
$body = $prefix."\n".$name.' ('.getenv('REMOTE_ADDR').' - '.gethostbyaddr(getenv('REMOTE_ADDR')).')' ."\r\n\r\n".stripslashes($body);
We can then track them down if they are a user in the school.
Showing posts with label Joomla. Show all posts
Showing posts with label Joomla. Show all posts
Posted by
Mike
at
3:48 PM
Subscribe to:
Posts (Atom)
