alexlostorto/photography

View on GitHub
components/footer.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

// PREVENT DIRECT ACCESS
if (basename(__FILE__) == basename($_SERVER['SCRIPT_FILENAME'])) {
    // The file is being accessed directly
    http_response_code(403);
    header("Location: /photography/403/");
    exit;
}
// PREVENT DIRECT ACCESS

?>

</body>
</html>