Title: wp-comments-post.php
Last modified: August 18, 2016

---

# wp-comments-post.php

 *  [daveelcock](https://wordpress.org/support/users/daveelcock/)
 * (@daveelcock)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/wp-comments-postphp/)
 * 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)

 *  [Lorelle](https://wordpress.org/support/users/lorelle/)
 * (@lorelle)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/wp-comments-postphp/#post-151300)
 * Is this renaming of the wp-comments-post.php file working for you, or anyone 
   else?
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/wp-comments-postphp/#post-151301)
 * 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.

 * 2 replies
 * 3 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [21 years, 3 months ago](https://wordpress.org/support/topic/wp-comments-postphp/#post-151301)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
