Wp-content directory 403 Forbidden

Website URL

Error Message


Test1.php page code (echo ‘123’;), which can be accessed in htdocs/ directory. Error 403 in test1.php file in wp-content directory

Afaik, direct access to php files is prohibited in those folders by use of .htaccess or by web server for the security of site.
Or you might not have set proper permissions for that file.

1 Like

The PHP file is called in the JS code, and it will be reported wrong.

Access to XMLHttpRequest at ‘infinityfree. net/errors/403/’ (redirected from ‘http://zouw168.lovestoblog.com/wp-content/themes/wodown/action/zan.php’) from origin ‘http://***.com’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
jquery.min.js?ver=1.0:6 GET infinityfree. net/errors/403/ net::ERR_FAILED

File is not present


The zan.php file is not present in the folder you are requesting it from or it might be a permission problem.

This error state itself that the content of infinityfree can not be loaded because of CORS policy set by infinityfree through headers.

1 Like

I can only see the files you can see in the above screenshot attached
You might not have them uploaded in the right directory or they might not have correct permissions as I mentioned before.
Can you share a full screenshot of your account file manager?

And also can you tell me that whether you make account for zouw168.lovestoblog.com or it was made for another subdomain and then after creation that subdomain was added?

The directory is correct. Permissions are also set.

403 Forbidden error only occurs when the permissions of file are set to admin only due to which visitors will see 403 error. OR If the direct access of file is prohibitted. But in your case i am not able to see files you mentioned in the directory specified.

Check the above link you won’t be able to see the files you are mentioning.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.