-1

I want to make certain page(php) appear only in certain country IP.

However, it is possible to designate a few IPs, but it is too cumbersome to specify all IP of certain country one by one.

Of course, I can get the client's IP with laravel or php, but I want to know ip's country.

By default my site can be accessed from all countries. However, I want to make a page that is visible only to IP of a certain country.

Is there anything better?

thanks in advance.

User8392
  • 113
  • 3
  • 13

1 Answers1

0

If you just only want to know the name of the country that associate with IP address then follow this link Get Country name from Ip and vice-versa

But I think the other solution is from the server side.

Sachin Kumar
  • 3,001
  • 1
  • 22
  • 47