Hide directory emails from spammers: Strategies and options

Email addresses in public constituent directories are vulnerable to harvesting by spam bots. This article covers three protective strategies: placing the directory behind a password-protected portal, displaying email addresses as icons instead of text, and using secondary forwarding email addresses.

đź’ˇQuick answers

  • What is the most effective way to protect directory emails from spammers? Place the email directory behind a password-protected portal so only authenticated users can see it.
  • How do you display email addresses as icons instead of text? In the Constituent element settings under Constituent Details or Pop-Up Details, find the Email(s) option and select "Display email address as icon."
  • Does displaying emails as icons fully prevent harvesting? No; clicking the icon still exposes the address in the email window's To field, and some bots can find mailto links in page source. It acts as a deterrent, not a complete block.
  • What is the forwarding email address strategy? Set up a secondary address (e.g., headofschool@yourschool.edu) that forwards to the staff member's real inbox; display only the secondary address publicly so you can filter what gets forwarded.
  • How are messages sent through a Contact form marked as unverified? Because anyone can submit the public Contact form, Finalsite cannot confirm the sender's identity. Each message arrives with a [Website contact] subject prefix and a banner at the top of the email noting that the sender is not verified.

Mask email addresses on your Finalsite website from spam bots and email harvesters, including three preventative strategies: placing your email directory behind a password-protected portal, displaying email addresses as text, icons, or contact forms, and setting up secondary forwarding addresses for public-facing pages.

In this article


In the same way that Google and other search engines crawl your web pages with bots that make your content searchable, spammers have bots that crawl your site looking for email addresses to take advantage of. In this article, we will show you some preventative alternatives.

Create a password-protected portal

The best way to help prevent this from happening to your constituents' emails is to make sure your email directory is situated behind a password-protected portal.

Display email address as text, icon, or contact form

Another way to make it harder for email harvesters to find email addresses is to display email addresses in a more hidden way rather than putting the full address directly on the page.

In the Composer Constituent Element, whether in the Constituent Details or Pop-Up Details section of the element settings, there is an option alongside the email display option to Display email address as Text, Icon, or Contact Form. 

Display email address as Text 

The constituent's full email address appears on the page as a clickable link. Visitors can click it to open a new email or copy the address. Because the address is visible on the page and in the page source, this option offers no protection from spam bots and email harvesters. 

Display email address as envelope Icon 

The email address is replaced with an envelope icon. When a visitor clicks the icon, their email app opens with the constituent's address already in the "To" field. This hides the address from people reading the page and makes it harder for basic bots to find. 

Important Note

The icon hides the address on the page but does not permanently mask it. If someone clicks the icon to bring up the email window, the address is available in the "To" field, where it can still be copied. Other types of email harvesters search the page source and can find "mailto" links as well as text addresses. This is, however, an extra step that acts as a deterrent by making it more difficult for bots to obtain the email addresses in bulk. To best hide email addresses from spammers, use the Display email address as a Contact Form option.

Display email address as a Contact Form

The constituent's email address does not appear on the page. Instead, a Contact link takes its place. When a visitor clicks it, a form opens where they enter their name, email address, and message. Finalsite delivers the message to the constituent's primary email address in Constituent Manager, so the address is never shown to the visitor. This is the strongest of the three display options. 

Constituent element showing a Contact link in place of an email address

Messages sent through a Contact form arrive with the subject prefix [Website contact] and a banner explaining that the sender's identity is not verified. This helps staff spot and safely handle suspicious requests, such as those asking for gift cards, payments, payroll changes, or a text to an unfamiliar number.

Contact form email with the [Website contact] subject prefix and the unverified sender banner

For a deeper dive into the process for displaying email addresses as Contact Forms, check out the article, "Protect email addresses in your directory with a contact form."

Set up secondary email addresses

An alternative that might fool more sophisticated email harvesters would be to set up secondary email addresses to use for emails coming from web pages. For example, if the head of school’s email address needs to be displayed on a public page, use headofschool@yourschool.edu and set it to forward to jsmith@yourschool.edu. Because it is a separate inbox, you can set up rules so that it only forwards legitimate-looking messages. For other extreme techniques to prevent email harvesting, explore those proposed by Smashing Magazine.