I have a lot of jpg files in a directory. One of these will not show on 3 different web pages (the rest all do). Trying to open it with a direct url throws a 403 error.
Used chrome and IE on 2 machines – no difference
Used Chrome Dev Tools and did empty cache and hard reload
The html is the same for all the images except for the file name.
I have code to show that the file exists – the web page sees it
Web page also shows the alt for the image
Spelling and extension are correct
Folder and permissions are the same for all files
I have changed the name
I have saved it in photoshop as a psd then saved again as a jpg (thought it might ‘clean’ the file)
I have converted it to a webp and that also gives a 403
I can open the file using explorer on my local machine, using photoshop on my local machine, and explorer on my web server – so the file does’t appear corrupt –
it just won’t open on a web page
I am using google/IIS compression but this hasn’t had any affect on several hundred other images
running on IIS 7.5
sample page below
https://kevin-sandbox.com/ovmp-dev/HtmlPage2.html
would anyone have any ideas on what might be wrong?
Thanks
Update
I added a screenshot to the HTML file showing
image – directory listing – permissions – log entry
2
Answers
There is file permission issue
For more help, refer this https://help.ubuntu.com/community/FilePermissions
It sounds like you need to configure IIS’s Dynamic IP Restrictions. Too many requests in a short amount of time can cause IIS to temporarily block IP’s. This was the issue for me.