Re: [squid-users] deny_info URL not working

2024-05-11 Thread Dieter Bloms
Hello,

On Sat, May 11, Vilmondes Queiroz wrote:

> deny_info http://example.com !authorized_ips

does it works, if you add the http status code like:

deny_info 307:http://example.com !authorized_ips


-- 
Regards

  Dieter

--
I do not get viruses because I do not use MS software.
If you use Outlook then please do not put my email address in your
address-book so that WHEN you get a virus it won't use my address in the
>From field.
___
squid-users mailing list
squid-users@lists.squid-cache.org
https://lists.squid-cache.org/listinfo/squid-users


[squid-users] deny_info URL not working

2024-05-11 Thread Vilmondes Queiroz
Hello,

squid -v
Squid Cache: Version 6.6

What am I doing wrong here?

*squid.conf:*
external_acl_type ip_validator ttl=3600 negative_ttl=10 %SRC
/usr/bin/python3 /home/ubuntu/squid/authentication.py

acl authorized_ips external ip_validator

deny_info http://example.com !authorized_ips

http_access allow authorized_ips
http_access deny !authorized_ips
http_access deny all

I'm not getting redirected to the URL when squid refused the connection.

I can see in the access.log that the connection is getting rejected.

This is a fresh squid installation. The only changes I made to the conf
file are the above lines.

Appreciate your help!
___
squid-users mailing list
squid-users@lists.squid-cache.org
https://lists.squid-cache.org/listinfo/squid-users