fobe-web/ratelimit.php

9 lines
202 B
PHP

<?php
$url = $_SERVER['REQUEST_URI'];
if (strpos($url, '/ratelimit') !== false || strpos($url, '/ratelimit.php') !== false) {
redirect("/404"); //why not
}
echo "Rate limit exceeded, slow down!";