Spam problem on my website


Since a few days, I have many spam problems on my website I receive hundreds of thousands of comments and connection attempts.

Do you have a solution to block this type of connection?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Site Moderator
Site Moderator badge
April 7, 2023

Hey @juliebrisson,

There are several steps you can take to help prevent spam comments and connection attempts.

  1. Install a CAPTCHA. There are many CAPTCHA plugins available for popular website platforms such as WordPress and Drupal.

  2. Use an anti-spam plugin: There are many anti-spam plugins available for popular website platforms that can help prevent spam comments and connection attempts. These plugins typically use advanced algorithms and machine learning to detect and block spam activity.

  3. Enable comment moderation: By enabling comment moderation on your website, you can review all comments before they are posted publicly. This can help prevent spam comments from appearing on your website.

  4. Disable XML-RPC: XML-RPC is a remote procedure call protocol that can be used to remotely manage your website. Unfortunately, it is also a common target for hackers and spammers. Disabling XML-RPC can help prevent spam connection attempts.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel