Prevent direct access to a webpage by typing the URL
<p>So I'm hosting my website (let's call is <strong>abc.com</strong>) on goDaddy. </p>

<p>I have a login page (<strong>abc.com/login.html</strong>). </p>

<p>Which takes me to a second page called booking (<em>abc.com/booking.html</em>) once the login credentials are verified.</p>

<p>So I don't want people to be able to just type <strong>abc.com/booking.html</strong> and access it. I want them to go to <strong>abc.com/login.html</strong> and then go to <strong>abc.com/booking.html</strong></p>

<p>So I came across 2 ways to fix this -</p>

<ol>
<li>Include a validating php script in booking.html and changing the extension from html to phtml. -> This didn't work for me</li>
<li>Include a .htacess file. -> I'm not really sure how to do that</li>
</ol>