More from your blog

RESOURCES FOR BLOGGERS

  • Bloglovin
  • Facebook
  • Instagram
  • Pinterest
  • Twitter
  • YouTube
  • CHOOSE YOUR BLOGGING LEVEL
    • I DON’T HAVE A BLOG YET
    • I AM A NEW BLOGGER
    • BLOGGING IS MY BUSINESS
  • HOW TO START A WORDPRESS BLOG
  • BLOGGING TOOLS
  • OUR MAIN BLOG — KATIE DID WHAT
  • READ THE OLD BLOG

WordPress Users with cPanel — How to Block a Single IP Address from Accessing Your Site

5 Comments

how to block an ip address from accessing your site with wordpress and cpanel
The other day, my wife Katie got over 800 SPAM email comments within the span of 6 hours. I noticed that they all came from the exact same IP address. I blocked that IP address and then realized that I should show you all how I did it.

First things first, this tutorial is for WordPress users who have cPanel.

Second, why would you want to block them?
Well, every time someone visits your site, it uses a little bit of memory from your webhost. If this happens 800 extra times in a span of a few hours, that can add up to a significant amount of memory (depending on your hosting plan) and could even lead to your site slowing down or shutting down. Not to mention the annoying 800 spam comments that they leave behind.
Note: You can also use this method to stop trolls from accessing your site. If you have someone harassing you leaving rude comments, just block them!

Ok, so how do you block them?

First, let me show you how to find their IP address.

Get to the comments section in your WordPress dashboard and look for this:
how to block an ip address

(This is NOT my IP address at all, I have edited it for this post.)
You can easily tell if the comments are all coming from the same person if the IP address is the same.

You can also, in cPanel, go to “latest visitors” under the Logs section and see every IP that is accessing your site (comment left or not).

Ok, now that you have the IP, what’s next?

Go to your cPanel and it will look like this:
ip deny manager
Ok now don’t freak out here. But also don’t touch ANYTHING that you are not familiar with. Find something called the “IP Deny Manager” under the security section and click it one time.

From here, you can simply add the IP addresses that you want blocked as shown below:
blocked ip

Note: I recommend only blocking SINGLE IP addresses, as opposed to a range. Blocking a range can deny many people access to your site, some of whom may not be spammers at all.

Blocking IP addresses is not permanent either. You can unblock them at anytime.

Annnnnnnd that’s it! Easy peasy! Another reason why having a WordPress blog is awesome! Blocking trolls!

Related Posts

  • How to Lower Your Bounce Rate from 85% to 10% with One Easy FixHow to Lower Your Bounce Rate from 85% to 10% with One Easy Fix
  • How to Block Specific Ads or Categories in AdSenseHow to Block Specific Ads or Categories in AdSense
  • Beginner’s Google Analytics Tip — How to See Your Most Popular PostsBeginner’s Google Analytics Tip — How to See Your Most Popular Posts
  • How to See Stats from a Single Post With Google AnalyticsHow to See Stats from a Single Post With Google Analytics
  • Lucy Burton-Browne from Rebecca Ellis Greene EmailsLucy Burton-Browne from Rebecca Ellis Greene Emails
  • The Importance of Blogging Support GroupsThe Importance of Blogging Support Groups

Filed Under: Blog, Tutorials Tagged With: tutorial

Comments

  1. Ashley @ Saving Money in your Twenties says

    January 29, 2014 at 10:24 am

    Cool! I’ve never thought to look at IP addresses for all those spam comments… I definitely don’t get 800 in the span of a few hours, but I do get quite a few! I’ll have to check the IP addresses next time they start building up. Thanks! 🙂

    Reply
    • Zack lu says

      January 29, 2014 at 10:46 am

      I didn’t think of it either… then 800 comments got me looking! 😀

      Reply
  2. Kim Tobin says

    January 29, 2014 at 4:31 pm

    Awesome tip! Thanks! This is going to come in very handy! I’ve never seen so many comments about Louis Vuitton bags in my life!

    Reply
    • Zack lu says

      January 29, 2014 at 4:50 pm

      Haha! Yep, and something tells me they’re not even real LVs anyway!

      Reply
  3. Catina says

    January 31, 2014 at 6:36 pm

    Great tip! Much easier than deleting hundreds of random emails everyday!

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Disclosure Policy

As of December 2009, the FTC requires all Blogs generating any source of income to have an official … Read More

  • Bloglovin
  • Facebook
  • Instagram
  • Twitter
  • YouTube
---> Registry Must Haves
---> How to Start a Lifestyle Blog
---> What's in My Hospital Bag

How to Start a WordPress Blog

There are many reasons why you might want to know how to start a blog. Maybe you have a business and want to supplement your online activity with a blog. Good idea! Maybe you want to start an online diary of your life. That's fun too! Maybe you want to start a fashion blog, or a … Read More