gpt4 book ai didi

linux - Squid 和点击验证

转载 作者:太空宇宙 更新时间:2023-11-04 03:44:15 26 4
gpt4 key购买 nike

我需要一个简单的解决方案...我很确定这是可能的,我只是不知道如何设置它。

我需要鱿鱼将所有用户重定向到一个简单的用户接受协议(protocol),然后再允许他们访问互联网。没有用户名和密码,他们要么接受协议(protocol)并获得允许的访问权限,要么不接受并获得权限被拒绝的页面。

我不想让任何事情变得复杂,如果可以的话让我们保持简单。

我已经评论过这个:http://wiki.squid-cache.org/ConfigExamples/Portal/Splash#Portal_Splash_Pages

但是我不太清楚......

提前致谢...

最佳答案

来自squid.conf文件中的auth_param部分:

Specify the command for the external authenticator. Such a program reads a line containing "username password" and replies "OK" or "ERR" in an endless loop. "ERR" responses may optionally be followed by a error description available as %m in the returned error page.

By default, the basic authentication scheme is not used unless a program is specified.

周围有很多例子。这个link有一个 PHP 中的自定义鱿鱼助手的示例。它可以轻松修改为具有用于同意用户名/密码身份验证的复选框。

关于linux - Squid 和点击验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28753231/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com