How will this limit access to five sites, unless you build rules for all five sites?
You can use squid (proxy server)
maybe a better choice.
Webmin makes a module for it that you can highly configure it - also content filtering programs like squidguard and dansguardian work with squid to filter content - both also have webmin modules
www.webmin.com