For allow remote connections for specific IP add next to htaccess
SetEnvIf Remote_Addr «10.11.12.15|10.11.12.16″ realremoteaddr
Order Deny,Allow
Deny from all
allow from env=realremoteaddr
10.11.12.15|10.11.12.16 — allowed IP
For deny:
SetEnvIf Remote_Addr «10.11.12.15|10.11.12.16″ realremoteaddr
Order Allow,Deny
Allow from all
Deny from env=realremoteaddr
10.11.12.15|10.11.12.16 — now allowed IPs
SetEnvIf Remote_Addr «10.11.12.15|10.11.12.16″ realremoteaddr
Order Deny,Allow
Deny from all
allow from env=realremoteaddr
10.11.12.15|10.11.12.16 — allowed IP
For deny:
SetEnvIf Remote_Addr «10.11.12.15|10.11.12.16″ realremoteaddr
Order Allow,Deny
Allow from all
Deny from env=realremoteaddr
10.11.12.15|10.11.12.16 — now allowed IPs
No comments:
Post a Comment