Top Nav

Block By X-Forwarded-For In .htaccess

To block access except for a single IP address in the .htaccess file the code is:

If you’re behind a load balancer then you have to use the X-Forwarded-For header instead: