Since doing a DNS lookup isn't a cool thing, you'll need the ip address of abc.com; then you'll need to know which port https uses (I don't remember it, but Google does, and anyway you should know it if you're dealing with iptables), then you just write a rule which looks something like
/sbin/iptables -A INPUT -s <ip-address of abc.com> --dport <https port number> -j DROP
if I remember right. After this, test if it works. If it does, save the config (i.e. if your firewall is set up by a script like rc.firewall
, add the above command there).
If I misremembered something, just read
which tells you exactly how to drop (or deny) packets from a certain ip to a certain port.