title: Mac | ipfw adding firewall rule
body: <p>In my Application, i need to block firewall such a way that it should block all the url and allow certain URL, </p>
  
  <p>this is the rule i am wring </p>
  
  <p>assuming i don't want to block www.google.com , www.facebook.com  </p>
  
  <pre><code>ipfw 12164 deny tcp from any to any  
  ipfw 12156 allow tcp from any to www.google.com  
  ipfw 12157 allow tcp from any to www.facebook.com  
  </code></pre>
  
  <p>but its blocking all the connection, what should be the firewall rule to have such a scenario. </p>