How to use js to do a redirect for certain ip?
How to use js to determine the ip address and do a redirect? For an American ip redirect should not be.
asked July 2nd 19 at 18:18
You can make an ajax request to the server. Server lopatic headers and sends the IP (or the old transition).
If it is not possible to use htaccess, then AJAX'om send request to a PHP script and doing whatever you want.