Error 403 (Forbidden)
Why the site shows 403 and how to check permissions, the index file, .htaccess and IP blocks.
Error 403 means the server understands the request but refuses to carry it out because you do not have permission to access it.
Symptoms#
"403 Forbidden", "Access denied" or "You don't have permission to access this resource". It may appear on the whole site or only on certain addresses.
Causes#
- there is no
index.html/index.phpin the folder and directory listing is not allowed, - wrong file and folder permissions,
- rules in
.htaccessthat block access (Deny from,Require), - your IP address is blocked (cPanel IP Blocker) or by a security plugin,
- the files are not owned by your user (after a faulty upload).
Fix#
- In File Manager check that the site folder contains
index.htmlorindex.phpwith the correct name (case matters). - Set permissions: folders 755, files 644 (File permissions).
- Temporarily rename
.htaccessto.htaccess-oldand refresh (.htaccess basics). - In cPanel open IP Blocker and check that your address is not on the list.
- Turn off security plugins or bot protection in the application if you recently enabled them.
Ticket#
If you do not succeed, open a ticket with the address that returns 403, your IP address (search "my IP"), the time it appeared and recent changes.
Vam je bil ta članek v pomoč?
Hvala za vaše mnenje! Potrebujete pomoč? Odprite zahtevek.
Sorodni članki
File ManagerThe basics of managing files in your browser: upload, edit, delete and search..htaccess basicsWhat .htaccess is, how to edit it safely and examples of common rules.File permissionsWhat numbers like 644 and 755 mean, which values are usual and how to change them.Browser SSL error"Your connection is not private" and similar messages: causes, certificate check and fixes.
