block outgoing traffic matching string

sudo iptables -I OUTPUT -p tcp --dport 443 -m string --string "dujrsrsgsd3nh.cloudfront.net" --algo kmp -j DROP
sudo iptables -I INPUT -p tcp --dport 443 -m string --string "dujrsrsgsd3nh.cloudfront.net" --algo kmp -j REJECT

list all iptable rules with linenumbers

sudo iptables -L --line-numbers

delete specific iptable rule on linenumber and Chain

sudo iptables -D OUTPUT 1
sudo iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT