<?php
// Router for the local PHP development server; production uses .htaccess.
$path=rawurldecode(parse_url($_SERVER['REQUEST_URI'],PHP_URL_PATH));
if (preg_match('~(?:^|/)(?:data|lib|tests|\.[^/]*)(?:/|$)|(?:README\.md|router\.php)$~i',$path)) {
    http_response_code(403); exit('Forbidden');
}
return false;
