• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » How to Restrict Certain Posts or Categories In WordPress by Country

By Abhishek Ghosh June 6, 2023 7:51 pm Updated on June 6, 2023

How to Restrict Certain Posts or Categories In WordPress by Country

Advertisement

There are several reasons behind restricting certain posts or categories by country. If the post or page or category is not relevant to people in certain countries, you expect to see little or no traffic from those places or the text can confuse innocent people. In such cases, many website administrators decide to block countries in WordPress by IP, so that they can safeguard their visitors from harm. It also safeguards the website from malicious attempts or even from Governmental ban.

 

Use Some Plugin Can Block a Defined Country as a Security Feature

 

There was a great free WordPress plugin named Geo IP Block.

Unfortunately, it has not been updated and now stops working if you use PHP 8.x. If you are an older version of WordPress with PHP 7.x, then it will work (using an older version of WordPress not be suggested as may open security loopholes). However, it is very easy to block a category by using this plugin. Just visit the settings page, go to “Front-end target settings”, enable “Block by country”, set the matching rule as Matching rule, add the category you want to block, and add the country code you want to block. You can set custom text for the blocked visitors.

Advertisement

---

Restrict Certain Posts or Categories In WordPress by Country

Save the settings. The result will be like this when browsed from a blocked country:

Restrict Certain Posts or Categories In WordPress

It is great but the plugin does not work with the latest PHP as we have mentioned above. You need an alternative plugin or method which works.

iQ Block Country is a similar plugin:

Vim
1
https://wordpress.org/plugins/iq-block-country/

However, it does not work as IP Geo Block does. Next, you have three popular options – WordFence, GeoTargeting Lite and MalCare. All of these plugins are available on the WordPress Plugin repository. All of them will need the premium versions to get all the features.

So these are your options. I think with a limited budget, for testing purposes, you can use the old version of PHP and WordPress to get IP Geo Block plugin working.

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How to Restrict Certain Posts or Categories In WordPress by Country

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

  • OpenStack Swift & HPCloud CDN PHP Bindings : Basics

    Here is the basics of OpenStack Swift & HPCloud CDN PHP Bindings for the WordPress Plugin developers and those who works with PHP based CMS.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • What is a Digital-to-Analog Converter (DAC)September 25, 2023
  • Tips on S Pen Air ActionsSeptember 24, 2023
  • Market Segmentation in BriefSeptember 20, 2023
  • What is Booting?September 18, 2023
  • What is ncurses?September 16, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy