<?php $blocked_files = ['footer.php', 'header.php']; if (in_array(substr($_SERVER['SCRIPT_NAME'], 1), $blocked_files)) { http_response_code(403); exit; }