Website shows 403 Forbidden (access denied)
On this page
A 403 answer means the web server found what was asked for but refuses to hand it out. On this server that comes from file permissions, from a rule you (or your application) set, or from one of the protections that run on every website.
Symptoms
- The browser shows 403 Forbidden, "Access denied" or a page titled 403 — Access denied ("You do not have permission to open this page.").
- Often only some things fail: pictures, styles or scripts, one folder, or one URL, while the rest of the site works.
Causes
Most likely first:
- File or folder permissions — the web server may not read the file or pass through a folder. Typical after uploading or moving a site.
- An access rule in
.htaccess—Deny from all,Require all deniedor a<Files>block closes the file or folder. - Upload-folder protection — a PHP script in
uploads/,upload/orwp-content/uploads/is never run. - The web application firewall — the request looks like an attack (for example a URL with
.env,.git/orunion select). - The IP Blocker — your address (or range) is blocked for that website.
- Hotlink protection — an image, video or PDF is shown on another website that is not allowed.
Fix
1. Permissions
The web server serves pictures, styles and scripts itself, so each folder on the way must be passable and each file readable by others. PHP pages run as your own user and may still work.
- Open File Manager (section Files) and go to the folder of the failing file.
- Select the folder (and the folders above it inside
public_html), click Permissions and set755. - Select the files and set
644.
Folders with mode 750 or 700, and files with 600 or 640, are the usual cause. After a transfer from another server the panel opens such folders automatically, but files you upload yourself keep the permissions they had.
2. An access rule in .htaccess
- In File Manager, open the
.htaccessfile of the folder (and of the folders above it) with Edit. - Look for
Deny from all,Require all denied,Order deny,allowor<Files …>/<FilesMatch …>blocks. - Remove or adjust the line and save. The change applies within a minute.
The panel turns these lines into rules of the website's configuration, so they work like on other servers. Lines it cannot translate exactly are left out rather than guessed.
3. Upload-folder protection
Scripts cannot run from upload folders, a common backdoor on hacked sites. Images and documents there are still served. If a plugin really needs to run a script from such a folder:
- Open Access Control (section Domains) and find Protection.
- Next to the website, find upload folders protected and click Turn off.
Turn it on again as soon as you can.
4. The web application firewall
If a normal page of your application is refused, open Access Control → Protection. The list shows attacks on your sites; a request of yours listed there confirms the cause. Only if the application really needs it, click Turn off next to firewall on for that website, and tell your host which URL was refused.
5. The IP Blocker
Open Access Control → IP Blocker. Visitors from the listed addresses get "403 Forbidden" on that website. Click Unblock next to an address that should not be there.
6. Hotlink protection
Open Access Control → Hotlink Protection. Add the other sites that may show your files under Also allow (other sites of yours), or turn it off. Direct visits and links keep working either way.
Still not working?
- A folder that should list its files but has no index page shows "not found" rather than 403; turn on Directory listing for it in Access Control.
- A password-protected folder asks for a username and password (401), not 403.
- If the whole website does not open from your address only (time-out, not 403), your address may be blocked at the firewall: see My IP is blocked.
- Run Site Check (section Advanced) and send the result to your host through Support.
Thank you — this helps us improve the article.
Still stuck?
Ask the AI about your exact situation — it answers from this knowledge base — or contact us.
Related articles
- 404 Not Found after moving a website to this server
Pages answer "404 Not Found" after you moved or uploaded a website. Check the website folder, .htaccess rules, file name case and the stored address.
- Website shows 500 Internal Server Error (HTTP 500)
Find why your website answers "500 Internal Server Error" or a blank page, read the PHP error behind it in the control panel and fix the usual causes.
- My IP is blocked: too many failed logins (how to unblock)
Your address was blocked after failed logins or by the Protection Shield and the panel, site, email or SSH stopped working. Find and lift the block.