Back to all status codes
403

Forbidden

The server understood the request but refuses to authorize it.

Common Causes

  • Insufficient permissions
  • IP blocked
  • Directory listing disabled
  • File permissions issue

Fix Solutions

Check file permissions

Ensure the web server has read access to the requested files.

Review access controls

Check if the user has the required role or permissions.

Code Examples

# Block specific IPs
location /admin {
    deny 192.168.1.100;
    allow all;
}

Related Tools