Accessing the following page through browser returns the text properly:
Website URL
https://pant.family/privacy.html
However I get the following error when I do a curl on the page:
Error Message
curl https://pant.family/privacy.html
curl: (92) HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
Other Information
(other information and details relevant to your question)
Welcome!
I am a little confused as to what the problem is, but I think this may apply:
InfinityFree is a website hosting service. That means that the hosting accounts we provided are intended for hosting websites. Websites contain pages that are accessed through web browsers. InfinityFree is not intended to be used for file sharing, API hosting, database hosting or background tasks/tools.
To help enforce this, free hosting enforces a security system that makes sure that anyone trying to access your website is using a normal web browser. This is done by checking whether the web br…
4 Likes
Thank you Greenreader9 for your response. However the problem is that my website provides sign-in experience using facebook credentials. As you can see the facebook application is indicating that the privacy url should be publicly accessible. And the curl response should be 200 ok (item 2). As you can see from the image, facebook is not able to verify the URL via curl.
Unfortunately, that is a limitation of free hosting.
As you have a custom domain, you can use Cloudflare to bypass the system if you wish:
Hello,
I will show you how to easily set up Cloudflare, Edit Records, and Troubleshoot with images!
PLEASE READ BEFORE STARTING!!!
Cloudflare cannot be used on free subdomains from InfinityFree.
You can use Cloudflare on Custom Domains (yoursite.com ) and with Custom Sub-Domains (subdomain.yoursite.com ).
A video tutorial can be found at the end of this guide, should you get stuck.
You must connect your domain to your InfinityFree account first. Read more here .
Set-Up Cloudflare
Go to Dash…
3 Likes
Thank you so much. I will give it a try.
system
Closed
April 16, 2023, 11:00pm
6
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.