htaccess using http header information

this is a sample how to restricted web access using X-FORWARDED-FOR information from http header.

SetEnvIf X-FORWARDED-FOR ^1.1.1.1$ allowclient

<limit GET POST PUT>
order deny,allow
deny from all
allow from env=allowclient
</limit>

Leave a Reply