Home  >  Article  >  CMS Tutorial  >  How to block domestic users in WordPress

How to block domestic users in WordPress

藏色散人
藏色散人Original
2019-07-15 10:44:564231browse

How to block domestic users in WordPress

How does WordPress block domestic users

Some foreign trade companies will choose to block domestic IPs from accessing their own foreign trade websites. Possible reasons include: preventing domestic competitors from knowing their products, etc., because some domestic companies do engage in unhealthy competitive behavior of plagiarism. Also, if a foreign trade website uses Adwords for promotion, domestic user clicks will not only not generate orders, but will also increase Adwords advertising expenditures.

If we use the popular foreign CMS program WordPress to build a foreign trade website, we can block domestic IP access to our foreign trade website through simple settings. For example, today we will demonstrate blocking through a WordPress plug-in iQ Block Country Domestic IP access website.

First, we install the iQ Block Country plug-in in the backend of the WordPress website.

After the plug-in is installed, we will see the prompt: The MaxMind GeoIP database does not exist. Please download this file manually or if you wish to use the GeoIP API get an API key from…This is a prompt that we are missing IP Data file, click the link in the second line to download the IP data file, and then upload the file to the uploads folder in the wp-content of the website via FTP transfer.

How to block domestic users in WordPress

The second step is to set specific blocking information.

Click on the Home menu of the plug-in. We set the specific display of blocking here. The default setting is: Forbidden – Visitors from your country are not permitted to browse this site. The default setting is: Forbidden – Visitors from your country are not permitted to browse this site. You can keep it. By default, you can also set the corresponding login page or website jump by yourself.

How to block domestic users in WordPress

Click the Frontend menu of the plug-in to set the specific country IP address to be blocked. We can select China in the Select the countries that should be blocked from visiting your frontend menu.

How to block domestic users in WordPress

The website blocks Chinese IP access, how do we view (set up) the website ourselves?

To block domestic IP, we can choose to check Do not block visitors that are logged in from visiting frontend website in the second step of the settings, so that we can view (set up) the website by logging in to the backend.

In addition, this operation can only block normal domestic access. It cannot be blocked if someone browses the website by circumventing the wall.

For more WordPress technical articles, please visit the WordPress Tutorial column!

The above is the detailed content of How to block domestic users in WordPress. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn