|
Limiting access to web-pages by IP-address with PHP
We need to limit access to a group of our web-pages. We use MODx CMS and it seems that the most simple way to do accomplish what we want would be to have a small PHP-script that gets executed from the HTML-templates and checks the IP-address of the user. So far all the instructions we've found from the internet deal with configuring the web-server, which in our case is not a viable option. Could anyone point us to the right direction with limiting access with php? Thanks!
|