How do I host and allow access to file


How do I host (allow access) to a text file?

even when I try to get the homepage with curl I get 404 back.

Thank you

Refer to this document

You can not use curl to get the contents of site as there is a security prevention system enabled which ensures that the site is accessed only through web browser.

Infinityfree is a web hosting, so file hosting is also not allowed on free servers according to the terms and conditions.


You have to place an index file in your htdocs folder.
Just upload a index.html ou index.php file in your htdocs folder and you should be able to see it.

If you want to upload a text file, you have to access it directly.
For example


This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.