You can do this by changing DNS servers in your router. OpenDNS provides the following recursive nameserver addresses as part of their FamilyShield parental controls which block pornography, proxy servers, and phishing sites:
- 208.67.222.222
- 208.67.220.220
Alternatively you can register an account at OpenDNS and configure what kind of traffic you would like to block.