How to hide some pages from visitors from a specific country?

[ad_1]

i built my site with elementor pro, i upload some PDF files in products page with ACF for visitors to download.

now, i don’t like to share those files with some visitors from specific countries. maybe i could hide the download element or i would hide the whole product page from them.

i have tried some plugins like IP2Location country blocker, but it will block my whole site from them. now i know IP2Location tags maybe useful, as i blank at HTML or PHP, so i don’t know how to reach that.

Please, if there any plugin or any way with elementor can reach that let me try.

[ad_2]
1 Comment
  1. I’m sure you can do this with Cloudflare firewall rule. Doing it directly inside WordPress should also be possible, but I have no idea how.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer