BLACK FRIDAY
Save 59% on PageForge Annual $191/year $485/year
Claim 59% Off →
OWS IP & Country Block icon
Actively maintained Tested up to 7.0.7

OWS IP & Country Block

OWS IP & Country Block is a powerful WordPress plugin that allows you to block users based on their IP addresses and countries. This plugin helps enhance your website security by preventing access from unwanted sources.

Active installs<10New
Downloads · 30d66▲ +22.2% vs prev. 30d
Rating—0 reviews
Health score55/100Fair
All-time downloads192Since Jul 2026
Support resolved—No recent threads
RequiresWP 5.0PHP 7.4+
Downloads · 7d16• 0% week over week
Our verdict

Use with caution

OWS IP & Country Block works, but test it on a staging site before relying on it in 2026. Was last updated 2 months ago, and scores 55/100 on our health check.

  • Small user base (<10 active installs)
  • Very few reviews so far

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

71523Jul 10Aug 23Oct 6
Yesterday2
Daily average (1y)2
Peak day31Jul 27, 2026
Last 12 months193

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where OWS IP & Country Block stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
access-control >100 7,032 Best access-control plugins →
country blocking >100 567 Best country blocking plugins →
firewall >100 1,006 Best firewall plugins →
IP-blocking >100 1,162 Best IP-blocking plugins →
security >100 10,000 Best security plugins →

About OWS IP & Country Block

From the official readme · v1.1.0

Description

OWS IP & Country Block is a powerful WordPress plugin that allows you to block users based on their IP addresses and countries. This plugin helps enhance your website security by preventing access from unwanted sources.

Key Features:

  • IP Address Blocking: Block specific IP addresses or IP ranges using CIDR notation
  • Country-based Blocking: Block entire countries from accessing your website
  • IP Whitelist: Create a whitelist of IP addresses that should never be blocked
  • Customizable Block Message: Set a custom message to display to blocked users
  • Access Logging: Keep track of blocked access attempts with detailed logs
  • Easy Administration: Simple and intuitive admin interface
  • Performance Optimized: Lightweight and fast with minimal impact on site performance

Use Cases:

  • Prevent spam and malicious attacks from specific countries
  • Block competitors from accessing your content
  • Comply with legal requirements for geo-blocking
  • Enhance security by blocking known malicious IP ranges
  • Control access during maintenance or testing

Security Features:

  • All user inputs are properly sanitized and validated
  • Uses WordPress nonces for form security
  • Follows WordPress coding standards and best practices
  • Compatible with caching plugins and CDNs

External Services

This plugin connects to ip-api.com to determine the country of a visitor’s IP address. This lookup only occurs when country blocking is enabled and the visitor’s country is not already cached.

  • Data sent: The visitor’s IP address.
  • When: On each frontend page load when country blocking is active and no cached result exists for that IP.
  • Service provider: ip-api.com
  • Terms of Service: https://ip-api.com/docs/legal
  • Privacy Policy: https://ip-api.com/docs/legal

Privacy Policy

This plugin stores IP addresses and country information for blocked access attempts in your WordPress database. This data is used solely for security purposes and is not shared with third parties. The plugin may make requests to free GeoIP services to determine visitor countries.

Support

For support, feature requests, or bug reports, please visit the plugin’s GitHub repository or contact the developer.

Credits

This plugin uses the IP-API service for country detection. Special thanks to the WordPress community for their coding standards and best practices.

Installation

  1. Upload the plugin files to the /wp-content/plugins/ip-and-country-block directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings->IP & Country Block screen to configure the plugin
  4. Add IP addresses or select countries you want to block
  5. Enable the blocking features and save your settings

Frequently asked questions

How do I block an entire country?

Go to Settings -> IP & Country Block, enable “Country Blocking”, select the countries you want to block from the dropdown list, and save your settings.

Can I block IP ranges?

Yes, you can block IP ranges using CIDR notation. For example, to block the range 192.168.1.0 to 192.168.1.255, enter “192.168.1.0/24”.

Will this plugin slow down my website?

No, the plugin is designed to be lightweight and efficient. It only performs checks on the frontend and uses caching to minimize database queries for country lookups.

Can I whitelist certain IP addresses?

Yes, you can add IP addresses to the whitelist that will never be blocked, even if they match other blocking rules.

Does this work with CDNs like Cloudflare?

Yes. If your site is behind Cloudflare or another reverse proxy/CDN, go to the plugin settings and choose the matching option under “Trusted Proxy Header” so the plugin reads the visitor’s real IP from the header your proxy sets. This is not enabled by default, because trusting these headers on a site that is not actually behind that proxy would let visitors fake their IP address and bypass blocking.

Why isn’t IP blocking working behind my CDN?

By default the plugin only trusts your web server’s own connection info (REMOTE_ADDR), which is safe but on CDN/proxied sites is the proxy’s IP, not the visitor’s. Go to Settings -> IP & Country Block and set “Trusted Proxy Header” to match your CDN/proxy (for example, Cloudflare) so the real visitor IP is used.

Can I see who has been blocked?

The plugin logs all blocked access attempts in the database, including IP address, country, timestamp, and reason for blocking.

Will this block search engines?

The plugin only blocks frontend access. Admin users and search engine bots that access your site properly should not be affected. However, be careful when blocking countries where major search engines operate.

Changelog

Important security fix: IP detection no longer trusts spoofable client headers by default. If your site is behind Cloudflare or another reverse proxy, set the new "Trusted Proxy Header" option after upgrading or IP-based blocking may use the proxy's IP instead of the visitor's.

1.1.0

  • Security: IP detection no longer trusts client-supplied headers (X-Forwarded-For, Client-IP, etc.) by default, which previously allowed spoofing to bypass blocks. A new “Trusted Proxy Header” setting lets you opt in to a specific header only if your site genuinely sits behind that proxy/CDN.
  • Fix: CIDR matching now supports IPv6 ranges in addition to IPv4.
  • Fix: uninstall routine now correctly drops the plugin’s log table (previous query used an invalid placeholder for the table name).

1.0.0

  • Initial release
  • IP address blocking with CIDR support
  • Country-based blocking
  • IP whitelist functionality
  • Access logging
  • Customizable block messages
  • Admin interface

Full changelog on WordPress.org →

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best OWS IP & Country Block alternatives

All access-control plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 PublishPress Capabilities: User Role Access Control, Admin Area Permissions PublishPress Capabilities: User Role Access Control, Admin… User role editing for WordPress. Manage user roles, control capabilities and permissions… by PublishPress 100K+ ★★★★★★★★★★ 4.7 (143) 2 weeks ago 95
2 Restrict User Access – Ultimate Membership & Content Protection Restrict User Access Create Access Levels and restrict any post, page, category, etc. Supports bbPress… by Joachim Jensen 10K+ ★★★★★★★★★★ 4.3 (94) 1 month ago 72
3 PublishPress Permissions: Access Control, Content Permissions, User Access PublishPress Permissions: Access Control, Content Permissio… The permissions plugin for posts, pages, categories, tags and more. You can control… by PublishPress 10K+ ★★★★★★★★★★ 4.3 (66) 2 weeks ago 91
4 Groups – Memberships and Access Control Groups – Memberships and Access Control Turn your site into a powerful membership solution. Manage members, teams and access to… by itthinx 10K+ ★★★★★★★★★★ 4.8 (382) 2 weeks ago 93
5 SureMembers – Membership & Content Restriction Plugin SureMembers – Membership & Content Restriction Plugin Protect your content, build memberships, and control who sees what on your WordPress site… by Brainstorm Force 2K+ ★★★★★★★★★★ 5 (2) 4 weeks ago 67
6 Quick Download Button Quick Download Button Add stylish download buttons to any post or page — 7 styles, countdown, popup modal, access… by sidocode 2K+ ★★★★★★★★★★ 4.6 (12) 5 months ago 59
7 SimpleShop SimpleShop The SimpleShop WP plugin connects your WordPress website with a SimpleShop account and… by Redbit s.r.o. 1K+ ★★★★★★★★★★ No reviews 1 month ago 66
8 Menu By User Roles Menu By User Roles Menu By User Roles allows you to control the visibility of menu items based on user roles. by kahnu044 1K+ ★★★★★★★★★★ 5 (3) 1 year ago 43
9 Groups 404 Redirect Groups 404 Redirect Redirect 404's when a visitor tries to access a page protected by Groups. by itthinx 1K+ ★★★★★★★★★★ 4.6 (10) 2 weeks ago 80
10 Geo Blocker – Control Site Access by Region and IP Geo Blocker – Control Site Access by Region and IP 🔐 Block or allow visitors by country. Track access attempts. View analytics. Stay in… by Mohamed Shili 1K+ ★★★★★★★★★★ 5 (1) 1 year ago 32

FAQ

OWS IP & Country Block: quick answers

Straight answers, pulled from live WordPress.org data.

Live data from WordPress.org · checked Oct 7, 2026

Is OWS IP & Country Block free?

Yes. OWS IP & Country Block is free to download and use from the official WordPress.org plugin directory.

Is OWS IP & Country Block safe to use in 2026?

OWS IP & Country Block works, but test it on a staging site before relying on it in 2026. Was last updated 2 months ago, and scores 55/100 on our health check.

How many websites use OWS IP & Country Block?

OWS IP & Country Block is active on <10 WordPress websites and has been downloaded 192 times since it launched in July 2026. It was downloaded 66 times in the last 30 days.

Does OWS IP & Country Block work with WordPress 7.1?

OWS IP & Country Block is officially tested up to WordPress 7.0.7, while the latest release is 7.1.3. It may still work, but try it on a staging site first.

What PHP version does OWS IP & Country Block need?

OWS IP & Country Block requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was OWS IP & Country Block last updated?

The latest version, 1.1.0, was released on July 27, 2026 (2 months ago).

Who makes OWS IP & Country Block?

OWS IP & Country Block is developed and maintained by Abu Nawim.

What are the best alternatives to OWS IP & Country Block?

The most popular alternatives to OWS IP & Country Block are PublishPress Capabilities:… (100K+ installs), Restrict User Access (10K+ installs) and PublishPress Permissions: A… (10K+ installs).

Powered by PageForge

Want thousands of pages that rank like these? Build them in an afternoon.

This directory runs on the same engine as PageForge. Turn any spreadsheet, CSV or API into thousands of fast, SEO-ready WordPress pages — with schema, internal links and AI-written copy baked in.

  • CSV, Google Sheets & API data sources
  • AI content, schema & internal links per page
  • Works with Elementor, Gutenberg, Yoast & Rank Math
  • Free on WordPress.org — no credit card
Sarah is here to help!
Hi there! 👋 Need help finding what you're looking for?
Sarah
Sarah
Online & Ready to Help
Hi there! 👋 Need help finding what you're looking for?

We'll use this to continue our conversation

Just now ✓ Verified

Join 500+ SEO Pros Scaling Their Strategy

Get exclusive programmatic SEO tactics, AI content workflows, and the latest PageForge updates delivered straight to your inbox. Stay ahead of the algorithm.

We care about your data in our privacy policy.