Firefox Browser Add-ons
  • Extensions
  • Themes
    • for Firefox
    • Dictionaries & Language Packs
    • Other Browser Sites
    • Add-ons for Android
Log in
Preview of GeoLock

GeoLock by MaZy

Per-page request firewall with geoip, geosite, domain/URL regex, and IP range rules

Available on Firefox for Android™Available on Firefox for Android™
5 (1 review)5 (1 review)
Download Firefox and get the extension
Download file

Extension Metadata

Screenshots
About this extension
GeoLock is a Firefox extension that gives you fine-grained control over sub-resource requests on a per-page basis.

For every request initiated by a webpage, GeoLock evaluates a configurable list of rules and decides whether to block or allow it. Rules can match on:

• geoip — country code from a v2fly-format database (resolved via DNS at runtime)
• geosite — domain category from a v2fly-format database
• domain — regular expression against the host
• url — regular expression against the full URL
• ip — CIDR (IPv4 or IPv6)
• logical combinators: AND, OR, NOT, with optional bidirectional matching

Rules pair a source matcher (the page initiating the request) with a destination matcher (what the page is loading); both must match for the rule to fire. Rules can be made bidirectional so the source and destination roles may be swapped. Isolate rules express a single set and fire when traffic crosses its boundary (when source XOR destination is in the set). A rule only fires when its conditions definitively match; rules abstain when the data needed to decide is missing, falling through to the next rule or the default action.

GeoIP/Geosite databases are not bundled. You configure HTTPS URLs to v2fly-format .dat files and GeoLock fetches and caches them on a schedule of your choice.

No telemetry. No data leaves your browser except DNS lookups and the data-source URLs you configure.

Source: https://github.com/mazzz1y/geolock
Rated 5 by 1 reviewer
Log in to rate this extension
There are no ratings yet

Star rating saved

5
1
4
0
3
0
2
0
1
0
Read 1 review
Permissions and data

Required permissions:

  • Access browser activity during navigation

Optional permissions:

  • Access your data for all websites

Data collection:

  • The developer says this extension doesn't require data collection.
Learn more
More information
Add-on Links
  • Homepage
Version
2.0.1
Size
77.65 KB
Last updated
4 days ago (May 9, 2026)
Related Categories
  • Privacy & Security
License
MIT License
Version History
  • See all versions
Tags
  • anti tracker
  • content blocker
  • privacy
  • security
Add to collection
Report this add-on
Go to Mozilla's homepage

Add-ons

  • About
  • Firefox Add-ons Blog
  • Extension Workshop
  • Developer Hub
  • Developer Policies
  • Community Blog
  • Forum
  • Report a bug
  • Review Guide

Browsers

  • Desktop
  • Mobile
  • Enterprise

Products

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Privacy
  • Cookies
  • Legal

Except where otherwise noted, content on this site is licensed under the Creative Commons Attribution Share-Alike License v3.0 or any later version. Android is a trademark of Google LLC.