Lets face it, the bloggosphere has a bunch of awesome people in it, but with awesome comes the dregs of society… You know the sort, those who like to get a bit of dutch courage in them on a Saturday night and then leave troll-y comments. Not enough dutch courage to leave a real name mind you – but enough to be a dick.
I’m generally okay with trolls, I’ve generally got a good idea about who might be behind it, but for those with less thick skin, it can be pretty upsetting and really ruin your day.
With that in mind, I’ve decided to knock up this super easy guide on how to ban idiots from your blog – I *might* have accidentally left the IP addresses of those naughty people uncovered. Don’t DoS them – whatever you do!
Anyway – thankfully it’s VERY easy to ban someone from your blog if you’re using WordPress, there are a range of plugins out there that do the job. I like this one, and this guide will use it. I imagine the principal is the same in other plugins.
1. Install the plugin on your blog.
From the WordPress sidebar
Plugins > Add New
Then search for ‘WP-Ban’ and hit ‘Install’
Activate WP-Ban and you’re ready to rock and roll.
2. Find the IP address of the person you want to ban.
Thankfully, WordPress logs the IP Address of anyone who leaves a comment. The IP address is the unique ID of the router that serves up the internet connection – it’s four numbers separated by four full stops. So find the IP address of the idiot in question from the ‘Comments’ section.
So, note down the IP address of the idiot.
3. In the WordPress Dashboard go to Settings > Ban
Find the ‘Banned IP’s’ box, and put in the IP address of each idiot on a new line – Like so..
Scroll down to the bottom and hit ‘Save Changes’ and BOOM said idiots IP addresses are banned from your blog.
You can change the message displayed to them when they try to visit in the ‘Banned Message’ box, although you’ll need to know HTML for that.
This isn’t entirely perfect, the dickhead could use a proxy or similar to hide their IP address, and IP’s do change over time (although less so now most people use routers). Either way, it’s just a small and simple way to disrupt those who like to deliberately upset. The way I see it, is that it’s all traffic to your blog, all extra ads being shown, stats don’t care if your readers like you or not 😉
Thanks for the hits, trolls!
Get more stuff like this
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
Thank you for subscribing.
Something went wrong.