I do not want my complete site to be blocked in a country, instead I want to block some countries or IPs from accessing some pages on site.
If someone can just give me a push in the right direction that would be great.
I do not want my complete site to be blocked in a country, instead I want to block some countries or IPs from accessing some pages on site.
If someone can just give me a push in the right direction that would be great.
Copyright © 2021 Jogjafile Inc.
You did not specify the language you are using, but you can either use a local IP to country database or query an API and reject the visitor if its country code matches your block list :