How to Eliminate Spam Emails in WordPress

Spam emails are just plain annoying. Thankfully there are ways for you to eliminate them in your WordPress. Here's how.

  1. Image Completed

    Step 1 Sign In

    Log in to your WordPress account. Type in your username and password and click Log In.

    Edit Remove Move
  2. Image Completed

    Step 2 Get Rid of Spam Manually

    <ol><li>One way to get rid of spam emails is by going into the "Comments" tab under your "Dashboard". The first way is to do it manually. Check out the comments and hover your mouse underneath the comment. Options will appear for you including marking the comment as spam. If you think the comment is spam, click on the option “Spam”. This can take some time but it will get the job done.</li><li>Another manual way of getting rid of spam is by ticking on the small beside the comment and pressing the Shift key. Go all the way down to the bottom of the page and tick the last square button you see. This will tick all the squares between the first square and the last. If you see a comment that is not a spam, just untick the box. Go back up the page into the Bulk action box and click the dropdown arrow and click on Mark as Spam and click Apply.&nbsp;</li><li>The third way to do it is just by clicking the dropdown arrow beside Bulk Actions, click on Mark as Spam and then apply. Please Note that this will mark all comments as spam. It is advisable to check the comments first before doing this action.</li></ol><div><br></div>

    Edit Remove Move
  3. Image Completed

    Step 3 Empty Spam Folders

    To get rid of all spam comments already in the Spam folder, click on “Spam” and then click the dropdown arrow in the Bulk Actions box and then click "Delete Permanently" then click “Apply”. This of course does not prevent spams from getting in. So on to the next step.

    Edit Remove Move
  4. Image Completed

    Step 4 Moderate Comments

    <span>From your Dashboard, hover your mouse on “Settings” tab and then click on “Discussion”. Scroll down the page until you see “Before a comment appears”. You can either tick box 1 or box 2. Box 1 says An administrator must always approve the comment&nbsp;while Box 2 says Comment author must have a previously approved comment. Ticking box 2 is more ideal so you won’t have to keep on manually approving comments from trusted readers.&nbsp;</span>

    Edit Remove Move
  5. Text Completed

    Step 5 Modify .htaccess

    Add the following code to your root.htaccess to lessen spam # Protect from spam bots
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_METHOD} POST
    RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
    RewriteCond %{HTTP_REFERER} !.yourwebsite.com.* [OR]
    RewriteCond %{HTTP_USER_AGENT} ^$
    RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]
    </IfModule>
    You should also replace your URL “yourwebsite.com” with your blog URL. 

    Edit Remove Move
  6. Text Completed

    Step 6 Ban the Spammer’s IP Address

    Block spammers that you have already identified from further spamming you by blocking their IP addresses.

    For example, you want to block the IP address 224.39.163.56. Simply add the lines of code to your root.htaccess
      # block ip
    order allow,deny
    deny from 224.39.163.56
    allow from all

    You can also block IP addresses simultaneously. For example, you want to block 3 IP addresses (192.168.33.201, 224.39.163.56 and 111.16.7.92) Simply add the lines of code to your root.htaccess
    # block ip
    order allow,deny
    deny from 192.168.33.201
    deny from 224.39.163.56
    deny from 111.16.7.92
    allow from all

    Edit Remove Move
  7. Text Completed

    Step 7 Install an Anti-Spam Plug-In

    There are numerous anti-spam plug-ins that you can choose to install on your WordPress. Simply install one and you’re good to go. Here is 1 anti-spam plug-in that is highly recommended. Akismet – All WordPress has this installed by default. You’ll just need the API key to get it running. If you’re running a personal WordPress blog, you can get the API key for free. For business blogs, you’ll need to pay a small monthly fee. Get the API key for Akismet to activate it in your WordPress blog

    Edit Remove Move
  8. Text Completed

    Give These Tips a Try

    Hope this helps eliminate and lessen spam in your WordPress

    Edit Remove Move

Continue learning by following more paths or create your own. Join for FREE

By clicking 'Get Started Free' you agree to our Terms of Service and Privacy Policy