I have created some php pages which show data from some excel files.
I access those pages using internal IP address at the office where all PC's are connected on the same network. I access those pages from my home using external IP address.
So my question is, how do I put a password or protect my php page access from external network?
i.e. When I access php webpage from my home, it should ask for a password - how do I accomplish this?
eg: hello.php
<?php
echo"hello world";
?>
I want to put password to this php file or if I access it using external ip address then it should ask for password.