需要一个很酷的热键来登录我的隐藏网站

发布于 2024-08-10 22:06:17 字数 573 浏览 7 评论 0原文

我正在开发一个CMS。日常使用它时最大的烦恼之一是,当你在前端页面,未登录,想要进行更改时,需要先去后端登录,登录,然后导航到您要更改的页面。

我想介绍一个智能小功能,当您按下某个组合键时,它会弹出登录屏幕。我已经用双 Ctrl 进行了设置。不过,我逐渐意识到,我如此频繁地按下该键,以至于弹出了不需要的登录信息,这当然是不应该发生的。

所以,我想请教一下您关于巧妙组合键的想法。

我正在寻找的组合键是:

  • 优雅且易于记忆(这就是我非常喜欢双Ctrl的原因)
  • 时间考虑(按X键,1秒后按Y键)是可能的
  • 不能映射到任何浏览器功能课程。我意识到这不能 100% 排除,但显然,Ctrl+A 或 Alt+Tab 是行不通的。
  • 适用于所有键盘(包括 Mac,但我愿意使用苹果特殊键)
  • 极不可能被意外击中
  • 其他聪明的想法(例如简单的鼠标手势)也受到欢迎。

可以说,这会降低安全性,因为后端登录的 URL 在前端页面中可用,并且由于模糊而失去了额外的保护。我稍后可能会使用识别 CMS 用户计算机的 cookie 来解决这个问题,但这不是现在的问题。

I am developing a CMS. One of the greatest everyday annoyances when working with it is that when you are on a front-end page, not logged in, and want to make a change, you need to go to the back-end login first, log in, and then navigate to the page you want to change.

I would like to introduce a smart little function that pops up a log-in screen when you hit a certain key combination. I have already set this up with double Ctrl. I have come to realize, though, that I hit that key so frequently that the login pops up unwanted, something that must not happen of course.

So, I am asking for your ideas for a clever key combination.

I am looking for a key combination that is:

  • Elegant and easy to memorize (this is why I liked double Ctrl very much)
  • Time considerations (Press key X, then Y after 1 second) are possible
  • Must not be mapped to any browser function of course. I realize this cannot be excluded 100% but obviously, Ctrl+A or Alt+Tab would be nonstarters.
  • Works on all keyboards (Mac included, but I'm willing to handle the apple special keys)
  • Extremely unlikely to be hit accidentally
  • Other clever ideas like simple mouse gestures are also welcome.

It can be argued that this poses a decrease in security, as the URL to the back-end login is made available in front-end pages and loses the additional protection by being obscure. I may address that later using a cookie that identifies CMS users' machines but it is not the issue right now.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

知你几分 2024-08-17 22:06:17

哦,您只知道您必须使用 Konami 代码

有几个网站实现了它 - 请查看此列表

我知道这不是最简单的,但它确实具有极客因素;)

Oh you just KNOW you have to go for the Konami Code!

There are several websites that implement it - take a look at this list.

I know it's not the simplest, but it does have the geek factor ;)

夜司空 2024-08-17 22:06:17

为什么不在页面底部有一个“编辑登录”链接呢?

它的安全性不会降低,而且使用起来会容易得多。我可以看到您尝试使用的解决方案会导致各种奇怪的问题......

如果您真的希望它“隐藏”,您可以将其设置为白色背景上的白色文本或其他内容。

Why not just have a "Editor Login" link at the bottom of the page?

It won't be any less secure and will be a lot easier to use. I can see the solution you are trying to use causing all kinds of odd problems down the road...

If you really really want it "hidden", you can just make it white text on a white background or something.

意犹 2024-08-17 22:06:17

键盘左上角的简单`键怎么样?这通常在游戏中用于进入控制台模式(Counter Strike、Left 4 Dead 等)。它与 mac/windows/linux 兼容,不会干扰浏览器中的任何内容。

What about the simple ` key at the top left corner of your keyboard? This is often used in games to get into a console mode (counter strike, left 4 dead, etc). It is mac/windows/linux compatible and shouldn't interfere with anything in the browser.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文