English 中文(简体)
Need a cool hotkey for my hidden website-login
原标题:

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.

最佳回答

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 ;)

问题回答

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.

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.





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签