Over a million developers have joined DZone.

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 to migrate and modernize stateless applications and run them in a Kubernetes cluster.


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.


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!


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.


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


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


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


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


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.



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

Join us in exploring application and infrastructure changes required for running scalable, observable, and portable apps on Kubernetes.


Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}