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.
Posted by Mike at 3:48 PM
Subscribe to:
Post Comments (Atom)
1 comments:
One of the more impressive blogs Ive seen. Thanks so much for keeping the internet classy for a change. You’ve got style, class, bravado. I mean it. Please keep it up because without the internet is definitely lacking in intelligence.
joomla extension
Post a Comment