Welcome! Log In Create A New Profile

Advanced

Deny host to 403 Page with PHP

Posted by Senethic 
Deny host to 403 Page with PHP
August 03, 2014 08:38PM
Hello all,

I've setup a webserver with NGINX and PHP-FPM.
Everything is working correctly except for this.

I have a list of IP's that I block.
I want the 'bad hosts' (blocked IP's) to be redirected to a 403 page.

Unfortunately the PHP on the page doesn't get executed.
(Its supposed to echo back the IP address where the user is connecting from).

Any idea on how I can fix this?

Thanks!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 194
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready