I will try the "host != "some.url.com" part. For the isInNet() trick, the problem is that it inducts a DNS resolution call for every request to compare with the IP/mask parameters. I was thinking to myself that it was an useless overhead... Ionel -----Message d'origine----- De : Matus UHLAR - fantomas [mailto:uhlar@xxxxxxxxxxx] Envoyé : vendredi 6 juin 2008 17:07 À : squid-users@xxxxxxxxxxxxxxx Objet : Re: performances ... again On 06.06.08 14:37, Ionel GARDAIS wrote: > function FindProxyForURL(url,host) { > if ( > ( > !( > host.indexOf('www.ifp.fr') == 0 > || host.indexOf('validation.ifp.fr') == 0 > || host.indexOf('project.ifp.fr') == 0 > || host.indexOf('ogst.ifp.fr') == 0 > ) > ) wouldn't be easier to compare host with those strings? host != "www.ifp.fr" && host != "validation.ifp.fr" ... > || host.match('127.0.0.1') is using of isInNet(host, "127.0.0.0", "255.0.0.0") not working? -- Matus UHLAR - fantomas, uhlar@xxxxxxxxxxx ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. I just got lost in thought. It was unfamiliar territory.