From 70f2aef2221a24426e52eb66c5fd9e1105cd412e Mon Sep 17 00:00:00 2001 From: resu-cireneg <69966873+resu-cireneg@users.noreply.github.com> Date: Mon, 24 Jan 2022 10:31:47 +0100 Subject: [PATCH] Send "405 Method Not Allowed" on GET --- pingback.php | 1 + 1 file changed, 1 insertion(+) diff --git a/pingback.php b/pingback.php index fe02d90..bf08b13 100644 --- a/pingback.php +++ b/pingback.php @@ -2,6 +2,7 @@ $body = trim(file_get_contents('php://input')); if(!$body) { + header('HTTP/1.1 405 Method Not Allowed'); header('Content-type: text/plain'); echo "This is the Pingback endpoint for the Webmention spec. Pingback endpoints only accept POST requests.\n"; die();