To improve accessibility you could the reduce the "error trigger".
Use session handling on index.php.
PHP Code:
<?php
session_start();
if ('POST' === $_SERVER['REQUEST_METHOD']) {
if (!isset($_SESSION['allow_post'])) {
exit('Please allow cookies!');
}
}
$_SESSION['allow_post'] = true;
?>