I'm trying to modify my Apache configuration to restrict WHM and cPanel to pre-approved devices. The issue is that my home IP changes daily, so I can't restrict it by IP.
I could restrict it by user agent, like so:
# Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36
RewriteCond %{HTTP_USER_AGENT} ^Mozilla.+Windows NT 10\.0.+Chrome [NC]
but that's a bit loose; literally anyone using Windows 10 and Chrome would be approved.
I also considered writing a separate script that assigns a persistent cookie, but I'm really not sure how much I can rely on browsers to keep a persistent cookie anymore.
So before I go either of those routes, can you suggest any other criteria I might use to restrict it to a pre-approved device?