I am looking for any Apache or CSF method that will allow me to help better lock down my web server. All my public facing pages are *.HTML pages, all my server processing files are labeled .PHP. Meaning only .PHP files should be accessed by HTML files from my own servers.
At the moment, all of my PHP files have a function that looks for the client IP - if its not one of my servers requesting the PHP page, then spit out an "Invalid Request" page and exit the script.
However, this means the external user is still getting to my web PHP files...which is permitting a connection and server resources.
Is there any method in (preferably) CSF, or even Apache, that will only allow certain IPs to access specific files?
At the moment, all of my PHP files have a function that looks for the client IP - if its not one of my servers requesting the PHP page, then spit out an "Invalid Request" page and exit the script.
However, this means the external user is still getting to my web PHP files...which is permitting a connection and server resources.
Is there any method in (preferably) CSF, or even Apache, that will only allow certain IPs to access specific files?