K
K
Konstantin Malyarov2017-07-27 11:05:14
VPN
Konstantin Malyarov, 2017-07-27 11:05:14

How to make the site display if VPN is enabled, otherwise it's a stub?

There is a site on laravel, access to which you want to restrict, so that when you enter it, it asks you to turn on VPN, and when VPN is turned on, it redirects to root. How to implement? If it's not clear, please ask.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander, 2017-07-27
@NeiroNx

I think you can just make 2 different sites and bind them to different IPs, respectively, with a VPN, the name server should give the desired IP - the names are also better different, the DNS cache is a nasty thing. One site like a stub - you can even do it in HTML with a couple of pictures

A
Alexander Aksentiev, 2017-07-27
@Sanasol

did not understand what it means

redirect to root

well, vpn - checking IP, how else

A
Antony, 2017-07-27
@RiseOfDeath

Obviously, by IP - if the IP is not from the VPN's subnet - you send it wherever you want. There is probably no other way.
And how exactly to do this - I believe that through .htaccess or by the forces of the "site itself" look at the IP

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question