Troubleshooting & FAQ
Most problems come from one of four things: the visitor's real IP is not being detected, a page cache is serving a stored copy, the MaxMind database is missing, or a rule is broader than you meant. Start with the Rule simulator (Tools). Enter an IP, a country and a path, and it shows exactly which rule decides the result.
I locked myself out
Open your secret bypass link (Security → Secret bypass links). It sets a cookie and lets you straight in.
Logged-in administrators are never blocked. If you are logged out and blocked, use WP-CLI to turn off blocking:
wp ygb settings set is_enabled 0. To lift a login lockout, runwp ygb unban <ip>.Last resort: rename the plugin folder over FTP. Your settings are kept and come back when you rename it again.
Everyone shows as the same country (or as my server's country)
The plugin is reading your proxy's IP instead of the visitor's. Open Settings → IP detection and choose your setup (Cloudflare, another CDN, or trusted proxy IPs). The dashboard shows a notice when it sees a forwarding header it does not trust yet. See IP Detection.
Blocking works when I'm logged in but not for visitors (or the other way round)
A page cache is serving a stored page. Turn on cache-safe mode under Page cache compatibility. Each visit then asks /wp-json/ygb/v1/check, so cached HTML is never trusted. Click Purge page cache once after you change rules. See Cache Compatibility.
"Database missing" or every country shows as unknown
Add a free MaxMind license key in the MaxMind GeoLite2 database card and run a sync.
If the sync fails, check that
wp-content/uploads/yeasin-geo-blocker/is writable and that your host allows outgoing HTTPS.VPN, hosting and ASN rules also need the ASN database. Turn on "Use the MaxMind ASN database" and sync again.
A rule doesn't do what I expected
Custom rules run first, from top to bottom, and the first match wins. Put specific rules above general ones.
Custom rules apply on every page, including the login page, even when general blocking only covers some pages.
Check Access logs. Every block, redirect and challenge records the reason.
Visitors see the challenge page again and again
A passed challenge sets the ygb_challenge cookie. If a cache or security plugin strips cookies, or the browser blocks them, the challenge repeats. Exclude that cookie from your cache rules. If you use Turnstile, check that the site key and secret key belong to this domain.
Geo pricing or geo content shows the wrong version
On cached pages, turn on cache-safe mode. The right version is then filled in by the browser after the check. Use the Rule simulator to confirm which country an IP resolves to.
License won't activate or updates don't show
Check in your dashboard that the key still has a free site slot. Deactivate an old site to free one.
Your server needs outgoing HTTPS to
yeasinwp.com. Some firewalls block it.From 2.0, the license key is sent in a request header, not the URL. Messages from the store are signed and checked, so a forged "deactivate" request is rejected. If your server clock is more than 5 minutes off, signed messages are rejected too, so keep the clock in sync.
Still stuck?
Use Export settings (Tools → Import / export), then contact support with the file and a short note about what you expected. Never post your license key in public.
Was this guide helpful?