That’s because of the security system. Things like that generally won’t work here.
Your site is running on InfinityFree just fine.
InfinityFree’s subdomains can only be used with infinityFree, so the fact that it’s your URL at all means it isn’t just running locally on your computer. Failing that, you can tell where your site is hosted by using a dig tool to view your domain’s DNS records (unless they’re masked by something like Cloudflare). That’s of course assuming I understand what you mean correctly. By locally do you mean your own computer?