I use iptables for other sites as:
iptables -A OUTPUT -o EXTERNAL_IF -m owner --uid-owner USERNAME -d DESTINATION_WEB -j REJECT
It works for most sites except ones having a large range of IPs. What is the best way to achieve this? Please note that I need different rules for each user.