There are two clash rule formats, text and yaml. text is preferred as it's faster to process by Clash and is supported in Clash Premium 1.15.0+ and clash.Meta 1.14.4+ . If you are using an older version of Clash/Clash.Meta, you should use yaml format.
ir.txt, ir.yaml
Contains non-ir TLD Iranian domains (e.g. .com.net.org etc.) and rules to bypass all .ir domains.
ir-lite.txt, ir-lite.yaml
Contains Active non-ir TLD Iranian domains (e.g. .com.net.org etc.) and rules to bypass all .ir domains.
ads.txt, ads.yaml
Contains a list of Persian advertisement and tracking domains.
category-ads-all.txt, category-ads-all.yaml
Contains a curated list of Persian and Foreign advertisement and tracking domains based on multiple sources. It is optimized to has as low as possible false positives while also retain small size and efficiency.
malware.txt, malware.yaml
Contains a list of active malware domains.
phishing.txt, phishing.yaml
Contains a list of scam and phishing domains.
cryptominers.txt, cryptominers.yaml
Contains a list of cryptocurrency miners that run in the background of a web browser and affect system performance.
social.txt,social.yaml
Contains Domain Addresses of popular social media platforms, including Facebook, Instagram, Whatsapp, Twitter, LinkedIn, MySpace, Pinterest, Tumblr, Reddit, TikTok, clubhouse.
nsfw.txt,nsfw.yaml
Contains a list of porn and gambling websites.
Currently there is a problem with "ClashMetaForAndroid" version 2.8.6 and above, in which it can't match Android package names thus - RULE-SET,apps,DIRECT is completely ineffective for now.
Source files are pulled from Iran V2Ray Rules and get converted to clash text and yaml format by a GitHub actions workflow. geoip.metadb and geoip-lite.metadb are generated from geoip.dat and geoip-lite.dat in Iran-v2ray-rules repository using source code from metacubex/geo.
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.
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.
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.