需自行下载 .dat 文件并放入 v2ray/xray 的资源目录,仓库不提供安装脚本;规则依赖客户端配置中已定义 direct 和 block 出站标签;Sing-Box 和 Clash 需改用同作者的另外两个规则仓库

Iran-v2ray-rules
Chocolate4UGPL-3.0活跃维护内置伊朗域名、主打安全与广告拦截的 v2ray/xray 增强路由规则集,可过滤恶意与钓鱼站点并优化分流。
Enhanced v2ray/xray and v2ray/xray-clients routing rules with built-in Iranian domains and a focus on security and adblocking.
curl -LO https://raw.githubusercontent.com/Chocolate4U/Iran-v2ray-rules/release/geoip.dat
curl -LO https://raw.githubusercontent.com/Chocolate4U/Iran-v2ray-rules/release/geosite.datREADME 未说明
面向伊朗用户的 v2ray/xray 增强路由规则集,内置伊朗域名并兼顾安全与广告拦截
内置伊朗域名、主打安全与广告拦截的 v2ray/xray 增强路由规则集,可过滤恶意与钓鱼站点并优化分流。
核心能力
- 提供 geoip.dat 与 geosite.dat 两类路由数据文件
- 内置 geosite:ir 与 geoip:ir 伊朗域名和 IP 分流规则
- 附带 security.dat 与 security-ip.dat 拦截钓鱼和恶意软件
- 提供 lite 精简版数据文件减小体积
- 支持从 GitHub 或 jsDelivr CDN 两种方式下载
容易踩的坑
- 202611091318最新正式版2026-11-09 · 2026-11-09 13:19 UTC
- Updated on Monday 2026-11-09 13:18:13 UTC
- 2026110811292026-11-08 · 2026-11-08 11:30 UTC
查看更新说明
- Updated on Sunday 2026-11-08 11:29:04 UTC
- 2026110711172026-11-07 · 2026-11-07 11:18 UTC
查看更新说明
- Updated on Saturday 2026-11-07 11:17:04 UTC
- 2026110312172026-11-03 · 2026-11-03 12:18 UTC
查看更新说明
- Updated on Tuesday 2026-11-03 12:17:18 UTC
- 2026110111272026-11-01 · 2026-11-01 11:29 UTC
查看更新说明
- Updated on Sunday 2026-11-01 11:27:56 UTC
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
:writing_hand: Introduction
This is an Enhanced and All-in-One set of geo-location routing files optimized for Iranian users to use in v2ray/xray and all their compatible clients.
:bulb: For Sing-Box geolocation rules please refer to Iran Sing-Box Rules
:bulb: For Clash geolocation rules please refer to Iran Clash Rules
:arrow_down: How to download
From GitHub
geoip.dat
https://raw.githubusercontent.com/Chocolate4U/Iran-v2ray-rules/release/geoip.dat
geosite.dat
https://raw.githubusercontent.com/Chocolate4U/Iran-v2ray-rules/release/geosite.dat
geoip-lite.dat
https://raw.githubusercontent.com/Chocolate4U/Iran-v2ray-rules/release/geoip-lite.dat
geosite-lite.dat
https://raw.githubusercontent.com/Chocolate4U/Iran-v2ray-rules/release/geosite-lite.dat
security-ip.dat
https://raw.githubusercontent.com/Chocolate4U/Iran-v2ray-rules/release/security-ip.dat
security.dat
https://raw.githubusercontent.com/Chocolate4U/Iran-v2ray-rules/release/security.dat
From jsDelivr CDN
geoip.dat
https://cdn.jsdelivr.net/gh/chocolate4u/Iran-v2ray-rules@release/geoip.dat
geosite.dat
https://cdn.jsdelivr.net/gh/chocolate4u/Iran-v2ray-rules@release/geosite.dat
geoip-lite.dat
https://cdn.jsdelivr.net/gh/chocolate4u/Iran-v2ray-rules@release/geoip-lite.dat
geosite-lite.dat
https://cdn.jsdelivr.net/gh/chocolate4u/Iran-v2ray-rules@release/geosite-lite.dat
security-ip.dat
https://cdn.jsdelivr.net/gh/chocolate4u/Iran-v2ray-rules@release/security-ip.dat
security.dat
https://cdn.jsdelivr.net/gh/chocolate4u/Iran-v2ray-rules@release/security.dat
:computer: Usage
v2ray/xray core
Add the following to your v2ray/xray client configuration:
"outbounds": [
{
"tag": "direct",
"protocol": "freedom",
"settings": {}
},
{
"tag": "block",
"protocol": "blackhole",
"settings": {}
}
],
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"outboundTag": "block",
"domain": [
"geosite:category-ads-all",
"geosite:malware",
"geosite:phishing",
"geosite:cryptominers"
],
"type": "field"
},
{
"outboundTag": "block",
"ip": [
"geoip:malware",
"geoip:phishing"
],
"type": "field"
},
{
"outboundTag": "direct",
"domain": [
"geosite:ir"
],
"type": "field"
},
{
"outboundTag": "direct",
"ip": [
"geoip:ir",
"geoip:private"
],
"type": "field"
},
]
}
:page_with_curl: Categories
GeoIP
-
Contains IP Addresses of all countries from Maxmind and IP2Location databases.
-
geoip:ir
Contains Iran IP addresses from Maxmind and IP2Location databases, IP addresses of Iranian messengers such aseitaa,rubika, etc. and IP addresses ofarvancloud,derakcloud,iranserverandparspackCDNs. -
geoip:private
Contains a list of local (LAN) IP addresses. -
geoip:arvancloud
Contains the IP addresses of ArvanCloud.ir CDN. :information_source: Integrated ingeoip:irand no longer needed to be written as a separate rule. -
geoip:derakcloud
Contains the IP addresses of Derak.cloud CDN. :information_source: Integrated ingeoip:irand no longer needed to be written as a separate rule. -
geoip:iranserver
Contains the IP addresses of IranServer.com CDN. :information_source: Integrated ingeoip:irand no longer needed to be written as a separate rule. -
geoip:parspack
Contains the IP addresses of ParsPack.com CDN. :information_source: Integrated ingeoip:irand no longer needed to be written as a separate rule. -
geoip:cloudflare
Contains the IP addresses of Cloudflare CDN. -
geoip:cloudfront
Contains the IP addresses of Cloudfront CDN. -
geoip:fastly
Contains the IP addresses of Fastly CDN. -
geoip:gcore
Contains the IP addresses of G-Core CDN. -
geoip:google
Contains the IP addresses of Google, GoogleCloud and GoogleBot. -
geoip:amazon
Contains the IP addresses of Amazon and Amazon Web Services (AWS). -
geoip:microsoft
Contains the IP addresses of Microsoft and Azure Platform. -
geoip:netflix
Contains the IP addresses of Netflix. -
geoip:bing
Contains the IP addresses of Bing and Bingbot. -
geoip:github
Contains the IP addresses of GitHub. -
geoip:facebook
Contains the IP addresses of the Meta ecosystem, including Facebook, Instagram and WhatsApp. -
geoip:twitter
Contains the IP addresses of Twitter (now called X!). -
geoip:telegram
Contains the IP addresses of Telegram Messenger. -
geoip:oracle
Contains the IP addresses of Oracle Cloud. -
geoip:digitalocean
Contains the IP addresses of DigitalOcean-related services. -
geoip:linode
Contains the IP addresses of Linode-related services. -
geoip:openai
Contains the IP addresses of OpenAI and ChatGPT. -
geoip:tor
Contains the IP addresses of Tor exit nodes. -
geoip:phishing
Contains Phishing IP addresses. -
geoip:malware
Contains Active Malware IP addresses.
-
geoip:ir
Contains Iran IP addresses from Maxmind and IP2Location databases, IP addresses of Iranian messengers such aseitaa,rubika, etc. and IP addresses ofarvancloud,derakcloud,iranserverandparspackCDNs. -
geoip:private
Contains a list of local (LAN) IP addresses.
-
geoip:phishing
Contains Phishing IP addresses. -
geoip:malware
Contains Active Malware IP addresses.
-
geoip:arvancloud
Contains the IP addresses of ArvanCloud.ir CDN. -
geoip:derakcloud
Contains the IP addresses of Derak.cloud CDN. -
geoip:iranserver
Contains the IP addresses of IranServer.com CDN. -
geoip:parspack
Contains the IP addresses of ParsPack.com CDN. -
geoip:cloudflare
Contains the IP addresses of Cloudflare CDN. -
geoip:cloudfront
Contains the IP addresses of Cloudfront CDN. -
geoip:fastly
Contains the IP addresses of Fastly CDN. -
geoip:gcore
Contains the IP addresses of G-Core CDN. -
geoip:google
Contains the IP addresses of Google, GoogleCloud and GoogleBot. -
geoip:amazon
Contains the IP addresses of Amazon and Amazon Web Services (AWS). -
geoip:microsoft
Contains the IP addresses of Microsoft and Azure Platform. -
geoip:netflix
Contains the IP addresses of Netflix. -
geoip:bing
Contains the IP addresses of Bing and Bingbot. -
geoip:github
Contains the IP addresses of GitHub. -
geoip:facebook
Contains the IP addresses of the Meta ecosystem, including Facebook, Instagram and WhatsApp. -
geoip:twitter
Contains the IP addresses of Twitter (now called X!). -
geoip:telegram
Contains the IP addresses of Telegram Messenger. -
geoip:oracle
Contains the IP addresses of Oracle Cloud. -
geoip:digitalocean
Contains the IP addresses of DigitalOcean-related services. -
geoip:linode
Contains the IP addresses of Linode-related services. -
geoip:openai
Contains the IP addresses of OpenAI and ChatGPT. -
geoip:tor
Contains the IP addresses of Tor exit nodes.
Same as GeoIP but in Maxmind's MMDB format.
Same as GeoIP Lite but in Maxmind's MMDB format.
Same as Security-IP but in Maxmind's MMDB format.
same as GeoIP-Services but in Maxmind's MMDB format.
GeoSite
-
All categories from domain-list-community are supported, plus the following categories:
-
geosite:ir
Contains non-ir TLD Iranian domains (e.g..com.net.orgetc.) and rules to bypass all.irdomains. -
geosite:category-ir
Mirror ofgeosite:irwith inactive domains removed. All IR domains get checked every 24 hours for inactive domains. -
geosite:ads
Contains a list of Persian advertisement and tracking domains. -
geosite:category-ads-all
Contains a curated list of Persian and Foreign advertisement and tracking domains based on multiple sources. It is optimized to have as low as possible false positives while also retaining a small size and efficiency. -
geosite:malware
Contains a list of active malware domains. -
geosite:phishing
Contains a list of scam and phishing domains. -
geosite:cryptominers
Contains a list of cryptocurrency miners that run in the background of a web browser and affect system performance. -
geosite:social
Contains Domain Addresses of popular social media platforms, includingFacebook,Instagram,Whatsapp,Twitter,LinkedIn,MySpace,Pinterest,Tumblr,Reddit,TikTok,clubhouse. -
geosite:nsfwContains a list of porn and gambling websites. -
geosite:sanctionedContains a list of websites that sanctioned Iran.
-
geosite:ir
Contains non-ir TLD Iranian domains (e.g..com.net.orgetc.) and rules to bypass all.irdomains. -
geosite:category-ir
Mirror ofgeosite:irwith inactive domains removed. All IR domains get checked every 24 hours for inactive domains. -
geosite:ads
Contains a list of Persian advertisement and tracking domains.
-
geosite:category-ads-all
Contains a curated list of Persian and Foreign advertisement and tracking domains based on multiple sources. It is optimized to have as low as possible false positives while also retaining a small size and efficiency. -
geosite:malware
Contains a list of active malware domains. -
geosite:phishing
Contains a list of scam and phishing domains. -
geosite:cryptominers
Contains a list of cryptocurrency miners that run in the background of a web browser and affect system performance.
:information_desk_person: How is this made?
geoip.dat,geoip-lite.dat and Country.mmdb,Country-lite.mmdb are generated using source code from geoip repository by Loyalsoldier. Please refer to the mentioned repository for instructions on how to make custom geoip files.
geosite.dat,geosite-lite.dat is generated using source code from Domain list community. Please refer to the mentioned repository for instructions on how to make custom geosite files.
:handshake: Contribution
All contributions are welcome and appreciated. You can contribute to this project in 2 ways:
- Contribute to its upstream sources
Do you know a Domain that should be bypassed? report it to Iran Hosted Domains
Do you know a Persian advertisement domain that should be blocked or a false positive? report it to PersianBlocker
Do you know... OK, you got the idea! - Contribute directly to this project
Report issues, open pull requests, suggest new sources or categories or any idea, in general, to make this repository more useful for everyone.
:raising_hand_man: Also one more thing, if this repository was useful to you, kindly leave a :star: up there so this project can be seen by more people.
:copyright: License
This project, except for upstream sources, is licensed under the GNU GPLv3 License - see the LICENSE file for details.
All rights are reserved for All upstream sources used in this project according to their respective licenses. Please refer to Sources section for more details.
:package: Sources
GeoIP
| Source | Maintainer | Home Page | License | Category |
|---|---|---|---|---|
| GeoLite2 | MaxMind | Home Page | CC BY-SA 4.0 | Country IPs |
| IP2Location LITE | IP2Location | Home Page | CC BY-SA 4.0 | Country IPs |
| ITO GOV | ITO GOV | Home Page | N/A | ir(messenger IPs) |
| Arvan Cloud | Arvan Cloud | Home Page | All rights reserved | arvancloud |
| Derak Cloud | Derak Cloud | Home Page | All rights reserved | derakcloud |
| IranServer | IranServer | Home Page | All rights reserved | iranserver |
| ParsPack | ParsPack | Home Page | All rights reserved | parspack |
| Cloudflare | Cloudflare | Home Page | All rights reserved | cloudflare |
| Cloudfront | Cloudfront | Home Page | All rights reserved | cloudfront |
| Fastly | Fastly | Home Page | All rights reserved | fastly |
| G-Core | G-Core | Home Page | All rights reserved | gcore |
| Netflix | Netflix | Home Page | All rights reserved | netflix |
| Telegram | Telegram | Home Page | All rights reserved | telegram |
| Tor | Tor Project | Home Page | All rights reserved | tor |
| URLhaus | abuse.ch | Home Page | CC0 | malware |
| Phishing URL Blocklist | malware-filter Group | Home Page | MIT | phishing |
| IPRanges | lord-alfred | Home Page | CC0 1.0 | everything else |
GeoSite
| Source | Maintainer | Home Page | License | Category |
|---|---|---|---|---|
| Iran Hosted Domains | bootmortis | Home Page | MIT | ir |
| PersianBlocker | MasterKia | Home Page | AGPL-3.0 | ads |
| DNS Blocklists | Hagezi | Home Page | All rights reserved | ads |
| GoodbyeAds | jerryn70 | Home Page | MIT | ads |
| AdGuard DNS filter | Adguard Team | Home Page | GPL-3.0 | ads |
| URLhaus | abuse.ch | Home Page | CC0 | malware |
| Phishing URL Blocklist | malware-filter Group | Home Page | MIT | phishing |
| NoCoin adblock list | hoshsadiq | Home Page | MIT | cryptominers |
| Unified Hosts | StevenBlack | Home Page | MIT | social, nsfw |
| DynX-AntiBan-Domains | MrDevAnony | Home Page | MIT | sanctioned |
| ir-sanctioned-domain | filteryab | Home Page | All rights reserved | sanctioned |
| Domain list community | Domain list community | Home Page | MIT | everything else |
:warning: Disclaimer
This repository is not affiliated, associated, authorized, endorsed by, or in any way officially connected to any of the aforementioned resources, websites, services, or any entity which this may concern, in any way.
The data in this repository is gathered from publicly available resources and is provided as-is, intended for informational purposes only with no guarantee of accuracy, liability or availability and We are not responsible for any harm or damage that may arise from using the data in this repository. Please do your research before using any data from this repository.
:pray: Special Thanks
- All maintainers that are mentioned in this project.
- Project V
- Project X
- Domain list community
- Loyalsoldier