Purpose
The purpose of this procedure is to troubleshoot 403 Forbidden responses. A 403 Forbidden indicates that the requested content was found but the requester is unauthorized.
Source
Narrow down the source of the issue by requesting the asset directly from the origin server. Make sure that this request uses the same relative path and file name as the corresponding CDN or edge CNAME URL.
Sample CDN URL:
Sample direct request:
Checklist:
Request the asset directly from the origin server.
403 Forbidden: Check for the following items:
Verify that the request URL points to an assetA file is the most commonly known example of an asset. Refers to any collection of data that is typically stored as a single unit on a storage unit (e.g., disk drive). An example of an asset that is not physically stored on a disk drive occurs when dynamically generated content is not cached..
Verify that the web server has been configured to allow the request.
Firewall
Our edge servers need to be able to communicate with the web servers associated with a customer origin configuration. A list of IP addresses that should be allowed access to your web servers is provided on the Customer Origin page.
Checklist:
Verify that all our IP blocks can access your web servers.
CDN Security
Content may be secured through any of the following CDN platform/features:
The above CDN security mechanisms may generate a 403 Forbidden response for unauthorized requests.
Checklist:
Check whether CDN security has been applied to the request.
For each applicable CDN security mechanism, verify that the request should be allowed.
- Token-Based Authentication: Decrypt the token value defined in the request. Verify that the request meets the token's security requirements.
If the primary encryption key doesn't work, then try the backup key. If both don't work or a backup key doesn't exist, then an old or invalid key was used to generate the token.
- Country Filtering: Verify that the request originated from an authorized country.
- Web Application Firewall: Verify that the request was not improperly screened. Use the dashboard to view detailed information on why the request was screened.
- Rules Engine: Check whether the request met the match conditions for a rule containing a security feature.
Edgecast CDN