How to solve 403 forbidden

Dec 14, 2018 pm 01:10 PM
How to deal with it

Solution: 1. Modify the permissions and security attributes of the folder; 2. Execute the "ipconfig /flushdns" command in the cmd window to rebuild dos; 3. Open the "httpd.conf" file and change Just change "Deny from all" to "allow from all".

How to solve 403 forbidden

The operating environment of this tutorial: Windows 7 system, Dell G3 computer.

I believe many people have a general understanding of what 403 forbidden means, so how do we solve it when we encounter 403 forbidden? Let’s talk about the solution to 403 forbidden.

When we are making a website, 403 errors will appear on the website from time to time, and the browser will give the type of 404 error, and the server refuses to process it, but generally it is caused by the permissions of the directory.

1. If it is a file permission problem, we can modify the folder permissions and the folder security attributes

You can use the command to modify it, chcon -R -t httpd_user_content_t public_html/, as shown in the figure:

403 forbidden怎么解决

2. For some regular 403 errors, we can rebuild dos

Method: We run cmd on the computer, and then enter ipconfig /flushdns. You can also modify the host file to force parsing.

3. If the 403 problem is caused by apache, we only need to open httpd.conf and change Deny from all to allow from all and 403 will not appear.

403 forbidden怎么解决

4. If 403 appears in the HawkHost space, we only need to add some code to the .htaccess file.

403 forbidden怎么解决

#5. If 403 appears in the directory index, this is also a common problem. I said it was borrowed and asked me to borrow 10,000. I am now How can there be ten thousand,

[Recommended reading: 403 What does forbidden mean

The above is the detailed content of How to solve 403 forbidden. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)