Are you talking inbound or outbound? Ie: Is your goal to stop your server from going to certain websites, or to stop certain IPs from hitting your server?
--
You received this message because you are subscribed to the Google Groups "CentOS Linux for System Administrators Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to centos-adm+...@googlegroups.com.
To post to this group, send email to cento...@googlegroups.com.
Visit this group at http://groups.google.com/group/centos-adm?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "CentOS Linux for System Administrators Discussion Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/centos-adm/gm7XCaZIvjA/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to centos-adm+...@googlegroups.com.
To post to this group, send email to cento...@googlegroups.com.
Visit this group at http://groups.google.com/group/centos-adm?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
You could create entries for each in the /etc/hosts file. Something like this:
127.0.0.1 www.facebook.com facebook.com
127.0.0.1 www.twitter.com twitter.com
You can put these all on the same line, but for visibility sake separating may be easier to manage. You can also point it to whatever IP you want. 127.0.0.1 will just hit the loopback which won’t make it very far.