The file entries.txt is accessable by the client thus allowing to read protected messages as well as the banned ip list.
So i created the following htaccess file to solve this problem:
Code: Select all
#Sets the directory index to the main script so index.php is not needed
DirectoryIndex gbook.php
#Deny access to some files
<Files "banned_ip.txt">
Order allow,deny
Deny from all
</Files>
<Files "settings.php">
Order allow,deny
Deny from all
</Files>
<Files "entries.txt">
Order allow,deny
Deny from all
</Files>