自动验证htaccess(401)用户名密码登录 [英] Auto authenticate a htaccess (401) username password login

查看:159
本文介绍了自动验证htaccess(401)用户名密码登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网页,每5分钟刷新一次客户详细信息。我已经通过基本和标准的htaccess和htpassword文件类型登录系统添加了用户名密码,因为该文件的一部分包含公司数据。

I have a webpage which refreshes every 5 minutes with client details. I have added a username password to it through the basic and standard htaccess and a htpassword file type login system it since part of the file contains company data.

但我需要这个在我的工作PC上打开的同一个网页是一个安全的PC连接到显示屏以显示它。

But I need this same webpage to be opened at my work PC which is a secured PC connected to a display screen to display same.

在断电或互联网断开时,PC有一个具有此网页快捷方式的启动文件,因此它会自动显示但是从401授权登录表单停止。所以直到我填写详细信息都没有。

On a power cut or a internet disconnection the PC has a startup file with a shortcut to this webpage so it appears automatically BUT stops from the 401 Authorization login form. So no go until I fill the details.

有没有办法可以保存带有php或javascript或jquery代码的文件,以便它可以输入用户名密码并打开网页(甚至作为iframe)?

Is there a way I can keep a file with a php or a javascript or jquery code so it can feed the username password to that and open the webpage (even as a iframe)?

无需担心文件的安全性 - PC被锁在一个只有一小部分的机柜中通风孔和显示器电缆出来到显示器和另一个小孔到达电源按钮。

No need to worry about the safety of the file - the PC is locked in a cabinet with only a small set of holes for ventilation and for the display cable coming out to the monitor and another small hole to reach the power button.

如果你知道在Android上这样做让我知道还有。

If you know to do this on android let me know as well.

找到答案!!请参阅下面的帖子!

推荐答案


更新:此答案可能不会在较新的浏览器中工作时间较长。

因为网络钓鱼人在URL中使用@和:标记来隐藏网址。对于像 www.facebook.com:somelongtext@www.notfacebook.com 这样的URL中的
示例,
用户将监督@ notfacebook.com部分并输入登录详细信息到钓鱼网页没有注意到后者。所以现在要么这个方法不起作用,要么
要么你会看到一个警告说这个URL可能是一个网络钓鱼站点。因此,即使它是一个私人网页,只有你可以访问它,浏览器将尝试其保护机制。

Because phishing people use @ and : marks in URL to hide URLs. For example in a URL like www.facebook.com:somelongtext@www.notfacebook.com user will oversee @notfacebook.com part and enter login details to a phishing webpage without noticing the latter. So now either this method will not simply work or either you will see a warning saying this URL maybe a phishing site. So even if it's a private webpage where only you have access to it browser will try its protective mechanisms.

找到答案!

可以从URL本身传递它!

Can pass it from the URL itself!

http:// username:password@www.yourdomain.com

以及网址的内容之后也会被隐藏起来
我也知道全球兼容!

and the content of the url gets hidden after as well Also global compatible as I know!

这篇关于自动验证htaccess(401)用户名密码登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆