Whitelist IP by visiting specially crafted pre-defined URL
Posted: 30 Dec 2014, 14:09
From time to time, I'll get myself locked out because I've made a typo in a password or something like that; latest case was making a typo on the cPanel port. Then I'm blocked until I figure out what I did, and have to wait.
Meanwhile, to prevent this, since it's my effing server, I whitelist my ISP-provided public IP address. Which occasionally changes. Which means every few months, I go into a panic thinking my server crashed only to figure out that my public IP changed again and I'm no longer whitelisted.
In the best case scenario, I have to wait a bit and connect to whitelist myself, although I never remember how long I have to wait for it, so I end up waiting a while, and meanwhile, I can't get any work done.
So my solution to the problem would be to have a setting somewhere so I could visit a URL I'd previously set up that would automatically whitelist my IP. Perhaps defining a custom port with a custom URL string like /whitelist/some-long-password-like-string-here on port, say, 14983. Something unused. Although the port idea isn't really necessary. Just almost thinking it might work as a limited two-factor style thing for idiots that wouldn't generate a strong enough password. (In my case, I'd use a 32-character randomly generated string that I saved along with my other important passwords).
Or if there's some other method of rescuing oneself once one is locked out, I'd love to know. But did a bit of searching and nothing turned up…
Meanwhile, to prevent this, since it's my effing server, I whitelist my ISP-provided public IP address. Which occasionally changes. Which means every few months, I go into a panic thinking my server crashed only to figure out that my public IP changed again and I'm no longer whitelisted.
In the best case scenario, I have to wait a bit and connect to whitelist myself, although I never remember how long I have to wait for it, so I end up waiting a while, and meanwhile, I can't get any work done.
So my solution to the problem would be to have a setting somewhere so I could visit a URL I'd previously set up that would automatically whitelist my IP. Perhaps defining a custom port with a custom URL string like /whitelist/some-long-password-like-string-here on port, say, 14983. Something unused. Although the port idea isn't really necessary. Just almost thinking it might work as a limited two-factor style thing for idiots that wouldn't generate a strong enough password. (In my case, I'd use a 32-character randomly generated string that I saved along with my other important passwords).
Or if there's some other method of rescuing oneself once one is locked out, I'd love to know. But did a bit of searching and nothing turned up…