diff options
Diffstat (limited to 'wp-comments-post.php')
-rw-r--r-- | wp-comments-post.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wp-comments-post.php b/wp-comments-post.php index 5988fd5..9f5d3b8 100644 --- a/wp-comments-post.php +++ b/wp-comments-post.php @@ -1,4 +1,10 @@ <?php +if ($_SERVER["REQUEST_METHOD"] != "POST") { + header('Allow: POST'); + header("HTTP/1.1 405 Method Not Allowed"); + header("Content-type: text/plain"); + exit; +} require( dirname(__FILE__) . '/wp-config.php' ); nocache_headers(); |