403 Forbidden and index.html file disappears after upload

Website URL

https://jawirlogistik.com.ua

Error Message

403 Forbidden (errors.infinityfree.net/errors/403/)
"Server or website configuration is blocking you from viewing this page

Other Information

Hello! My website shows 403 Forbidden.

  1. My index.html file (about 1.5 MB, a single static page with embedded images) does not stay on the hosting. After I upload it, it disappears or does not load. An older, smaller version of the same file uploads and works fine.
  2. I upload files to the htdocs folder.
  3. The file is named index.html.
  4. I need link previews (Open Graph image and description) to work when I share the link in Viber, but the preview does not appear.

Questions:

  • Is there a file size limit or an automatic check that removes my index.html?
  • What could cause the 403 error if the file is in htdocs?
  • Does the JavaScript browser check on InfinityFree block link preview bots (Viber)? If yes, is there a way to allow them?

Thank you for your help!

Welcome to the InfinityFree community forum! Good to have you here.

  • Most people answering here are volunteers. They’re often the fastest source of help. Admin (the only staff member) checks in about once a day for issues on our end.
  • Volunteers can’t see your account or website. Share what you actually see, like error messages and what happens when you try something. That’s more useful than your theory of what’s wrong.
  • AI tools often get InfinityFree wrong. If a volunteer’s advice differs from what an AI told you, please try the volunteer’s suggestion first.
  • Solving an issue is a joint effort. Try the suggestions you get and report back what happened.

Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look.

Yes, there is a size limit, and it’s almost certainly why your index.html disappears. HTML, PHP and JS files are limited to 1 MB, and files over the limit are deleted automatically after upload. Your new file is about 1.5 MB, so it gets removed. The older, smaller version stays because it’s under the limit. Other file types, like images, can be up to 10 MB.

The article that covers this is below.

That also explains the 403. With no index.html in the folder, the server has nothing to show. The 403 article lists a missing index file as a cause.

To get under the limit, you could save the embedded images as separate image files and reference them from the HTML. That’s a general approach, not something from our docs.

On Viber, the browser security system blocks link previews. It checks that a visitor can run JavaScript and accept cookies, and preview bots can’t. The article lists link previews (Open Graph tags not being read) as something that doesn’t work, and says the check can’t be excluded for a path, file type or user agent. It can’t be turned off on free hosting either, and a custom domain doesn’t change that.

So fixing the file size will bring your page back, but I don’t see a way to get Viber previews working while the site is on free hosting. The article names premium hosting as the option for things the check blocks.

To confirm, lemni has given you the correct answer here


works for me though