A
A
alex01s2022-01-13 13:16:14
Apache HTTP Server
alex01s, 2022-01-13 13:16:14

Why does viewing images on a hosting cause 403 access denied?

When browsing the site normally, all images work (when used in CSS and HTML). But if you open the image directly in the browser, then a 403 response comes up. When checking for broken links by the deadlinkchecker.com service, dozens of 403 errors are opened, all of them due to attempts to download the image. Yandex says that you need to add a favicon, but it is there. It also fails to load the image.

How to decide? Deleting .htaccess didn't help, setting 644 permissions for files and 755 directories via FTP did the same. Apache server. Free hosting AwardSpace. The images are in the /picture folder.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
alex01s, 2022-01-14
@alex01s

The answer is a free hosting restriction (hotlinking protection), and you can only upload images by specifying a relative (local) path.

Z
Zettabyte, 2022-01-13
@Zettabyte

Judging by the description, you are blocking requests to images where there is either no referrer, or it differs from your domain.
It is difficult to give a more precise answer with the available information. If you have your own server, then look at the Apache config, if shared hosting, then study the settings in the control panel.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question