網站上圖片不一致的 403 Forbidden 問題

網站上圖片不一致的 403 Forbidden 問題

要求網頁上嵌入的圖片時,我得到不一致的 HTTP 403 Forbidden 結果。這種情況在 FireFox 中發生得更頻繁,但在 Chrome 中偶爾也會發生。這個網站已經使用了很多年,幾週前才出現。我控制網站和伺服器,但不知道如何解決此問題。當我刷新頁面時,似乎是不同的資源組合導致了問題。

回覆:

HTTP/1.1 403 Forbidden
Server: Microsoft-IIS/8.5
X-UA-Compatible: IE=Edge
X-Frame-Options: sameorigin
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Strict-Transport-Security: max-age=63072000; includeSubDomains;
P3P: Our site does not have a P3P Policy, please see our privacy policy for more information.
Date: Fri, 15 Apr 2022 17:34:15 GMT
Content-Length: 0

要求:

GET /bonds/images/exclamation.png HTTP/1.1
Host: <Redacted>
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0
Accept: image/avif,image/webp,*/*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Referer: <Redacted>
Cookie: <Redacted>
Sec-Fetch-Dest: image
Sec-Fetch-Mode: no-cors
Sec-Fetch-Site: same-origin
If-Modified-Since: Mon, 04 Apr 2022 20:03:08 GMT
Cache-Control: max-age=0

答案1

在這種情況下,問題似乎是由動態 IP 限制引起的,增加最大並發請求數解決了這個問題。

相關內容