I'm creating a website on my local computer and have no database system.
For each user entering the page, i create a text file with their IP adress as the name. So when i go on the website when it's hosted on my computer, a PHP script creates a file hits/127.0.0.1.txt.
The file contains some sensitive information, and i dont want anything else then my PHP scripts to access the files.
When i write 'localhost/mysite/hits/' i can access all the text files and information. I'd like to prevent this so people wont be able to see this when i publish the site
How can i do this?
And by the way, I create this file to use it to count visitors and see when i get most visitors.