S
S
Shing2017-03-07 09:48:25
PHP
Shing, 2017-03-07 09:48:25

How to make the script work on geoip only for a specific city?

How to fasten it so that the script works by geoip only for a specific city?

<?php
{
echo json_encode('<script language="JavaScript"> 
window.location.href = "http://site.ru/"
</script>');
}

32497,"RU","66","Saint Petersburg"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Ivanov, 2017-03-07
@Hopkins777

Connect the library that has data on ip. write down the condition. If ip is so-and-so, then do that.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question