Reputation: 7128
How can i limit my website visitors to only one country in laravel?
Only one country users (ip's) can visit my website rest of the world can't.
What is the best approach for this?
Upvotes: 1
Views: 3315
Reputation: 168
You can use this package: GeoIp
I suggest you could write your logic using the package inside a middleware, and wrap all your routes with it.
Upvotes: 2