block particular web site form multiple site hosted web server and allow others
I am having a web server (apache) hosted with 3 web sites, named as www.web1.com, www.web2.com and www.web3.com.
I need to restrict access www.web2.com to internet users and allow to LAN users.
At same time I need to allow www.web1.com and www.web3.com to both internet and LAN users.
www.web1.com allow internet and LAN users
www.web2.com allow LAN and Block internet users
www.web3.com allow internet and LAN users
How can I do this.
(iptables rules, apache configuration or any other method?)
Thanks and rgds,