The server understood the request but refuses to authorize it.
The server understood the request but refuses to authorize it. Unlike 401 Unauthorized, authenticating will not help - the server has decided the client does not have permission to access the resource. The server knows who you are, but you're not allowed in. Re-sending the request with different credentials won't change the outcome unless those credentials have higher privilege levels.
A 403 Forbidden error appears when the server's access control system explicitly denies access to the requested resource. This can happen at multiple levels: the operating system file permissions, the web server configuration, the application's authorization logic, or a firewall/WAF layer.
Common scenarios include trying to access admin-only pages as a regular user, visiting a website from a blocked country, trying to list a directory without an index file, or having your IP flagged by security software.
Platform-Specific Notes:
Nginx Returns 403 when autoindex is off and no index file exists, or when file permissions block the nginx user. Check error.log for "Permission denied".
Apache Triggers 403 via Require all denied in .htaccess, or when Options -Indexes blocks directory listing.
Cloudflare Returns 403 when WAF rules, IP Access Rules, or Zone Lockdown block the request. Check Cloudflare Firewall Events.
Node.js Express authorization middleware returns 403 when role-based access control (RBAC) denies access to the route.
Deny from all or Require all denied directives blocking accessautoindex# Request to a restricted admin endpoint GET /admin/dashboard HTTP/1.1 Host: example.com Authorization: Bearer eyJhbGciOiJIUzI1NiIs... # User role: "viewer" (requires "admin") # Server Response HTTP/1.1 403 Forbidden Content-Type: application/json { "error": "Forbidden", "message": "You do not have permission to access this resource", "required_role": "admin", "your_role": "viewer", "statusCode": 403 }
Detect 403 errors on your pages instantly. Monitor access issues and get alerted before they impact your users.
Start Free Monitoring