• daveelcock

    (@daveelcock)


    Looking at my site statistics, I noticed that the most popular page was /wordpress/wp-comments-post.php. I thought this was a bit odd since I disabled comment posting due to spam comments ages ago. My conclusion, right or wrong, was that spammers must be just heading straight for wp-comments-post.php.

    So, my first idea was to just delete wp-comments-post.php since comments were disabled. But, now that I’ve upgraded to WP 1.5, with its improved handling of comments etc, I decided to reinstate wp-comments-post.php. Then I came up with a cunning plan. I’ve renamed it to wp-comments-post-<random number>.php, and changed my theme php files accordingly.

    First of all, does anyone anticipate any problem with this?

    Secondly, I was surprised to find out that wp-comments-post.php was specifically named in the theme files, expecting to find some function to get the string. Perhaps it should be encapsulated in a function, or setting. Then we could change the post php file in the control panel, or at least in the config.

    Cheers,
    Dave.

    p.s. Great job on 1.5 by the way. And great timing – I was about to go and write a new CMS because WP couldn’t do what we now know as ‘pages’, rather than just posts. Phew, saved by the bell.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Is this renaming of the wp-comments-post.php file working for you, or anyone else?

    Moderator James Huff

    (@macmanx)

    It works a maximum of one month for me. It confuses the bots for about 2 weeks and then the spam starts steadily flowing back in around the 3rd week. By the end of the month, it’s back in full force. Because of that, I used to change the file name every month, but now I just rely on Spam Karma.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp-comments-post.php’ is closed to new replies.