WordPress – Disable comments on attachments

After stopped and cleaned the WordPress pingback and trackback spams, those spammers have changed strategy to start spamming comments and trackbacks on the post attachments. Solution 1.1 Stop commenting on new and existing attachment. Add below PHP script in theme’s function.php ${theme_folder}/function.php //disable comments on attachment function filter_media_comment_status( $open, $post_id ) { $post = get_post( …

Read more

How to Stop WordPress Pingbacks and Trackbacks Spam

Review my WordPress wp_comments table and find out the file size is containing 500MB++ for around 1 millions++ comments! Dig inside and find out around 900k++ comments was marked as ‘trackback‘ and it linked back to a spammer’s website. The worst is the this type of ‘trackback‘ comments are kept increasing every second! Follow the …

Read more

CloudFlare + WordPress admin, Cache issue

Below is my website environment : WordPress 3.8.1 CloudFlare Pro Plan 1. Problem I’m unable to login WordPress after changing my custom DNS to CloudFlare, below is the error message : ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress P.S The browser’s cookies are enabled. Here’s …

Read more