final Set<String> referrers = new HashSet<String>();
try {
final Enumeration<NetworkInterface> ifaces = NetworkInterface.getNetworkInterfaces();
while(ifaces.hasMoreElements()){
final NetworkInterface iface = ifaces.nextElement();
logger.info("Adding Allowed referers for Interface:" + iface.getDisplayName());
final Enumeration<InetAddress> ias = iface.getInetAddresses();
while(ias.hasMoreElements()){
final InetAddress ia = ias.nextElement();
final String address = ia.getHostAddress().trim().toLowerCase();
if ( ia instanceof Inet4Address ) {
referrers.add("http://" + address + ":0");