I'm trying to allow connection to only one website (for only one domain). For example www.mywebsite.com, with IP address A.B.C.D.
My iptables definition looks like this:
iptables -I INPUT 1 -i lo -j ACCEPT
iptables -A OUTPUT -p udp --dport 53 -j ACCEPT
iptables -A OUTPUT -p tcp -d A.B.C.D --dport 80 -j ACCEPT
iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
iptables -P INPUT DROP
iptables -P OUTPUT DROP
Problem is that it looks like subfolder of that website is not on the same server. So if it's on www.mywebsite.com, user must be able to access also to
www.mywebsite.com/cobiss/, www.mywebsite.com/cobiss?param1=value1¶m2=value2.
Can you help me what additional rules I need to allow access to related parts of that site?