How can I preview my site?

I would like to preview my site before switching nameservers. Is a preview URL available?

That all depends on what you are using to publish said site. Wordpress, Mobirise and other website publishing softwares should have a preview option for you to see.

JenovaOnline said:
That all depends on what you are using to publish said site. Wordpress, Mobirise and other website publishing softwares should have a preview option for you to see.
Yes but that is on the assumption that I have switched nameservers to point to use what InfinityFree prescribes. I don't want to switch NS until I know the site is working as expected.

This is what I mean:

https://www.web24.com.au/tutorials/preview-a-website-on-a-cpanel-server

For starters, we don't use cPanel. Our panel looks similar, but works entirely differently under the hood. So many cPanel features are not available.

Also note that the article specifically requires you to enable the feature first, which means it's not enabled by default. And there is a good reason for that: security.

If you have a website https://example.com , then someone else could create an account with username `accountlogin` or something like that with a phishing page. That phishing page would then be accessible at https://example.com/~accountlogin . To people who don't see the tilde or know what it means, they see a login page on your domain name with your SSL certificate, and enter their login details on the page. Therefore sending it to the phisher. And there is nothing you, as the website owner can do, to stop it.

That's the reason no sensible hosting provider these days has enabled the `userdir` feature on shared servers.

------------

If your domain name is already set up on your account, you can preview it by editing your computer's hosts file. You can do that like this: https://gist.github.com/zenorocha/18b10a14b2deb214dc4ce43a2d2e2992

You can find the IP address you need to use by following this guide: https://infinityfree.net/support/find-your-ip/

But that only works if the target domain is already added to your account, which requires the domain to point to our nameservers already.

If the domain name is not yet set up, you can create an account with a free subdomain and set up your website on the free subdomain. When it's ready, you can add your actual domain as a Parked Domain on the free subdomain.