I developed a website. There is no login section in the website. I didn't want to force people to sign up. Now I have a problem. There are a few
.php pages that only I should access. How can I do that? I am afraid that some hacker will find the page and have access to admin functions on the site.
What I did I included this code on the page:
if($_POST['code'] != 'mysecretcode') exit("you are not allowed");
Whenever I want to enter that page, I include the code as a POST parameter:
However, I don't know how effective this solution is.