<?php
// Set HTTP response code
http_response_code(403);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>403 - Access Forbidden</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
body {
background-color: #f8f9fa;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.error-container {
text-align: center;
max-width: 600px;
padding: 40px;
background: white;
border-radius: 10px;
box-shadow: 0 0 20px rgba(0,0,0,0.1);
}
.error-code {
font-size: 120px;
font-weight: 700;
color: #e74a3b;
line-height: 1;
margin-bottom: 20px;
}
.error-message {
font-size: 24px;
color: #5a5c69;
margin-bottom: 30px;
}
.error-description {
color: #858796;
margin-bottom: 30px;
}
.btn-primary {
background-color: #4e73df;
border-color: #4e73df;
padding: 10px 20px;
font-weight: 600;
}
.btn-primary:hover {
background-color: #2e59d9;
border-color: #2653d4;
}
</style>
</head>
<body>
<div class="container">
<div class="error-container">
<div class="error-code">403</div>
<h1 class="error-message">Access Forbidden</h1>
<p class="error-description">You don't have permission to access this resource. Please contact the administrator if you believe this is an error.</p>
<a href="index.php" class="btn btn-primary">Go to Homepage</a>
</div>
</div>
</body>
</html>