Jump to content

Recommended Posts

I have a simple "contact us" form on my website, and I think it may be used to send spam. Email from my mail server (off of a shared host) is now being rejected by Craigslist, and on occasion (maybe once a month) I get a "viagra!" type of bounceback for an undeliverable message. I've always hard-coded the email address in the mail() call, but I wouldn't be surprised if I'm doing something wrong here. What can I do to audit this?

 

There are a few other contact forms on the same server for two other sites. All of the direct email forms have a hard-coded "to" parameter for mail(), and the two that send an email based on an email form value also write to the database. I checked over the database for these two, and of 120 people who have submitted the form, perhaps ten appear to be junk.

 

So, what's going on, if anything? How can I know? I get this feeling...that my domain name will be blacklisted or has been already, but I'm pretty careful when I use mail(). Of course, I'm no hacker nor a security expert.

Link to comment
https://forums.phpfreaks.com/topic/133262-are-my-contact-forms-being-used-to-spam/
Share on other sites

So is it more likely that the mail server on my shared host is being abused by a separate party? I use HostGator, and one would expect that a host of that size would by now have solved this problem for their customers, which is why I'm apprehensive to believe so.

I tried Linode, and that was a living hell. I'm a web developer, not a server administrator, and while I can set up a nice LAMP stack, I'll be damned if I can pull the same off for DNS, email, FTP, etc. Where's the (affordable) middle ground? Linode is $20-30 a month for a reasonable server, and I pay $13 a month on Hostgator for, most importantly, unlimited bandwidth. This is important because I host a government site there that has several enormous PDFs for download.

It seems kinda risky to be using a shared host for government websites, don't you think?

 

I have been with Dreamhost for 4 years now and couldn't be happier (I know a lot of people haven't been). It's only 10.95/mo and they have lots of great features...

 

Now, to get back on topic, it could be your contact forms, but it's kinda hart to tell if you don't post the code for us to see.

It sounds like it should be safe seeing as all the addresses can be monitored, but try putting a captcha in place;

 

http://www.white-hat-web-design.co.uk/articles/php-captcha.php

 

that captcha script can be foiled by any half-decent spammer

 

use recaptcha - www.recaptcha.com i think is the url

By government sites I mean that they're advertising the sale of government-owned properties (for DC firms) and licensing opportunities. Sort of a gray area, not quite the same as hosting a DOD site; I'd expect the government to provide a secure host in that case.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.