Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $.ajax({
- url: 'https://ipapi.co/json/',
- dataType: 'json',
- async: false,
- success: function(data) {
- if(data.country_name.toUpperCase() != "INDIA")
- window.location.href = "/abc";
- }
- });
- </script>
Add Comment
Please, Sign In to add comment