Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

How do I stop spam with WordPress hosted on Azure Websites?

DZone's Guide to

How do I stop spam with WordPress hosted on Azure Websites?

· Cloud Zone
Free Resource

Learn how our document data model can map directly to how you program your app, and native database features like secondary indexes, geospatial and text search give you full access to your data. Brought to you in partnership with MongoDB.

Overview

In my recent post on how to set up email with WordPress hosted on Azure Websites, I mentioned the spam problem that will occur when running WordPress. As an example, here is the amount of spam I have received since moving my MSDN Blog onto WordPress in Azure Websites two months ago.

Spam 

By default, any new comments on your blog posts will not be visible until you have approved them.  In the past, this meant each morning I would go through 10+ comments that all lead to a crazy spam email address outside the United States.  If you’ve been running into the same issue, there is a quick and easy fix!

Captcha

Log in to your Azure Websites-hosted WordPress dashboard, select "Plugins", and then "Add New".  Do a search for Captcha and you will get back a list of popular plugins like below.

CaptchaResults

After looking at the details and user ratings I decided to go with Captcha.

Captcha1

Once the Plugin is installed, open up your dashboard and select the "Installed Plugins" menu.  Verify that the Captcha plugin has been activated.

SpamBlock1

You can modify the settings if you only want certain arithmetic functions, for example, but I kept the defaults as is.

Captcha2

Save your changes and you are all set!  The Captcha will appear on your log in form, comments, and registration.

CaptchaLogin

Registered users will not be bothered by any Captcha (you can turn this off if you wish), thus making it seamless for your blog commenters and restrictive for spammers.

CaptchaComments

Conclusion

Since I installed the Captcha plugin a few days ago I have not received a single spam comment on my blog.  I highly recommend installing a similar plugin if you are running WordPress hosted on Azure Websites.

- Dave

Discover when your data grows or your application performance demands increase, MongoDB Atlas allows you to scale out your deployment with an automated sharding process that ensures zero application downtime. Brought to you in partnership with MongoDB.

Topics:

Published at DZone with permission of David Isbitski, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}