Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Blocking subdomains

Status
Not open for further replies.

Borvik

Programmer
Jan 2, 2002
1,392
US
We are getting a ton of junk being sent to subdomain addresses. We don't accept any email on any subdomains, and I'm trying to figure out how to block them.

So far I've got the idea to block it using Header checks (which we are already using to block file extensions). I don't know if this is the best option, and even if it is a good option I don't know if I have the regex I've built for it correct (so I've left it out so I don't screw anything up).

Here's what I've got for it:

/^To:.*@.*\.domain\.com/ DISCARD

Would that work for my purposes?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top