主机上不同图片消失
我的网站上有 50 多张图片。我用ajax把它们全部拉出来。我的问题是在 30 张图像后出现 404 未找到错误。 我改变了图像的格式。我缩小了尺寸,但徒劳无功......我可以在新选项卡中一张一张地访问图片。我不明白问题出在哪里。我动态列出图像。本地主机上不存在此问题。当我将其上传到托管面板时,我只会收到错误消息。
我使用的技术可以在标签中找到。
I have more than 50 images on my website. I pull them all with ajax. My problem is it gives 404 not found error after 30 images.
I changed the formats of the images. I reduced the dimensions but in vain... I can access the pictures one by one in the new tab. I couldn't understand what the problem was. I am listing images dynamically. This issue does not exist on localhost. I only get an error when I upload it to the hosting panel.
The technologies I use are available in the tag.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
,这和我以前遇到的问题是一样的。如果您请求来自不同域的图像。此问题可能是由于热链接保护造成的。
如果此图像在您当前的域中并且正如您所说。如果您可以访问新选项卡中的所有图像等。我对 ddos 防护有疑问。我在我的 plesk 面板中更改了 ddos 保护设置,问题就消失了...您可以取消选中此保护或增加限制。
您可以取消选中此保护或增加限制。询问您的托管提供商也许您不需要此选项
I think that, it's the same problem as I had before. if you are requesting images from different domain. This issue can be because of hotlink protection.
if this images in your current domain and as you said. if you can access all images in new tab etc. I have doubt about ddos protection. I changed ddos protection settings in my plesk panel and problem was gone... you can uncheck this protection or increase limitation.
you can uncheck this protection or increase limitation. Ask your hosting provider maybe you don't need this option