How to block traffic

If I want to block traffic from a particular IP - it seems there is 3 ways to do it

1) .htaccess

2) hosts.deny

3) Kernel level firewall rules.

What are the advantages disadvantages to each method - which one should one chose?

 

 

 

 

Top