What the hell??!? (blah, blah of a wannabe alien)
How To Hide Deleted Comments In Blogger
It’s really annoying when someone spams your comments in Blogger (or accidentally posts twice). You can delete the comment, but it’s not “really” deleted… instead it has a message saying the comment was deleted by an administrator. In the case of a spammer, it’s really ugly to have 20 or so of those if you ask me.
So I decided to come up with a hack that will remove it. This only works if you run your blog on your own server (FTP or SFTP published) and your server is running Apache with PHP extensions installed.
First I created a PHP file and dropped it in my blogger base directory:
Then I created a .htaccess file in that same folder:
Great… problem solved. Basically it reads the file and spins it through the script before it’s output to the user.
BTW, this is not a detailed “how to”, so use at your own risk and don’t email me if it doesn’t work.
| Print article | This entry was posted by Shawn on November 3, 2004 at 12:26 pm, and is filed under Blogs. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 7 years ago
Excellent thankyou
I wanted to edit some stuff on my pages but didnt know how to go about it since blogger inserts the html.
With this in mind I’m planning something which may take me a while to complete – but it’ll be worth it.
This gives me a base to get started
about 7 years ago
how do you delete (or remove) the comments? I’ve been struggling to figure that out. Any help would be appreciated.
about 4 years ago
Hello, I am from Greece and I would like to ask you something about comments in blogspot. Is there any way to hide only the old comments and show only the comments in the most recent post?
Also, is there any way to delete all the comments at the same time and not one by one?
Thanks in advance!
about 4 years ago
is it possible to just moderate a comment and not entirely delete it, AFTER IT WAS ACCIDENTALLY PUBLISHED?