Description
π Block or allow visitors by country. Track access attempts. View analytics. Stay in control β effortlessly.
π§ Description
Geo Blocker gives you full control over who can access your WordPress site β based on visitor country and IP. Whether you’re protecting content, reducing attack surface, or managing regional access, this plugin does it with precision and clarity.
π― Designed for performance, security, and ease of use.
π Built-in analytics and access logs.
π§ Never get locked out β admin-safe bypass included.
π Features
β Access Control That Makes Sense
- Block Selected Countries β deny access to specific regions
- Allow Selected Countries β restrict site only to approved countries
π§© Smart Blocking Actions
- π Show custom message
- π Redirect to a URL
- π« Send HTTP 403 Forbidden response
π Visual Country Selector
- Flag icons & search bar for quick targeting
- Filter by continent (Africa, Asia, Europe, etc.)
- One-click select/deselect all
π Analytics Dashboard
- Summary cards: total visits, blocks, IPs
- Hourly charts for real-time insights
- Filter by date range & data type (accesses, unique IPs, etc.)
π Detailed Logs
- See IP, country, URL, status, user agent
- Filters out common junk (favicon, robots.txt)
- Admin visits are auto-ignored to reduce noise
π οΈ Admin-Proof Bypass URL
- Special URL with bypass parameter to access login anytime
- Prevents accidental lockouts
π Data Export & Log Management
- Export logs in CSV or JSON
- Clear logs with a single click
- Sort & search logs in the UI
π External Services
This plugin uses a third-party API to determine the visitor’s country based on their IP address.
- Service used: IPWho.is
- Purpose: To perform IP geolocation and detect the country of each visitor, allowing the plugin to block or allow access accordingly.
- Data sent: The visitorβs IP address is sent to the IPWho.is API on page load when geo-blocking is active.
- Terms of Service: https://ipwhois.io/terms
- Privacy Policy: https://ipwhois.io/privacy
π₯οΈ Screenshots
- π Dashboard Overview β See country blocks, allowed hits & total attempts
- π§ Blocking Rules β Choose block mode, action type, and targets. Enable or disable countries visually
- π Analytics Graphs β View access by time, state, and IP 5. π Logs Table β Deep insights with full logs of visitor attempts. Export CSV/JSON logs with one click
π¦ Installation
- Upload the plugin folder to
/wp-content/plugins/geo-blocker
- Activate via Plugins Installed Plugins
- Go to Settings Geo Blocker
- Enable Geo Blocking using the toggle
- Choose between block or allow mode
- Select countries using the visual interface
- Pick your blocking action (message, redirect, or 403)
- Save settings β done!
β Frequently Asked Questions
How does Geo Blocker detect country?
It uses the reliable IpWhoIs API to fetch country data based on the visitorβs IP.
Will it slow down my site?
Nope. It’s optimized with transient caching and smart triggers β no unnecessary lookups.
Can I lock myself out?
No. There’s a login bypass URL generated for administrators β shown right on the dashboard.
Can I block specific pages?
Not yet β current version works site-wide. Per-page rules may come in a future update.
Can I export visitor logs?
Yes. Logs can be exported in CSV or JSON format directly from the Logs tab.
Does it work with caching plugins?
Yes, but you may need to exclude the plugin’s logic from caching. Dynamic geo checks should not be cached.
ποΈ Changelog
1.0.0
- π Initial release with all core features
π‘οΈ Additional Notes
Emergency Bypass
Every admin gets a custom bypass link to avoid accidental lockouts. Itβs always visible in the dashboard.
Blocking Actions
Choose the experience blocked users receive:
– Custom message
– Redirect to another URL
– Send 403 Forbidden header
Logs & Privacy
Logs are stored locally in your WordPress database. The plugin sends only the visitor’s IP to IPWho.is β no personally identifiable information is shared or stored externally.
π‘ Enjoying Geo Blocker? Try Our Other Free Plugins
Looking for even more control and peace of mind? Check out our other tools:
π Notification Blocker β Hide annoying plugin notices from your dashboard without hacking core files.
π‘οΈ Fortress Login Pro β Obscure your login page, add brute-force protection, and block unauthorized access attempts with ease.
If you like Geo Blocker, youβll probably find these just as helpful. Try them out!
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Geo Blocker β Control Site Access by Region and IP” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Geo Blocker β Control Site Access by Region and IP” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.