Staging-Bereich Schutz auf Basis von IP ... was ist, wenn mein Kunde eine dynamische IP hat?

StackOverflow https://stackoverflow.com/questions/3765600

  •  04-10-2019
  •  | 
  •  

Frage

Ich versuche, für eine bevorstehende Website online einen Staging-Bereich zu setzen ... Ich würde in der Regel eher eine .htaccess Regel verwenden, nur, damit ich und meine Klienten auf der Website zu sehen ... ich denke, ist sicherer und Sie nicht Notwendigkeit rememebr Passwörter und so ...

aber mein Klient diesmal hat einen Internet-Provider, der ihm eine statische IP geben tut, aparently jeden Tag oder so, seine IP-chamges ... also ich meine .htaccess haben sich ändern!

gibt es eine Lösung für das?

War es hilfreich?

Lösung

You could have him use a dynamic DNS service like dyndns.com or no-ip.com. That way he can setup a domain name like someguy.dyndns.com which would always resolve to his ip (he'll probably need to install a small daemon/service/program to automatically update the IP though). Then you can add a rule into your .htaccess like allow from someguy.dyndns.com.

Andere Tipps

First of all, dynamic IPs are very common, a lot of providers disconnect the client in intervals of 12 or 24 hours, which usually means they get a new IP assigned.

Second, just giving out a username / password combination not only seems safer, but also more hassle-free. You are about to invest time into a solution that's probably not worth it. I also don't see how you would obtain the valid IP address of the client to update your .htaccess file, apart from having the client install a service that updates a dynamic DNS entry mayb - more of a hassle than remembering a login, if you ask me.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top