Ok, I have something that works. I am using the last method you mentioned and will update it later to use your second method using a combination of htaccess and php.
For those wondering about the basic format of the code here it is:
Code:
<Limit GET POST>
order deny,allow
deny from all
allow from 1.2.3.4
</Limit>
I have one security question. I hear that sessions and htaccess are really secure and that you should not post anything sensitive online, like bank account stuff, etc, but hypothetically I do post my bank account to this htaccess protected folder and I have tested the htaccess program on other computers and see that the program does indeed work. I also am very careful with whose IP address is in the allow list. Namely only myself. Would you say that is pretty secure?
Really, I just plan on using it to store copyrighted material.
Bookmarks