I uploaded MP4 videos to: /htdocs/assets/images/Video/
The video file is hotel-tour.mp4 (approximately 7 MB).
When I open the video URL directly, I receive a 403 Forbidden error from InfinityFree. The website’s HTML5 video player also shows a duration of 00:00.
I added an .htaccess file inside the Video folder to set the MP4 MIME type, but the problem remains.
Could you please check why direct access to MP4 files is being blocked and advise whether MP4 playback is supported on my hosting account?
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.
I can’t tell yet whether this is a blocked file type or something else, so I need two details. Does hotel-tour.mp4 still show up in your file manager or FTP client under htdocs/assets/images/Video/? And what’s the exact text on the 403 page when you open the video URL directly in a browser?
I found an article about files that get blocked or removed after upload.
It says certain file types are blocked on InfinityFree for security and fair usage reasons. It doesn’t list MP4 by name, so I can’t confirm that’s what is happening to your file. It does say that if you want to embed a video in your website, you should use a specialized video streaming service instead.
Your 7 MB file is under the 10 MB limit for non-HTML/PHP/JS files, so size shouldn’t be the cause. The 10 MB limit applies to all files on your account, so larger videos would hit it.
Whether the file is still there should help narrow it down. If it’s gone, it was probably removed after upload. If it’s still there, something else is producing the 403.
Yes, hotel-tour.mp4 is visible in my File Manager under /htdocs/assets/images/Video/. The file size is approximately 7 MB.
When I open the video URL directly in Safari, the exact error is 403 Forbidden — Server or website configuration is blocking you from viewing this page.
The video file is still visible in File Manager, but it cannot play on my website.
Could you please ask a human support member to check why this file is returning 403 Forbidden?
As I understand it, video playback is aloud. If it’s not playing ball though, you could upload your video to YouTube and mark it privet, then end it on your page. I’ve found that to be the easiest option
Note that the URL says hotel-tour.mp4 twice. That’s because you created a folder with the name hotel-tour.mp4, and that one contains the actual video files. If you remove that second hotel-tour.mp4, you’re not requesting a file from the server, but a folder. And since the folder does not have a valid index file and directory listing is not enabled, you get that 403 error.
I suspect the folder setup is not intentional, so I recommend to move the files outside of that hotel-tour.mp4 folder instead.