├── .github └── workflows │ └── generate.yml ├── .gitignore ├── LICENSE ├── README.md ├── contribute.md ├── generate.py ├── generate_rule.py ├── generated ├── .gitkeep ├── parser.yaml ├── quantumultx-domesticsocial.list ├── quantumultx.list ├── rule-provider-direct.yaml ├── rule-provider-proxy.yaml ├── rule-provider-reject.yaml ├── rule-provider.yaml ├── rule-set-direct.list ├── rule-set-proxy.list ├── rule-set-reject.list └── surge.list ├── parser-header.yaml ├── requirements.txt ├── rules.yaml └── rules ├── Lofter.yaml ├── MIUI.yaml ├── NGA.yaml ├── QQ音乐.yaml ├── Soul.yaml ├── TapTap.yaml ├── 其乐论坛.yaml ├── 哔哩哔哩.yaml ├── 国家反诈中心.yaml ├── 头条.yaml ├── 完美世界电竞App.yaml ├── 小米社区.yaml ├── 小红书.yaml ├── 小黑盒.yaml ├── 微信.yaml ├── 微博.yaml ├── 快手.yaml ├── 懂球帝.yaml ├── 抖音.yaml ├── 文叔叔.yaml ├── 斗鱼.yaml ├── 百度贴吧.yaml ├── 知乎.yaml ├── 米游社.yaml ├── 网易云音乐.yaml ├── 网易大神.yaml ├── 虎牙.yaml ├── 西瓜视频.yaml ├── 豆瓣.yaml ├── 起点App.yaml └── 酷安.yaml /.github/workflows/generate.yml: -------------------------------------------------------------------------------- 1 | name: 自动生成配置文件 2 | 3 | on: 4 | push: 5 | branches: [master, main] 6 | 7 | jobs: 8 | build: 9 | runs-on: ubuntu-latest 10 | steps: 11 | - uses: actions/checkout@v3 12 | with: 13 | persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token. 14 | fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. 15 | - name: 自动生成配置文件 16 | run: | 17 | pip3 install -r requirements.txt 18 | python3 generate.py 19 | python3 generate_rule.py 20 | - name: 提交更改 21 | run: | 22 | git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" 23 | git config --local user.name "github-actions[bot]" 24 | git add . 25 | git commit -m "自动生成配置文件" -a 26 | - name: 推送更改 27 | uses: ad-m/github-push-action@master 28 | with: 29 | github_token: ${{ secrets.GITHUB_TOKEN }} 30 | branch: ${{ github.ref }} -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | *$py.class 5 | 6 | # C extensions 7 | *.so 8 | 9 | # Distribution / packaging 10 | .Python 11 | build/ 12 | develop-eggs/ 13 | dist/ 14 | downloads/ 15 | eggs/ 16 | .eggs/ 17 | lib/ 18 | lib64/ 19 | parts/ 20 | sdist/ 21 | var/ 22 | wheels/ 23 | share/python-wheels/ 24 | *.egg-info/ 25 | .installed.cfg 26 | *.egg 27 | MANIFEST 28 | 29 | # PyInstaller 30 | # Usually these files are written by a python script from a template 31 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 32 | *.manifest 33 | *.spec 34 | 35 | # Installer logs 36 | pip-log.txt 37 | pip-delete-this-directory.txt 38 | 39 | # Unit test / coverage reports 40 | htmlcov/ 41 | .tox/ 42 | .nox/ 43 | .coverage 44 | .coverage.* 45 | .cache 46 | nosetests.xml 47 | coverage.xml 48 | *.cover 49 | *.py,cover 50 | .hypothesis/ 51 | .pytest_cache/ 52 | cover/ 53 | 54 | # Translations 55 | *.mo 56 | *.pot 57 | 58 | # Django stuff: 59 | *.log 60 | local_settings.py 61 | db.sqlite3 62 | db.sqlite3-journal 63 | 64 | # Flask stuff: 65 | instance/ 66 | .webassets-cache 67 | 68 | # Scrapy stuff: 69 | .scrapy 70 | 71 | # Sphinx documentation 72 | docs/_build/ 73 | 74 | # PyBuilder 75 | .pybuilder/ 76 | target/ 77 | 78 | # Jupyter Notebook 79 | .ipynb_checkpoints 80 | 81 | # IPython 82 | profile_default/ 83 | ipython_config.py 84 | 85 | # pyenv 86 | # For a library or package, you might want to ignore these files since the code is 87 | # intended to run in multiple environments; otherwise, check them in: 88 | # .python-version 89 | 90 | # pipenv 91 | # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. 92 | # However, in case of collaboration, if having platform-specific dependencies or dependencies 93 | # having no cross-platform support, pipenv may install dependencies that don't work, or not 94 | # install all needed dependencies. 95 | #Pipfile.lock 96 | 97 | # poetry 98 | # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. 99 | # This is especially recommended for binary packages to ensure reproducibility, and is more 100 | # commonly ignored for libraries. 101 | # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control 102 | #poetry.lock 103 | 104 | # pdm 105 | # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. 106 | #pdm.lock 107 | # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it 108 | # in version control. 109 | # https://pdm.fming.dev/#use-with-ide 110 | .pdm.toml 111 | 112 | # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm 113 | __pypackages__/ 114 | 115 | # Celery stuff 116 | celerybeat-schedule 117 | celerybeat.pid 118 | 119 | # SageMath parsed files 120 | *.sage.py 121 | 122 | # Environments 123 | .env 124 | .venv 125 | env/ 126 | venv/ 127 | ENV/ 128 | env.bak/ 129 | venv.bak/ 130 | 131 | # Spyder project settings 132 | .spyderproject 133 | .spyproject 134 | 135 | # Rope project settings 136 | .ropeproject 137 | 138 | # mkdocs documentation 139 | /site 140 | 141 | # mypy 142 | .mypy_cache/ 143 | .dmypy.json 144 | dmypy.json 145 | 146 | # Pyre type checker 147 | .pyre/ 148 | 149 | # pytype static type analyzer 150 | .pytype/ 151 | 152 | # Cython debug symbols 153 | cython_debug/ 154 | 155 | # PyCharm 156 | # JetBrains specific template is maintained in a separate JetBrains.gitignore that can 157 | # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore 158 | # and can be added to the global gitignore or merged into this file. For a more nuclear 159 | # option (not recommended) you can uncomment the following to ignore the entire idea folder. 160 | #.idea/ -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # anti-ip-attribution 2 | 3 | 针对部分网站显示 IP 归属地的流量分流规则 4 | 5 | 项目作者无法保证配置文件一定能起到作用,有可能会触发账号风控。 6 | 7 | ## 使用之前 8 | 9 | 请在使用前详细阅读`rules.yaml`内容,内部注释包含部分可选规则,请酌情参考。 10 | 11 | 强烈建议 Fork 自己的一份配置文件,不要直接使用最新的。 12 | 13 | ## 自动生成的配置文件 14 | 15 | | 文件 | 用途 | 16 | | :--------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------: | 17 | | ~~[parser.yaml](generated/parser.yaml)~~ | ~~适用于 Clash for Windows 的配置文件预处理功能,详见https://docs.cfw.lbyczf.com/contents/parser.html~~ | 18 | | [rule-provider.yaml](generated/rule-provider.yaml) | 适用于 Clash 的 Rule Provider 功能,详见https://lancellc.gitbook.io/clash/clash-config-file/rule-provider | 19 | | [rule-provider-direct.yaml](generated/rule-provider-direct.yaml) | 仅包含 DIRECT 规则,适用于 Clash 的 Rule Provider 功能,详见https://lancellc.gitbook.io/clash/clash-config-file/rule-provider | 20 | | [rule-provider-proxy.yaml](generated/rule-provider-proxy.yaml) | 仅包含需要代理的规则,适用于 Clash 的 Rule Provider 功能,详见https://lancellc.gitbook.io/clash/clash-config-file/rule-provider | 21 | | [rule-provider-reject.yaml](generated/rule-provider-reject.yaml) | 仅包含 REJECT 规则,适用于 Clash 的 Rule Provider 功能,详见https://lancellc.gitbook.io/clash/clash-config-file/rule-provider | 22 | | [surge.list](generated/surge.list) | Surge 分流规则 | 23 | | [quantumultx.list](generated/quantumultx.list) | QuantumultX 分流规则 | 24 | | [quantumultx-domesticsocial.list](generated/quantumultx-domesticsocial.list) | QuantumultX 分流规则,策略组名称为 DomesticSocial | 25 | 26 | ## 关于 Clash for Windows 27 | 28 | Clash for Windows 已于 2023.11.2 (UTC+8) 删库,将不再积极支持`parser.yaml`(适用于 Clash for Windows 的配置文件预处理功能)。 29 | 30 | 如有需要,您仍可通过 [Internet Archive 的镜像](https://web.archive.org/web/20231030023222/https://github.com/Fndroid/clash_for_windows_pkg/releases)下载 Clash for Windows。若无此类特殊需求,您也可将使用的 Clash GUI 替换为[clash-verge-rev](https://github.com/clash-verge-rev/clash-verge-rev)。 31 | 32 | ## 关于自动生成 33 | 34 | 本仓库使用 GitHub Actions 从`rules.yaml`中生成配置文件,详见`generate.py`。 35 | 36 | ## PR & 贡献 37 | 38 | 仓库所有者和开发者的能力不能保证持续、高效维护地此仓库。如若发现改进或更好的方案,欢迎 PR。 39 | 40 | 只需要修改`rules.yaml`,其余配置文件会自动生成。 41 | 42 | 如果您对项目改进有兴趣,欢迎 Email 联系我获取 Collaborator 权限。 43 | 44 | ## 使用提示 45 | 46 | 不建议使用手机客户端访问这些网站,应用可能会包含难以寻找的 API 地址获取信息。 47 | 48 | ## 免责声明 49 | 50 | 本项目仅用于学习交流,请在遵守所在地法律法规的前提下使用。 51 | 52 | 本项目记录的 API 域名地址信息可以被任何人通过开发人员工具获取,没有经过逆向工程或网络攻击,不构成入侵计算机系统。 53 | 54 | 请不要在中华人民共和国境内使用此项目。 55 | 56 | ## Star History 57 | 58 | [![Star History Chart](https://api.star-history.com/svg?repos=SunsetMkt/anti-ip-attribution&type=Date)](https://star-history.com/#SunsetMkt/anti-ip-attribution&Date) 59 | -------------------------------------------------------------------------------- /contribute.md: -------------------------------------------------------------------------------- 1 | # 关于贡献 2 | 任何来自issue的改进均需要使用Co-authored-by注明意见提供者,格式如下: 3 | 4 | ``` 5 | Co-authored-by: Sunset <26019675+SunsetMkt@users.noreply.github.com> 6 | ``` 7 | 8 | 用户ID可使用API获取:https://api.github.com/users/SunsetMkt 9 | -------------------------------------------------------------------------------- /generate.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # 针对部分网站显示IP归属地的分流规则 3 | # anti-ip-attribution generate.py 4 | # https://github.com/SunsetMkt/anti-ip-attribution 5 | # 从rules.yaml生成配置文件,由Actions调用。 6 | # 读取文件: 7 | # rules.yaml 配置文件 8 | # parser-header.yaml parser.yaml的生成模板 9 | # 输出文件: 10 | # parser.yaml 适用于Clash for Windows的配置文件预处理功能,详见https://docs.cfw.lbyczf.com/contents/parser.html 11 | # rule-provider.yaml 适用于Clash的Rule Provider功能,详见https://lancellc.gitbook.io/clash/clash-config-file/rule-provider 12 | # rule-provider-direct.yaml rule-provider-proxy.yaml rule-provider-reject.yaml 13 | # surge.list Surge分流规则 14 | # quantumultx.list QuantumultX分流规则 15 | # quantumultx-domesticsocial.list QuantumultX分流规则,策略组名称为DomesticSocial 16 | import copy 17 | import os 18 | import sys 19 | 20 | import git 21 | import yaml 22 | 23 | 24 | def read_yaml(file): 25 | '''读取YAML文件''' 26 | with open(file, 'r', encoding='utf-8') as f: 27 | return yaml.safe_load(f) 28 | 29 | 30 | def save_yaml(config, filename): 31 | '''保存YAML文件''' 32 | with open(filename, 'w', encoding='utf-8') as f: 33 | yaml.dump(config, f, default_flow_style=False) 34 | 35 | 36 | def get_yaml_string(config): 37 | '''获取YAML字符串''' 38 | return yaml.dump(config, default_flow_style=False) 39 | 40 | 41 | def save_string(string, filename): 42 | '''保存字符串''' 43 | with open(filename, 'w', encoding='utf-8') as f: 44 | f.write(string) 45 | 46 | 47 | def get_git_hash(): 48 | '''获取Git提交''' 49 | repo = git.Repo(search_parent_directories=True) 50 | sha = repo.head.object.hexsha 51 | return str(sha) 52 | 53 | 54 | def get_head_comment(config, filename='', description=''): 55 | '''获取头部注释''' 56 | comment = '' 57 | comment += '# ' + config['config']['description'] + '\n' 58 | comment += '# ' + config['config']['name'] + ' ' + \ 59 | filename + ' ' + config['config']['version'] + \ 60 | ' ' + get_git_hash() + '\n' 61 | comment += '# ' + config['config']['url'] + '\n' 62 | comment += '# ' + description + '\n' 63 | return comment 64 | 65 | 66 | def seprate_comma(string): 67 | '''分割字符串''' 68 | return string.split(',') 69 | 70 | def yaml_list(rules): 71 | '''yaml写法转list写法''' 72 | ret=[] 73 | for rule in rules: 74 | seprated = seprate_comma(rule) 75 | # if rule.startswith('IP-CIDR'): 76 | # # 'IP-CIDR,203.107.1.0/24,REJECT,no-resolve' 77 | # del seprated[2] 78 | # else: 79 | # # 'DOMAIN-SUFFIX,zijieapi.com,DIRECT' 80 | # seprated.pop() 81 | del seprated[2] 82 | ret.append(','.join(seprated)) 83 | return ret 84 | 85 | def get_list_string(list): 86 | return '\n'.join(list) 87 | 88 | def check_rules(config): 89 | '''检查规则是否有误''' 90 | rules = config['config']['rules'] 91 | # 预期中可用的规则方法 92 | expected_methods = ['DOMAIN', 'DOMAIN-SUFFIX', 93 | 'DOMAIN-KEYWORD', 'IP-CIDR', 'GEOIP', 'DST-PORT', 'IP-CIDR6'] 94 | # 容易出错的规则方法 95 | questioned_methods = ['SRC-IP-CIDR', 96 | 'SRC-PORT', 'RULE-SET', 'MATCH', 'IP6-CIDR'] 97 | # 预期中可用的规则部分 98 | expected_rules = ['DIRECT', 'REJECT', 'no-resolve'] 99 | # rules中不需要出现IP类关键词,生成脚本会按需自动添加 100 | should_not_appear_rules = ['IP', 'IP归属地'] 101 | for rule in rules: 102 | rule = rule.strip() 103 | print(rule) 104 | # 检查空行 105 | if rule == '': 106 | print('规则空行') 107 | return False 108 | else: 109 | print('非空行') 110 | # 检查逗号分隔 111 | length = len(seprate_comma(rule)) 112 | print('length: ' + str(length)) 113 | if length == 1: 114 | print('规则不完整?没有逗号分隔?:' + rule) 115 | return False 116 | elif length == 2: 117 | pass 118 | elif length == 3: 119 | pass 120 | else: 121 | print('规则有误?逗号分隔超过三个部分:' + rule) 122 | return False 123 | # 检查规则方法 124 | method = seprate_comma(rule)[0] 125 | print('method: ' + method) 126 | if method not in expected_methods and method not in questioned_methods: 127 | print('规则方法有误?:' + rule) 128 | return False 129 | if method.upper() in questioned_methods: 130 | print('规则方法有误?' + method + '可能是常见错误:' + rule) 131 | return False 132 | if method not in expected_methods and method.upper() in expected_methods: 133 | print('规则方法未大写?:' + rule) 134 | return False 135 | # 检查规则部分 136 | if length == 3: 137 | print('length == 3') 138 | this_rule = seprate_comma(rule)[2] 139 | print('rule: ' + this_rule) 140 | if this_rule not in expected_rules: 141 | print('规则有误?' + this_rule + '是预期之外的规则:' + rule) 142 | return False 143 | for should_not_appear_rule in should_not_appear_rules: 144 | if should_not_appear_rule in this_rule.upper(): 145 | print('规则有误?rules中不需要出现“IP归属地”类规则描述:' + rule) 146 | return False 147 | return True 148 | 149 | 150 | def generate_parser(config): 151 | '''生成parser.yaml''' 152 | head = read_yaml('parser-header.yaml') 153 | print(head) 154 | comment = get_head_comment( 155 | config, 'parser.yaml', '适用于Clash for Windows的配置文件预处理功能,详见https://docs.cfw.lbyczf.com/contents/parser.html') 156 | rules = [] 157 | for rule in config['config']['rules']: 158 | rule = rule.strip() 159 | if len(seprate_comma(rule)) == 2: 160 | rules.append(rule+',IP归属地') 161 | else: 162 | rules.append(rule) 163 | head['parsers'][0]['yaml']['prepend-rules'] = rules 164 | output = get_yaml_string(head) 165 | output = comment + output 166 | save_string(output, os.path.join('generated', 'parser.yaml')) 167 | 168 | 169 | def generate_rule_provider(config): 170 | '''生成rule-provider.yaml''' 171 | comment = get_head_comment( 172 | config, 'rule-provider.yaml', '适用于Clash的Rule Provider功能,详见https://lancellc.gitbook.io/clash/clash-config-file/rule-provider') 173 | # 为了不影响其他软件规则的生成,使用深拷贝 174 | rules = copy.deepcopy(config['config']['rules']) 175 | 176 | # 检查 IP rules 有无 `no-resolve` 字段,没有的话加上, 防止 DNS 泄漏 177 | for i in range(len(rules)): 178 | if rules[i].startswith('IP-CIDR') and 'no-resolve' not in rules[i]: 179 | rules[i] = rules[i] + ',no-resolve' 180 | 181 | # https://github.com/SunsetMkt/anti-ip-attribution/issues/23#issuecomment-1223931835 182 | direct = [] 183 | proxy = [] 184 | reject = [] 185 | for rule in rules: 186 | 187 | if 'REJECT' in rule: 188 | reject.append(rule) 189 | elif 'DIRECT' in rule: 190 | direct.append(rule) 191 | else: 192 | proxy.append(rule) 193 | 194 | # Summary of rules 195 | print('生成rule-provider.yaml') 196 | output = {} 197 | output['payload'] = rules 198 | output = comment + get_yaml_string(output) 199 | save_string(output, os.path.join('generated', 'rule-provider.yaml')) 200 | 201 | # Direct rules list 202 | print('生成rule-set-direct.list') 203 | comment = get_head_comment(config, 'rule-set-direct.list', 204 | '适用于Clash RULE-SET') 205 | output = yaml_list(direct) 206 | output = comment + get_list_string(output) 207 | save_string(output, os.path.join('generated', 'rule-set-direct.list')) 208 | 209 | # Proxy rules list 210 | print('生成rule-set-proxy.list') 211 | comment = get_head_comment(config, 'rule-set-proxy.list', 212 | '适用于Clash RULE-SET') 213 | output = proxy 214 | output = comment + get_list_string(output) 215 | save_string(output, os.path.join('generated', 'rule-set-proxy.list')) 216 | 217 | # Reject rules list 218 | print('生成rule-set-reject.list') 219 | comment = get_head_comment(config, 'rule-set-reject.list', 220 | '适用于Clash RULE-SET') 221 | output = yaml_list(reject) 222 | output = comment + get_list_string(output) 223 | save_string(output, os.path.join('generated', 'rule-set-reject.list')) 224 | # Direct rules 225 | print('生成rule-provider-direct.yaml') 226 | comment = get_head_comment(config, 'rule-provider-direct.yaml', 227 | '适用于Clash的Rule Provider功能,详见https://lancellc.gitbook.io/clash/clash-config-file/rule-provider') 228 | output = {} 229 | output['payload'] = direct 230 | output = comment + get_yaml_string(output) 231 | save_string(output, os.path.join('generated', 'rule-provider-direct.yaml')) 232 | # Proxy rules 233 | print('生成rule-provider-proxy.yaml') 234 | comment = get_head_comment(config, 'rule-provider-proxy.yaml', 235 | '适用于Clash的Rule Provider功能,详见https://lancellc.gitbook.io/clash/clash-config-file/rule-provider') 236 | output = {} 237 | output['payload'] = proxy 238 | output = comment + get_yaml_string(output) 239 | save_string(output, os.path.join('generated', 'rule-provider-proxy.yaml')) 240 | # Reject rules 241 | print('生成rule-provider-reject.yaml') 242 | comment = get_head_comment(config, 'rule-provider-reject.yaml', 243 | '适用于Clash的Rule Provider功能,详见https://lancellc.gitbook.io/clash/clash-config-file/rule-provider') 244 | output = {} 245 | output['payload'] = reject 246 | output = comment + get_yaml_string(output) 247 | save_string(output, os.path.join('generated', 'rule-provider-reject.yaml')) 248 | 249 | 250 | def generate_surge(config): 251 | '''生成surge.list''' 252 | comment = get_head_comment( 253 | config, 'surge.list', 'Surge分流规则') 254 | 255 | # 为了不影响其他软件规则的生成,使用深拷贝 256 | rules = copy.deepcopy(config["config"]["rules"]) 257 | 258 | # 检查 IP rules 有无 `no-resolve` 字段,没有的话加上, 防止 DNS 泄漏 259 | for i in range(len(rules)): 260 | if rules[i].startswith("IP-CIDR") and "no-resolve" not in rules[i]: 261 | rules[i] = rules[i] + ",no-resolve" 262 | 263 | gen_rules = '' 264 | 265 | for rule in rules: 266 | gen_rules += rule + '\n' 267 | output = comment + gen_rules 268 | save_string(output, os.path.join('generated', 'surge.list')) 269 | 270 | 271 | def generate_quantumultx(config): 272 | '''生成quantumultx.list''' 273 | comment = get_head_comment( 274 | config, 'quantumultx.list', 'QuantumultX分流规则') 275 | commentDomesticSocial = get_head_comment( 276 | config, 'quantumultx-domesticsocial.list', 'QuantumultX分流规则,策略组名称为DomesticSocial') 277 | rules = '' 278 | rulesDomesticSocial = '' 279 | for rule in config['config']['rules']: 280 | rule = rule.strip() 281 | # Quantumult X 中, IP-CIDR6 的相关规则名称为 IP6-CIDR, 无法识别前缀为 IP-CIDR6 的规则. 282 | # https://github.com/KooriMoe 283 | if "IP-CIDR6" in seprate_comma(rule)[0]: # 仅处理出现在第一个位置的规则 284 | rule = rule.replace('IP-CIDR6', 'IP6-CIDR', 285 | 1) # 替换第一个 IP-CIDR6 字符串 286 | print('针对Quantumult X替换IP-CIDR6为IP6-CIDR:' + rule) 287 | if len(seprate_comma(rule)) == 2: 288 | rules += rule + ',IP\n' 289 | rulesDomesticSocial += rule + ',DomesticSocial\n' 290 | else: 291 | rules += rule + '\n' 292 | rulesDomesticSocial += rule + '\n' 293 | output = comment + rules 294 | outputDomesticSocial = commentDomesticSocial + rulesDomesticSocial 295 | save_string(output, os.path.join('generated', 'quantumultx.list')) 296 | save_string(outputDomesticSocial, os.path.join( 297 | 'generated', 'quantumultx-domesticsocial.list')) 298 | 299 | 300 | if __name__ == '__main__': 301 | config = read_yaml('rules.yaml') 302 | print(get_head_comment(config, 'generate.py', '配置文件生成脚本')) 303 | print('=====================') 304 | print('开始生成配置文件...') 305 | print('=====================') 306 | print(config) 307 | print('=====================') 308 | print('检查规则是否有误...') 309 | if check_rules(config): 310 | print('规则检查通过!') 311 | print('=====================') 312 | print('生成parser.yaml...') 313 | generate_parser(config) 314 | print('=====================') 315 | print('生成rule-provider.yaml...') 316 | generate_rule_provider(config) 317 | print('=====================') 318 | print('生成surge.list...') 319 | generate_surge(config) 320 | print('=====================') 321 | print('生成quantumultx.list...') 322 | generate_quantumultx(config) 323 | print('=====================') 324 | print('生成配置文件完成!') 325 | else: 326 | print('规则检查未通过!') 327 | print('=====================') 328 | print('请检查规则是否有误!') 329 | print('生成配置文件失败!') 330 | sys.exit(1) 331 | -------------------------------------------------------------------------------- /generate_rule.py: -------------------------------------------------------------------------------- 1 | import os 2 | import re 3 | 4 | # 读取文件 5 | with open("./rules.yaml", "r") as file: 6 | rules = file.read() 7 | 8 | # 创建文件夹 9 | os.makedirs("./rules", exist_ok=True) 10 | 11 | # 正则 12 | regex = r"# ======= (.*?) ======= #" 13 | result = re.split(regex, rules) 14 | 15 | # 拆分 yaml文件 16 | for i in range(1, len(result), 2): 17 | ruleName = result[i] 18 | ruleContent = result[i + 1] 19 | 20 | # 创建对应名称的文件 21 | filePath = f"./rules/{ruleName}.yaml" 22 | 23 | # 添加原始文件内容 24 | splitYAML = f"{result[0]}\n# ======= {ruleName} ======= #\n{ruleContent}" 25 | 26 | # 写入文件 27 | with open(filePath, "w") as file: 28 | file.write(splitYAML) 29 | -------------------------------------------------------------------------------- /generated/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunsetMkt/anti-ip-attribution/ee68726c47bd74709cba6089acc95a4d7e163d4b/generated/.gitkeep -------------------------------------------------------------------------------- /generated/parser.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution parser.yaml v0.3.1 24db48a4973b31d718703136cfcc2b3621171f36 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 适用于Clash for Windows的配置文件预处理功能,详见https://docs.cfw.lbyczf.com/contents/parser.html 5 | parsers: 6 | - url: https://example.com/profile.yaml 7 | yaml: 8 | prepend-proxy-groups: 9 | - name: "IP\u5F52\u5C5E\u5730" 10 | proxies: 11 | - "\U0001F530 \u9009\u62E9\u8282\u70B9" 12 | - DIRECT 13 | type: select 14 | prepend-rules: 15 | - DOMAIN,httpdns.bilivideo.com,REJECT 16 | - IP-CIDR,47.101.175.206/32,REJECT 17 | - IP-CIDR,47.100.123.169/32,REJECT 18 | - IP-CIDR,120.46.169.234/32,REJECT 19 | - IP-CIDR,121.36.72.124/32,REJECT 20 | - IP-CIDR,116.63.10.135/32,REJECT 21 | - IP-CIDR,122.9.7.134/32,REJECT 22 | - IP-CIDR,117.185.228.108/32,REJECT 23 | - IP-CIDR,117.144.238.29/32,REJECT 24 | - IP-CIDR,122.9.13.79/32,REJECT 25 | - IP-CIDR,122.9.15.129/32,REJECT 26 | - IP-CIDR,101.91.140.224/32,REJECT 27 | - IP-CIDR,101.91.140.124/32,REJECT 28 | - IP-CIDR,114.116.215.110/32,REJECT 29 | - IP-CIDR,116.63.10.31/32,REJECT 30 | - IP-CIDR,112.64.218.119/32,REJECT 31 | - IP-CIDR,112.65.200.117/32,REJECT 32 | - "DOMAIN-SUFFIX,biliapi.net,IP\u5F52\u5C5E\u5730" 33 | - "DOMAIN-SUFFIX,biliapi.com,IP\u5F52\u5C5E\u5730" 34 | - "DOMAIN-SUFFIX,bilibili.com,IP\u5F52\u5C5E\u5730" 35 | - "IP-CIDR,203.107.1.0/24,IP\u5F52\u5C5E\u5730" 36 | - DOMAIN-SUFFIX,bilivideo.com,DIRECT 37 | - DOMAIN-SUFFIX,akamaized.net,DIRECT 38 | - DOMAIN-SUFFIX,hdslb.com,DIRECT 39 | - DOMAIN-SUFFIX,szbdyd.com,DIRECT 40 | - "DOMAIN-SUFFIX,weibo.cn,IP\u5F52\u5C5E\u5730" 41 | - "DOMAIN-SUFFIX,weibo.com,IP\u5F52\u5C5E\u5730" 42 | - "DOMAIN-SUFFIX,weibocdn.com,IP\u5F52\u5C5E\u5730" 43 | - "DOMAIN-SUFFIX,wbimg.cn,IP\u5F52\u5C5E\u5730" 44 | - "DOMAIN-SUFFIX,wbimg.com,IP\u5F52\u5C5E\u5730" 45 | - "DOMAIN-SUFFIX,sinaimg.cn,IP\u5F52\u5C5E\u5730" 46 | - "DOMAIN-KEYWORD,weibo,IP\u5F52\u5C5E\u5730" 47 | - "DOMAIN,tieba.baidu.com,IP\u5F52\u5C5E\u5730" 48 | - "DOMAIN,tbmsg.baidu.com,IP\u5F52\u5C5E\u5730" 49 | - "DOMAIN,tb5.bdstatic.com,IP\u5F52\u5C5E\u5730" 50 | - "DOMAIN,fclog.baidu.com,IP\u5F52\u5C5E\u5730" 51 | - "DOMAIN,gsp0.baidu.com,IP\u5F52\u5C5E\u5730" 52 | - "DOMAIN,hm.baidu.com,IP\u5F52\u5C5E\u5730" 53 | - "DOMAIN,www.baidu.com,IP\u5F52\u5C5E\u5730" 54 | - "DOMAIN,tiebac.baidu.com,IP\u5F52\u5C5E\u5730" 55 | - "IP-CIDR,180.76.76.0/24,IP\u5F52\u5C5E\u5730" 56 | - "DOMAIN,httpsdns.baidu.com,IP\u5F52\u5C5E\u5730" 57 | - "DOMAIN,c.tieba.baidu.com,IP\u5F52\u5C5E\u5730" 58 | - "DOMAIN,httpdns.baidu.com,IP\u5F52\u5C5E\u5730" 59 | - "DOMAIN,httpdns.baidubce.com,IP\u5F52\u5C5E\u5730" 60 | - "DOMAIN,szshort.weixin.qq.com,IP\u5F52\u5C5E\u5730" 61 | - "DOMAIN,szextshort.weixin.qq.com,IP\u5F52\u5C5E\u5730" 62 | - "DOMAIN,szminorshort.weixin.qq.com,IP\u5F52\u5C5E\u5730" 63 | - "DOMAIN,mp.weixin.qq.com,IP\u5F52\u5C5E\u5730" 64 | - "DOMAIN-SUFFIX,zhihu.com,IP\u5F52\u5C5E\u5730" 65 | - "IP-CIDR,103.41.167.0/24,IP\u5F52\u5C5E\u5730" 66 | - IP-CIDR,118.89.204.198/23,REJECT 67 | - IP-CIDR6,2402:4e00:1200:ed00:0:9089:6dac:96b6/40,REJECT 68 | - "DOMAIN-KEYWORD,core-c-lq,IP\u5F52\u5C5E\u5730" 69 | - "DOMAIN-KEYWORD,core-lq,IP\u5F52\u5C5E\u5730" 70 | - "DOMAIN-KEYWORD,normal-c-lq,IP\u5F52\u5C5E\u5730" 71 | - "DOMAIN-KEYWORD,normal-lq,IP\u5F52\u5C5E\u5730" 72 | - "DOMAIN-KEYWORD,search-quic-lq,IP\u5F52\u5C5E\u5730" 73 | - "DOMAIN-KEYWORD,search-lq,IP\u5F52\u5C5E\u5730" 74 | - DOMAIN-SUFFIX,zijieapi.com,DIRECT 75 | - DOMAIN-SUFFIX,ecombdapi.com,DIRECT 76 | - "DOMAIN-KEYWORD,-normal-hl,IP\u5F52\u5C5E\u5730" 77 | - "DOMAIN-KEYWORD,-normal-c-hl,IP\u5F52\u5C5E\u5730" 78 | - "DOMAIN-KEYWORD,-core-c-hl,IP\u5F52\u5C5E\u5730" 79 | - "DOMAIN-KEYWORD,-normal-lf,IP\u5F52\u5C5E\u5730" 80 | - "DOMAIN-KEYWORD,-normal-c-lf,IP\u5F52\u5C5E\u5730" 81 | - "DOMAIN-KEYWORD,-core-c-lf,IP\u5F52\u5C5E\u5730" 82 | - "DOMAIN,sso.douyin.com,IP\u5F52\u5C5E\u5730" 83 | - "DOMAIN,www.douyin.com,IP\u5F52\u5C5E\u5730" 84 | - "DOMAIN-SUFFIX,snssdk.com,IP\u5F52\u5C5E\u5730" 85 | - "DOMAIN-SUFFIX,toutiaoapi.com,IP\u5F52\u5C5E\u5730" 86 | - "DOMAIN-SUFFIX,gifshow.com,IP\u5F52\u5C5E\u5730" 87 | - "DOMAIN-SUFFIX,ksapisrv.com,IP\u5F52\u5C5E\u5730" 88 | - "DOMAIN-SUFFIX,xiaohongshu.com,IP\u5F52\u5C5E\u5730" 89 | - "DOMAIN-KEYWORD,xiaohongshu,IP\u5F52\u5C5E\u5730" 90 | - "IP-CIDR,114.55.236.88/32,IP\u5F52\u5C5E\u5730" 91 | - "IP-CIDR,47.97.64.97/32,IP\u5F52\u5C5E\u5730" 92 | - "IP-CIDR,47.97.66.48/32,IP\u5F52\u5C5E\u5730" 93 | - "IP-CIDR,81.69.116.86/32,IP\u5F52\u5C5E\u5730" 94 | - "IP-CIDR,119.45.249.52/32,IP\u5F52\u5C5E\u5730" 95 | - "IP-CIDR,81.69.116.87/32,IP\u5F52\u5C5E\u5730" 96 | - "IP-CIDR,119.45.2.92/32,IP\u5F52\u5C5E\u5730" 97 | - "IP-CIDR,1.13.12.27/32,IP\u5F52\u5C5E\u5730" 98 | - "IP-CIDR,81.69.116.102/32,IP\u5F52\u5C5E\u5730" 99 | - "IP-CIDR,43.159.25.122/32,IP\u5F52\u5C5E\u5730" 100 | - "IP-CIDR,43.159.25.28/32,IP\u5F52\u5C5E\u5730" 101 | - "IP-CIDR,47.246.29.223/32,IP\u5F52\u5C5E\u5730" 102 | - "IP-CIDR,47.246.29.226/32,IP\u5F52\u5C5E\u5730" 103 | - "IP-CIDR,47.246.29.227/32,IP\u5F52\u5C5E\u5730" 104 | - "IP-CIDR,47.246.29.225/32,IP\u5F52\u5C5E\u5730" 105 | - "IP-CIDR,47.246.29.224/32,IP\u5F52\u5C5E\u5730" 106 | - "IP-CIDR,47.246.29.222/32,IP\u5F52\u5C5E\u5730" 107 | - "IP-CIDR,47.246.29.229/32,IP\u5F52\u5C5E\u5730" 108 | - "IP-CIDR,47.246.29.228/32,IP\u5F52\u5C5E\u5730" 109 | - "IP-CIDR,211.152.149.12/32,IP\u5F52\u5C5E\u5730" 110 | - "IP-CIDR,49.51.224.95/32,IP\u5F52\u5C5E\u5730" 111 | - "IP-CIDR,43.175.44.15/32,IP\u5F52\u5C5E\u5730" 112 | - "IP-CIDR,23.236.104.30/32,IP\u5F52\u5C5E\u5730" 113 | - "IP-CIDR,43.132.81.61/32,IP\u5F52\u5C5E\u5730" 114 | - "IP-CIDR,101.33.27.26/32,IP\u5F52\u5C5E\u5730" 115 | - "IP-CIDR,43.152.29.38/32,IP\u5F52\u5C5E\u5730" 116 | - "IP-CIDR,43.152.26.110/32,IP\u5F52\u5C5E\u5730" 117 | - "IP-CIDR,101.33.11.32/32,IP\u5F52\u5C5E\u5730" 118 | - "IP-CIDR,163.181.1.228/32,IP\u5F52\u5C5E\u5730" 119 | - "IP-CIDR,163.181.1.226/32,IP\u5F52\u5C5E\u5730" 120 | - "IP-CIDR,163.181.1.230/32,IP\u5F52\u5C5E\u5730" 121 | - "IP-CIDR,163.181.1.227/32,IP\u5F52\u5C5E\u5730" 122 | - "IP-CIDR,163.181.1.231/32,IP\u5F52\u5C5E\u5730" 123 | - "IP-CIDR,163.181.1.229/32,IP\u5F52\u5C5E\u5730" 124 | - "IP-CIDR,163.181.1.224/32,IP\u5F52\u5C5E\u5730" 125 | - "IP-CIDR,163.181.1.225/32,IP\u5F52\u5C5E\u5730" 126 | - "IP-CIDR,47.246.23.230/32,IP\u5F52\u5C5E\u5730" 127 | - "IP-CIDR,47.246.23.234/32,IP\u5F52\u5C5E\u5730" 128 | - "IP-CIDR,47.246.23.228/32,IP\u5F52\u5C5E\u5730" 129 | - "IP-CIDR,47.246.23.233/32,IP\u5F52\u5C5E\u5730" 130 | - "IP-CIDR,47.246.23.231/32,IP\u5F52\u5C5E\u5730" 131 | - "IP-CIDR,47.246.23.232/32,IP\u5F52\u5C5E\u5730" 132 | - "IP-CIDR,47.246.23.227/32,IP\u5F52\u5C5E\u5730" 133 | - "IP-CIDR,47.246.23.229/32,IP\u5F52\u5C5E\u5730" 134 | - "IP-CIDR,43.152.42.109/32,IP\u5F52\u5C5E\u5730" 135 | - "IP-CIDR,43.175.22.27/32,IP\u5F52\u5C5E\u5730" 136 | - "IP-CIDR,43.175.22.42/32,IP\u5F52\u5C5E\u5730" 137 | - "IP-CIDR,43.175.22.26/32,IP\u5F52\u5C5E\u5730" 138 | - "IP-CIDR,43.132.84.11/32,IP\u5F52\u5C5E\u5730" 139 | - "IP-CIDR,101.33.20.34/32,IP\u5F52\u5C5E\u5730" 140 | - "IP-CIDR,49.51.224.105/32,IP\u5F52\u5C5E\u5730" 141 | - "IP-CIDR,49.51.224.103/32,IP\u5F52\u5C5E\u5730" 142 | - "IP-CIDR,163.181.92.232/32,IP\u5F52\u5C5E\u5730" 143 | - "IP-CIDR,163.181.92.233/32,IP\u5F52\u5C5E\u5730" 144 | - "IP-CIDR,163.181.92.237/32,IP\u5F52\u5C5E\u5730" 145 | - "IP-CIDR,163.181.92.238/32,IP\u5F52\u5C5E\u5730" 146 | - "IP-CIDR,163.181.92.231/32,IP\u5F52\u5C5E\u5730" 147 | - "IP-CIDR,163.181.92.234/32,IP\u5F52\u5C5E\u5730" 148 | - "IP-CIDR,163.181.92.236/32,IP\u5F52\u5C5E\u5730" 149 | - "IP-CIDR,163.181.92.235/32,IP\u5F52\u5C5E\u5730" 150 | - "IP-CIDR,43.132.83.175/32,IP\u5F52\u5C5E\u5730" 151 | - "IP-CIDR,43.132.83.54/32,IP\u5F52\u5C5E\u5730" 152 | - "IP-CIDR,43.132.83.9/32,IP\u5F52\u5C5E\u5730" 153 | - "IP-CIDR,43.132.91.37/32,IP\u5F52\u5C5E\u5730" 154 | - "IP-CIDR,43.132.91.110/32,IP\u5F52\u5C5E\u5730" 155 | - "IP-CIDR,43.132.91.45/32,IP\u5F52\u5C5E\u5730" 156 | - "IP-CIDR,150.109.222.109/32,IP\u5F52\u5C5E\u5730" 157 | - "IP-CIDR,150.109.222.102/32,IP\u5F52\u5C5E\u5730" 158 | - "IP-CIDR,150.109.222.97/32,IP\u5F52\u5C5E\u5730" 159 | - "IP-CIDR,150.109.223.49/32,IP\u5F52\u5C5E\u5730" 160 | - "IP-CIDR,150.109.222.103/32,IP\u5F52\u5C5E\u5730" 161 | - "IP-CIDR,150.109.222.99/32,IP\u5F52\u5C5E\u5730" 162 | - "IP-CIDR,150.109.222.110/32,IP\u5F52\u5C5E\u5730" 163 | - "IP-CIDR,203.205.220.62/32,IP\u5F52\u5C5E\u5730" 164 | - "DOMAIN,keylol.com,IP\u5F52\u5C5E\u5730" 165 | - "DOMAIN-SUFFIX,ixigua.com,IP\u5F52\u5C5E\u5730" 166 | - "DOMAIN,www.wenshushu.cn,IP\u5F52\u5C5E\u5730" 167 | - IP-CIDR,119.29.29.98/32,REJECT 168 | - "IP-CIDR,120.53.130.158/32,IP\u5F52\u5C5E\u5730" 169 | - "DOMAIN,frodo.douban.com,IP\u5F52\u5C5E\u5730" 170 | - "DOMAIN,www.douban.com,IP\u5F52\u5C5E\u5730" 171 | - "DOMAIN,api.coolapk.com,IP\u5F52\u5C5E\u5730" 172 | - "DOMAIN,api2.coolapk.com,IP\u5F52\u5C5E\u5730" 173 | - "DOMAIN,api.taptapdada.com,IP\u5F52\u5C5E\u5730" 174 | - "DOMAIN,god.gameyw.netease.com,IP\u5F52\u5C5E\u5730" 175 | - "DOMAIN-SUFFIX,huya.com,IP\u5F52\u5C5E\u5730" 176 | - "DOMAIN-SUFFIX,dongqiudi.com,IP\u5F52\u5C5E\u5730" 177 | - "DOMAIN,ngabbs.com,IP\u5F52\u5C5E\u5730" 178 | - "DOMAIN,bbs.nga.cn,IP\u5F52\u5C5E\u5730" 179 | - "DOMAIN,nga.178.com,IP\u5F52\u5C5E\u5730" 180 | - "DOMAIN,api.vip.miui.com,IP\u5F52\u5C5E\u5730" 181 | - "DOMAIN-SUFFIX,music.163.com,IP\u5F52\u5C5E\u5730" 182 | - "DOMAIN,nstool.netease.com,IP\u5F52\u5C5E\u5730" 183 | - "DOMAIN,wanproxy.127.net,IP\u5F52\u5C5E\u5730" 184 | - "DOMAIN,mam.netease.com,IP\u5F52\u5C5E\u5730" 185 | - "DOMAIN,dt.netease.im,IP\u5F52\u5C5E\u5730" 186 | - "DOMAIN,api.iplay.163.com,IP\u5F52\u5C5E\u5730" 187 | - "DOMAIN,api.k.163.com,IP\u5F52\u5C5E\u5730" 188 | - "DOMAIN,lbs.netease.im,IP\u5F52\u5C5E\u5730" 189 | - "DOMAIN,wannos.127.net,IP\u5F52\u5C5E\u5730" 190 | - "DOMAIN,ac.dun.163.com,IP\u5F52\u5C5E\u5730" 191 | - "DOMAIN-SUFFIX,music.126.net,IP\u5F52\u5C5E\u5730" 192 | - "DOMAIN-SUFFIX,laiqukankan.com,IP\u5F52\u5C5E\u5730" 193 | - "DOMAIN-SUFFIX,music.ntes53.netease.com,IP\u5F52\u5C5E\u5730" 194 | - "IP-CIDR,101.71.154.241/32,IP\u5F52\u5C5E\u5730" 195 | - "IP-CIDR,103.126.92.132/32,IP\u5F52\u5C5E\u5730" 196 | - "IP-CIDR,103.126.92.133/32,IP\u5F52\u5C5E\u5730" 197 | - "IP-CIDR,112.13.119.18/32,IP\u5F52\u5C5E\u5730" 198 | - "IP-CIDR,112.13.122.4/32,IP\u5F52\u5C5E\u5730" 199 | - "IP-CIDR,115.236.118.34/32,IP\u5F52\u5C5E\u5730" 200 | - "IP-CIDR,115.236.121.4/32,IP\u5F52\u5C5E\u5730" 201 | - "IP-CIDR,45.254.48.1/32,IP\u5F52\u5C5E\u5730" 202 | - "IP-CIDR,59.111.160.195/32,IP\u5F52\u5C5E\u5730" 203 | - "IP-CIDR,59.111.19.33/32,IP\u5F52\u5C5E\u5730" 204 | - "IP-CIDR,59.111.19.53/32,IP\u5F52\u5C5E\u5730" 205 | - "DOMAIN-SUFFIX,music.163.com.163jiasu.com,IP\u5F52\u5C5E\u5730" 206 | - "IP-CIDR,119.36.90.80/32,IP\u5F52\u5C5E\u5730" 207 | - "IP-CIDR,111.48.137.146/32,IP\u5F52\u5C5E\u5730" 208 | - "IP-CIDR,1.95.21.35/32,IP\u5F52\u5C5E\u5730" 209 | - "IP-CIDR,47.100.127.239/32,IP\u5F52\u5C5E\u5730" 210 | - "DOMAIN-SUFFIX,lofter.com,IP\u5F52\u5C5E\u5730" 211 | - "DOMAIN,yaolu.yuedu.163.com,IP\u5F52\u5C5E\u5730" 212 | - DOMAIN-SUFFIX,lf127.net,DIRECT 213 | - DOMAIN-SUFFIX,hls3-akm.douyucdn.cn,DIRECT 214 | - DOMAIN-SUFFIX,hlsa-akm.douyucdn.cn,DIRECT 215 | - DOMAIN-SUFFIX,hls1a-akm.douyucdn.cn,DIRECT 216 | - DOMAIN-SUFFIX,hls3a-akm.douyucdn.cn,DIRECT 217 | - DOMAIN-SUFFIX,vplay1a.douyucdn.cn,DIRECT 218 | - DOMAIN-SUFFIX,vplay3a.douyucdn.cn,DIRECT 219 | - DOMAIN-SUFFIX,ws-tct.douyucdn.cn,DIRECT 220 | - DOMAIN-SUFFIX,akm-tct.douyucdn.cn,DIRECT 221 | - DOMAIN-SUFFIX,tx2play1.douyucdn.cn,DIRECT 222 | - DOMAIN-SUFFIX,tc-tct1.douyucdn.cn,DIRECT 223 | - DOMAIN-SUFFIX,wsproxy.douyu.com,DIRECT 224 | - DOMAIN-SUFFIX,danmuproxy.douyu.com,DIRECT 225 | - DOMAIN-SUFFIX,img.douyucdn.cn,DIRECT 226 | - "DOMAIN-SUFFIX,douyucdn.cn,IP\u5F52\u5C5E\u5730" 227 | - "DOMAIN-SUFFIX,douyu.com,IP\u5F52\u5C5E\u5730" 228 | - "DOMAIN,bbs-api.mihoyo.com,IP\u5F52\u5C5E\u5730" 229 | - "DOMAIN,bbs-api.miyoushe.com,IP\u5F52\u5C5E\u5730" 230 | - "DOMAIN-SUFFIX,douban.com,IP\u5F52\u5C5E\u5730" 231 | - "IP-CIDR,49.233.242.15/32,IP\u5F52\u5C5E\u5730" 232 | - "IP-CIDR,81.70.124.99/32,IP\u5F52\u5C5E\u5730" 233 | - "IP-CIDR,81.70.125.19/32,IP\u5F52\u5C5E\u5730" 234 | - "IP-CIDR,140.143.177.206/32,IP\u5F52\u5C5E\u5730" 235 | - "DOMAIN,api.xiaoheihe.cn,IP\u5F52\u5C5E\u5730" 236 | - DOMAIN,y.qq.com,DIRECT 237 | - "DOMAIN-SUFFIX,y.qq.com,IP\u5F52\u5C5E\u5730" 238 | - "DOMAIN,zonai.skland.com,IP\u5F52\u5C5E\u5730" 239 | - DOMAIN,china-img.soulapp.cn,DIRECT 240 | - DOMAIN,img.soulapp.cn,DIRECT 241 | - "DOMAIN-SUFFIX,soulapp.cn,IP\u5F52\u5C5E\u5730" 242 | - "DOMAIN,druidv6.if.qidian.com,IP\u5F52\u5C5E\u5730" 243 | - "DOMAIN,ptlogin6.qidian.com,IP\u5F52\u5C5E\u5730" 244 | - "DOMAIN,api.wmpvp.com,IP\u5F52\u5C5E\u5730" 245 | -------------------------------------------------------------------------------- /generated/quantumultx-domesticsocial.list: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution quantumultx-domesticsocial.list v0.3.1 24db48a4973b31d718703136cfcc2b3621171f36 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # QuantumultX分流规则,策略组名称为DomesticSocial 5 | DOMAIN,httpdns.bilivideo.com,REJECT 6 | IP-CIDR,47.101.175.206/32,REJECT 7 | IP-CIDR,47.100.123.169/32,REJECT 8 | IP-CIDR,120.46.169.234/32,REJECT 9 | IP-CIDR,121.36.72.124/32,REJECT 10 | IP-CIDR,116.63.10.135/32,REJECT 11 | IP-CIDR,122.9.7.134/32,REJECT 12 | IP-CIDR,117.185.228.108/32,REJECT 13 | IP-CIDR,117.144.238.29/32,REJECT 14 | IP-CIDR,122.9.13.79/32,REJECT 15 | IP-CIDR,122.9.15.129/32,REJECT 16 | IP-CIDR,101.91.140.224/32,REJECT 17 | IP-CIDR,101.91.140.124/32,REJECT 18 | IP-CIDR,114.116.215.110/32,REJECT 19 | IP-CIDR,116.63.10.31/32,REJECT 20 | IP-CIDR,112.64.218.119/32,REJECT 21 | IP-CIDR,112.65.200.117/32,REJECT 22 | DOMAIN-SUFFIX,biliapi.net,DomesticSocial 23 | DOMAIN-SUFFIX,biliapi.com,DomesticSocial 24 | DOMAIN-SUFFIX,bilibili.com,DomesticSocial 25 | IP-CIDR,203.107.1.0/24,DomesticSocial 26 | DOMAIN-SUFFIX,bilivideo.com,DIRECT 27 | DOMAIN-SUFFIX,akamaized.net,DIRECT 28 | DOMAIN-SUFFIX,hdslb.com,DIRECT 29 | DOMAIN-SUFFIX,szbdyd.com,DIRECT 30 | DOMAIN-SUFFIX,weibo.cn,DomesticSocial 31 | DOMAIN-SUFFIX,weibo.com,DomesticSocial 32 | DOMAIN-SUFFIX,weibocdn.com,DomesticSocial 33 | DOMAIN-SUFFIX,wbimg.cn,DomesticSocial 34 | DOMAIN-SUFFIX,wbimg.com,DomesticSocial 35 | DOMAIN-SUFFIX,sinaimg.cn,DomesticSocial 36 | DOMAIN-KEYWORD,weibo,DomesticSocial 37 | DOMAIN,tieba.baidu.com,DomesticSocial 38 | DOMAIN,tbmsg.baidu.com,DomesticSocial 39 | DOMAIN,tb5.bdstatic.com,DomesticSocial 40 | DOMAIN,fclog.baidu.com,DomesticSocial 41 | DOMAIN,gsp0.baidu.com,DomesticSocial 42 | DOMAIN,hm.baidu.com,DomesticSocial 43 | DOMAIN,www.baidu.com,DomesticSocial 44 | DOMAIN,tiebac.baidu.com,DomesticSocial 45 | IP-CIDR,180.76.76.0/24,DomesticSocial 46 | DOMAIN,httpsdns.baidu.com,DomesticSocial 47 | DOMAIN,c.tieba.baidu.com,DomesticSocial 48 | DOMAIN,httpdns.baidu.com,DomesticSocial 49 | DOMAIN,httpdns.baidubce.com,DomesticSocial 50 | DOMAIN,szshort.weixin.qq.com,DomesticSocial 51 | DOMAIN,szextshort.weixin.qq.com,DomesticSocial 52 | DOMAIN,szminorshort.weixin.qq.com,DomesticSocial 53 | DOMAIN,mp.weixin.qq.com,DomesticSocial 54 | DOMAIN-SUFFIX,zhihu.com,DomesticSocial 55 | IP-CIDR,103.41.167.0/24,DomesticSocial 56 | IP-CIDR,118.89.204.198/23,REJECT 57 | IP6-CIDR,2402:4e00:1200:ed00:0:9089:6dac:96b6/40,REJECT 58 | DOMAIN-KEYWORD,core-c-lq,DomesticSocial 59 | DOMAIN-KEYWORD,core-lq,DomesticSocial 60 | DOMAIN-KEYWORD,normal-c-lq,DomesticSocial 61 | DOMAIN-KEYWORD,normal-lq,DomesticSocial 62 | DOMAIN-KEYWORD,search-quic-lq,DomesticSocial 63 | DOMAIN-KEYWORD,search-lq,DomesticSocial 64 | DOMAIN-SUFFIX,zijieapi.com,DIRECT 65 | DOMAIN-SUFFIX,ecombdapi.com,DIRECT 66 | DOMAIN-KEYWORD,-normal-hl,DomesticSocial 67 | DOMAIN-KEYWORD,-normal-c-hl,DomesticSocial 68 | DOMAIN-KEYWORD,-core-c-hl,DomesticSocial 69 | DOMAIN-KEYWORD,-normal-lf,DomesticSocial 70 | DOMAIN-KEYWORD,-normal-c-lf,DomesticSocial 71 | DOMAIN-KEYWORD,-core-c-lf,DomesticSocial 72 | DOMAIN,sso.douyin.com,DomesticSocial 73 | DOMAIN,www.douyin.com,DomesticSocial 74 | DOMAIN-SUFFIX,snssdk.com,DomesticSocial 75 | DOMAIN-SUFFIX,toutiaoapi.com,DomesticSocial 76 | DOMAIN-SUFFIX,gifshow.com,DomesticSocial 77 | DOMAIN-SUFFIX,ksapisrv.com,DomesticSocial 78 | DOMAIN-SUFFIX,xiaohongshu.com,DomesticSocial 79 | DOMAIN-KEYWORD,xiaohongshu,DomesticSocial 80 | IP-CIDR,114.55.236.88/32,DomesticSocial 81 | IP-CIDR,47.97.64.97/32,DomesticSocial 82 | IP-CIDR,47.97.66.48/32,DomesticSocial 83 | IP-CIDR,81.69.116.86/32,DomesticSocial 84 | IP-CIDR,119.45.249.52/32,DomesticSocial 85 | IP-CIDR,81.69.116.87/32,DomesticSocial 86 | IP-CIDR,119.45.2.92/32,DomesticSocial 87 | IP-CIDR,1.13.12.27/32,DomesticSocial 88 | IP-CIDR,81.69.116.102/32,DomesticSocial 89 | IP-CIDR,43.159.25.122/32,DomesticSocial 90 | IP-CIDR,43.159.25.28/32,DomesticSocial 91 | IP-CIDR,47.246.29.223/32,DomesticSocial 92 | IP-CIDR,47.246.29.226/32,DomesticSocial 93 | IP-CIDR,47.246.29.227/32,DomesticSocial 94 | IP-CIDR,47.246.29.225/32,DomesticSocial 95 | IP-CIDR,47.246.29.224/32,DomesticSocial 96 | IP-CIDR,47.246.29.222/32,DomesticSocial 97 | IP-CIDR,47.246.29.229/32,DomesticSocial 98 | IP-CIDR,47.246.29.228/32,DomesticSocial 99 | IP-CIDR,211.152.149.12/32,DomesticSocial 100 | IP-CIDR,49.51.224.95/32,DomesticSocial 101 | IP-CIDR,43.175.44.15/32,DomesticSocial 102 | IP-CIDR,23.236.104.30/32,DomesticSocial 103 | IP-CIDR,43.132.81.61/32,DomesticSocial 104 | IP-CIDR,101.33.27.26/32,DomesticSocial 105 | IP-CIDR,43.152.29.38/32,DomesticSocial 106 | IP-CIDR,43.152.26.110/32,DomesticSocial 107 | IP-CIDR,101.33.11.32/32,DomesticSocial 108 | IP-CIDR,163.181.1.228/32,DomesticSocial 109 | IP-CIDR,163.181.1.226/32,DomesticSocial 110 | IP-CIDR,163.181.1.230/32,DomesticSocial 111 | IP-CIDR,163.181.1.227/32,DomesticSocial 112 | IP-CIDR,163.181.1.231/32,DomesticSocial 113 | IP-CIDR,163.181.1.229/32,DomesticSocial 114 | IP-CIDR,163.181.1.224/32,DomesticSocial 115 | IP-CIDR,163.181.1.225/32,DomesticSocial 116 | IP-CIDR,47.246.23.230/32,DomesticSocial 117 | IP-CIDR,47.246.23.234/32,DomesticSocial 118 | IP-CIDR,47.246.23.228/32,DomesticSocial 119 | IP-CIDR,47.246.23.233/32,DomesticSocial 120 | IP-CIDR,47.246.23.231/32,DomesticSocial 121 | IP-CIDR,47.246.23.232/32,DomesticSocial 122 | IP-CIDR,47.246.23.227/32,DomesticSocial 123 | IP-CIDR,47.246.23.229/32,DomesticSocial 124 | IP-CIDR,43.152.42.109/32,DomesticSocial 125 | IP-CIDR,43.175.22.27/32,DomesticSocial 126 | IP-CIDR,43.175.22.42/32,DomesticSocial 127 | IP-CIDR,43.175.22.26/32,DomesticSocial 128 | IP-CIDR,43.132.84.11/32,DomesticSocial 129 | IP-CIDR,101.33.20.34/32,DomesticSocial 130 | IP-CIDR,49.51.224.105/32,DomesticSocial 131 | IP-CIDR,49.51.224.103/32,DomesticSocial 132 | IP-CIDR,163.181.92.232/32,DomesticSocial 133 | IP-CIDR,163.181.92.233/32,DomesticSocial 134 | IP-CIDR,163.181.92.237/32,DomesticSocial 135 | IP-CIDR,163.181.92.238/32,DomesticSocial 136 | IP-CIDR,163.181.92.231/32,DomesticSocial 137 | IP-CIDR,163.181.92.234/32,DomesticSocial 138 | IP-CIDR,163.181.92.236/32,DomesticSocial 139 | IP-CIDR,163.181.92.235/32,DomesticSocial 140 | IP-CIDR,43.132.83.175/32,DomesticSocial 141 | IP-CIDR,43.132.83.54/32,DomesticSocial 142 | IP-CIDR,43.132.83.9/32,DomesticSocial 143 | IP-CIDR,43.132.91.37/32,DomesticSocial 144 | IP-CIDR,43.132.91.110/32,DomesticSocial 145 | IP-CIDR,43.132.91.45/32,DomesticSocial 146 | IP-CIDR,150.109.222.109/32,DomesticSocial 147 | IP-CIDR,150.109.222.102/32,DomesticSocial 148 | IP-CIDR,150.109.222.97/32,DomesticSocial 149 | IP-CIDR,150.109.223.49/32,DomesticSocial 150 | IP-CIDR,150.109.222.103/32,DomesticSocial 151 | IP-CIDR,150.109.222.99/32,DomesticSocial 152 | IP-CIDR,150.109.222.110/32,DomesticSocial 153 | IP-CIDR,203.205.220.62/32,DomesticSocial 154 | DOMAIN,keylol.com,DomesticSocial 155 | DOMAIN-SUFFIX,ixigua.com,DomesticSocial 156 | DOMAIN,www.wenshushu.cn,DomesticSocial 157 | IP-CIDR,119.29.29.98/32,REJECT 158 | IP-CIDR,120.53.130.158/32,DomesticSocial 159 | DOMAIN,frodo.douban.com,DomesticSocial 160 | DOMAIN,www.douban.com,DomesticSocial 161 | DOMAIN,api.coolapk.com,DomesticSocial 162 | DOMAIN,api2.coolapk.com,DomesticSocial 163 | DOMAIN,api.taptapdada.com,DomesticSocial 164 | DOMAIN,god.gameyw.netease.com,DomesticSocial 165 | DOMAIN-SUFFIX,huya.com,DomesticSocial 166 | DOMAIN-SUFFIX,dongqiudi.com,DomesticSocial 167 | DOMAIN,ngabbs.com,DomesticSocial 168 | DOMAIN,bbs.nga.cn,DomesticSocial 169 | DOMAIN,nga.178.com,DomesticSocial 170 | DOMAIN,api.vip.miui.com,DomesticSocial 171 | DOMAIN-SUFFIX,music.163.com,DomesticSocial 172 | DOMAIN,nstool.netease.com,DomesticSocial 173 | DOMAIN,wanproxy.127.net,DomesticSocial 174 | DOMAIN,mam.netease.com,DomesticSocial 175 | DOMAIN,dt.netease.im,DomesticSocial 176 | DOMAIN,api.iplay.163.com,DomesticSocial 177 | DOMAIN,api.k.163.com,DomesticSocial 178 | DOMAIN,lbs.netease.im,DomesticSocial 179 | DOMAIN,wannos.127.net,DomesticSocial 180 | DOMAIN,ac.dun.163.com,DomesticSocial 181 | DOMAIN-SUFFIX,music.126.net,DomesticSocial 182 | DOMAIN-SUFFIX,laiqukankan.com,DomesticSocial 183 | DOMAIN-SUFFIX,music.ntes53.netease.com,DomesticSocial 184 | IP-CIDR,101.71.154.241/32,DomesticSocial 185 | IP-CIDR,103.126.92.132/32,DomesticSocial 186 | IP-CIDR,103.126.92.133/32,DomesticSocial 187 | IP-CIDR,112.13.119.18/32,DomesticSocial 188 | IP-CIDR,112.13.122.4/32,DomesticSocial 189 | IP-CIDR,115.236.118.34/32,DomesticSocial 190 | IP-CIDR,115.236.121.4/32,DomesticSocial 191 | IP-CIDR,45.254.48.1/32,DomesticSocial 192 | IP-CIDR,59.111.160.195/32,DomesticSocial 193 | IP-CIDR,59.111.19.33/32,DomesticSocial 194 | IP-CIDR,59.111.19.53/32,DomesticSocial 195 | DOMAIN-SUFFIX,music.163.com.163jiasu.com,DomesticSocial 196 | IP-CIDR,119.36.90.80/32,DomesticSocial 197 | IP-CIDR,111.48.137.146/32,DomesticSocial 198 | IP-CIDR,1.95.21.35/32,DomesticSocial 199 | IP-CIDR,47.100.127.239/32,DomesticSocial 200 | DOMAIN-SUFFIX,lofter.com,DomesticSocial 201 | DOMAIN,yaolu.yuedu.163.com,DomesticSocial 202 | DOMAIN-SUFFIX,lf127.net,DIRECT 203 | DOMAIN-SUFFIX,hls3-akm.douyucdn.cn,DIRECT 204 | DOMAIN-SUFFIX,hlsa-akm.douyucdn.cn,DIRECT 205 | DOMAIN-SUFFIX,hls1a-akm.douyucdn.cn,DIRECT 206 | DOMAIN-SUFFIX,hls3a-akm.douyucdn.cn,DIRECT 207 | DOMAIN-SUFFIX,vplay1a.douyucdn.cn,DIRECT 208 | DOMAIN-SUFFIX,vplay3a.douyucdn.cn,DIRECT 209 | DOMAIN-SUFFIX,ws-tct.douyucdn.cn,DIRECT 210 | DOMAIN-SUFFIX,akm-tct.douyucdn.cn,DIRECT 211 | DOMAIN-SUFFIX,tx2play1.douyucdn.cn,DIRECT 212 | DOMAIN-SUFFIX,tc-tct1.douyucdn.cn,DIRECT 213 | DOMAIN-SUFFIX,wsproxy.douyu.com,DIRECT 214 | DOMAIN-SUFFIX,danmuproxy.douyu.com,DIRECT 215 | DOMAIN-SUFFIX,img.douyucdn.cn,DIRECT 216 | DOMAIN-SUFFIX,douyucdn.cn,DomesticSocial 217 | DOMAIN-SUFFIX,douyu.com,DomesticSocial 218 | DOMAIN,bbs-api.mihoyo.com,DomesticSocial 219 | DOMAIN,bbs-api.miyoushe.com,DomesticSocial 220 | DOMAIN-SUFFIX,douban.com,DomesticSocial 221 | IP-CIDR,49.233.242.15/32,DomesticSocial 222 | IP-CIDR,81.70.124.99/32,DomesticSocial 223 | IP-CIDR,81.70.125.19/32,DomesticSocial 224 | IP-CIDR,140.143.177.206/32,DomesticSocial 225 | DOMAIN,api.xiaoheihe.cn,DomesticSocial 226 | DOMAIN,y.qq.com,DIRECT 227 | DOMAIN-SUFFIX,y.qq.com,DomesticSocial 228 | DOMAIN,zonai.skland.com,DomesticSocial 229 | DOMAIN,china-img.soulapp.cn,DIRECT 230 | DOMAIN,img.soulapp.cn,DIRECT 231 | DOMAIN-SUFFIX,soulapp.cn,DomesticSocial 232 | DOMAIN,druidv6.if.qidian.com,DomesticSocial 233 | DOMAIN,ptlogin6.qidian.com,DomesticSocial 234 | DOMAIN,api.wmpvp.com,DomesticSocial 235 | -------------------------------------------------------------------------------- /generated/quantumultx.list: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution quantumultx.list v0.3.1 24db48a4973b31d718703136cfcc2b3621171f36 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # QuantumultX分流规则 5 | DOMAIN,httpdns.bilivideo.com,REJECT 6 | IP-CIDR,47.101.175.206/32,REJECT 7 | IP-CIDR,47.100.123.169/32,REJECT 8 | IP-CIDR,120.46.169.234/32,REJECT 9 | IP-CIDR,121.36.72.124/32,REJECT 10 | IP-CIDR,116.63.10.135/32,REJECT 11 | IP-CIDR,122.9.7.134/32,REJECT 12 | IP-CIDR,117.185.228.108/32,REJECT 13 | IP-CIDR,117.144.238.29/32,REJECT 14 | IP-CIDR,122.9.13.79/32,REJECT 15 | IP-CIDR,122.9.15.129/32,REJECT 16 | IP-CIDR,101.91.140.224/32,REJECT 17 | IP-CIDR,101.91.140.124/32,REJECT 18 | IP-CIDR,114.116.215.110/32,REJECT 19 | IP-CIDR,116.63.10.31/32,REJECT 20 | IP-CIDR,112.64.218.119/32,REJECT 21 | IP-CIDR,112.65.200.117/32,REJECT 22 | DOMAIN-SUFFIX,biliapi.net,IP 23 | DOMAIN-SUFFIX,biliapi.com,IP 24 | DOMAIN-SUFFIX,bilibili.com,IP 25 | IP-CIDR,203.107.1.0/24,IP 26 | DOMAIN-SUFFIX,bilivideo.com,DIRECT 27 | DOMAIN-SUFFIX,akamaized.net,DIRECT 28 | DOMAIN-SUFFIX,hdslb.com,DIRECT 29 | DOMAIN-SUFFIX,szbdyd.com,DIRECT 30 | DOMAIN-SUFFIX,weibo.cn,IP 31 | DOMAIN-SUFFIX,weibo.com,IP 32 | DOMAIN-SUFFIX,weibocdn.com,IP 33 | DOMAIN-SUFFIX,wbimg.cn,IP 34 | DOMAIN-SUFFIX,wbimg.com,IP 35 | DOMAIN-SUFFIX,sinaimg.cn,IP 36 | DOMAIN-KEYWORD,weibo,IP 37 | DOMAIN,tieba.baidu.com,IP 38 | DOMAIN,tbmsg.baidu.com,IP 39 | DOMAIN,tb5.bdstatic.com,IP 40 | DOMAIN,fclog.baidu.com,IP 41 | DOMAIN,gsp0.baidu.com,IP 42 | DOMAIN,hm.baidu.com,IP 43 | DOMAIN,www.baidu.com,IP 44 | DOMAIN,tiebac.baidu.com,IP 45 | IP-CIDR,180.76.76.0/24,IP 46 | DOMAIN,httpsdns.baidu.com,IP 47 | DOMAIN,c.tieba.baidu.com,IP 48 | DOMAIN,httpdns.baidu.com,IP 49 | DOMAIN,httpdns.baidubce.com,IP 50 | DOMAIN,szshort.weixin.qq.com,IP 51 | DOMAIN,szextshort.weixin.qq.com,IP 52 | DOMAIN,szminorshort.weixin.qq.com,IP 53 | DOMAIN,mp.weixin.qq.com,IP 54 | DOMAIN-SUFFIX,zhihu.com,IP 55 | IP-CIDR,103.41.167.0/24,IP 56 | IP-CIDR,118.89.204.198/23,REJECT 57 | IP6-CIDR,2402:4e00:1200:ed00:0:9089:6dac:96b6/40,REJECT 58 | DOMAIN-KEYWORD,core-c-lq,IP 59 | DOMAIN-KEYWORD,core-lq,IP 60 | DOMAIN-KEYWORD,normal-c-lq,IP 61 | DOMAIN-KEYWORD,normal-lq,IP 62 | DOMAIN-KEYWORD,search-quic-lq,IP 63 | DOMAIN-KEYWORD,search-lq,IP 64 | DOMAIN-SUFFIX,zijieapi.com,DIRECT 65 | DOMAIN-SUFFIX,ecombdapi.com,DIRECT 66 | DOMAIN-KEYWORD,-normal-hl,IP 67 | DOMAIN-KEYWORD,-normal-c-hl,IP 68 | DOMAIN-KEYWORD,-core-c-hl,IP 69 | DOMAIN-KEYWORD,-normal-lf,IP 70 | DOMAIN-KEYWORD,-normal-c-lf,IP 71 | DOMAIN-KEYWORD,-core-c-lf,IP 72 | DOMAIN,sso.douyin.com,IP 73 | DOMAIN,www.douyin.com,IP 74 | DOMAIN-SUFFIX,snssdk.com,IP 75 | DOMAIN-SUFFIX,toutiaoapi.com,IP 76 | DOMAIN-SUFFIX,gifshow.com,IP 77 | DOMAIN-SUFFIX,ksapisrv.com,IP 78 | DOMAIN-SUFFIX,xiaohongshu.com,IP 79 | DOMAIN-KEYWORD,xiaohongshu,IP 80 | IP-CIDR,114.55.236.88/32,IP 81 | IP-CIDR,47.97.64.97/32,IP 82 | IP-CIDR,47.97.66.48/32,IP 83 | IP-CIDR,81.69.116.86/32,IP 84 | IP-CIDR,119.45.249.52/32,IP 85 | IP-CIDR,81.69.116.87/32,IP 86 | IP-CIDR,119.45.2.92/32,IP 87 | IP-CIDR,1.13.12.27/32,IP 88 | IP-CIDR,81.69.116.102/32,IP 89 | IP-CIDR,43.159.25.122/32,IP 90 | IP-CIDR,43.159.25.28/32,IP 91 | IP-CIDR,47.246.29.223/32,IP 92 | IP-CIDR,47.246.29.226/32,IP 93 | IP-CIDR,47.246.29.227/32,IP 94 | IP-CIDR,47.246.29.225/32,IP 95 | IP-CIDR,47.246.29.224/32,IP 96 | IP-CIDR,47.246.29.222/32,IP 97 | IP-CIDR,47.246.29.229/32,IP 98 | IP-CIDR,47.246.29.228/32,IP 99 | IP-CIDR,211.152.149.12/32,IP 100 | IP-CIDR,49.51.224.95/32,IP 101 | IP-CIDR,43.175.44.15/32,IP 102 | IP-CIDR,23.236.104.30/32,IP 103 | IP-CIDR,43.132.81.61/32,IP 104 | IP-CIDR,101.33.27.26/32,IP 105 | IP-CIDR,43.152.29.38/32,IP 106 | IP-CIDR,43.152.26.110/32,IP 107 | IP-CIDR,101.33.11.32/32,IP 108 | IP-CIDR,163.181.1.228/32,IP 109 | IP-CIDR,163.181.1.226/32,IP 110 | IP-CIDR,163.181.1.230/32,IP 111 | IP-CIDR,163.181.1.227/32,IP 112 | IP-CIDR,163.181.1.231/32,IP 113 | IP-CIDR,163.181.1.229/32,IP 114 | IP-CIDR,163.181.1.224/32,IP 115 | IP-CIDR,163.181.1.225/32,IP 116 | IP-CIDR,47.246.23.230/32,IP 117 | IP-CIDR,47.246.23.234/32,IP 118 | IP-CIDR,47.246.23.228/32,IP 119 | IP-CIDR,47.246.23.233/32,IP 120 | IP-CIDR,47.246.23.231/32,IP 121 | IP-CIDR,47.246.23.232/32,IP 122 | IP-CIDR,47.246.23.227/32,IP 123 | IP-CIDR,47.246.23.229/32,IP 124 | IP-CIDR,43.152.42.109/32,IP 125 | IP-CIDR,43.175.22.27/32,IP 126 | IP-CIDR,43.175.22.42/32,IP 127 | IP-CIDR,43.175.22.26/32,IP 128 | IP-CIDR,43.132.84.11/32,IP 129 | IP-CIDR,101.33.20.34/32,IP 130 | IP-CIDR,49.51.224.105/32,IP 131 | IP-CIDR,49.51.224.103/32,IP 132 | IP-CIDR,163.181.92.232/32,IP 133 | IP-CIDR,163.181.92.233/32,IP 134 | IP-CIDR,163.181.92.237/32,IP 135 | IP-CIDR,163.181.92.238/32,IP 136 | IP-CIDR,163.181.92.231/32,IP 137 | IP-CIDR,163.181.92.234/32,IP 138 | IP-CIDR,163.181.92.236/32,IP 139 | IP-CIDR,163.181.92.235/32,IP 140 | IP-CIDR,43.132.83.175/32,IP 141 | IP-CIDR,43.132.83.54/32,IP 142 | IP-CIDR,43.132.83.9/32,IP 143 | IP-CIDR,43.132.91.37/32,IP 144 | IP-CIDR,43.132.91.110/32,IP 145 | IP-CIDR,43.132.91.45/32,IP 146 | IP-CIDR,150.109.222.109/32,IP 147 | IP-CIDR,150.109.222.102/32,IP 148 | IP-CIDR,150.109.222.97/32,IP 149 | IP-CIDR,150.109.223.49/32,IP 150 | IP-CIDR,150.109.222.103/32,IP 151 | IP-CIDR,150.109.222.99/32,IP 152 | IP-CIDR,150.109.222.110/32,IP 153 | IP-CIDR,203.205.220.62/32,IP 154 | DOMAIN,keylol.com,IP 155 | DOMAIN-SUFFIX,ixigua.com,IP 156 | DOMAIN,www.wenshushu.cn,IP 157 | IP-CIDR,119.29.29.98/32,REJECT 158 | IP-CIDR,120.53.130.158/32,IP 159 | DOMAIN,frodo.douban.com,IP 160 | DOMAIN,www.douban.com,IP 161 | DOMAIN,api.coolapk.com,IP 162 | DOMAIN,api2.coolapk.com,IP 163 | DOMAIN,api.taptapdada.com,IP 164 | DOMAIN,god.gameyw.netease.com,IP 165 | DOMAIN-SUFFIX,huya.com,IP 166 | DOMAIN-SUFFIX,dongqiudi.com,IP 167 | DOMAIN,ngabbs.com,IP 168 | DOMAIN,bbs.nga.cn,IP 169 | DOMAIN,nga.178.com,IP 170 | DOMAIN,api.vip.miui.com,IP 171 | DOMAIN-SUFFIX,music.163.com,IP 172 | DOMAIN,nstool.netease.com,IP 173 | DOMAIN,wanproxy.127.net,IP 174 | DOMAIN,mam.netease.com,IP 175 | DOMAIN,dt.netease.im,IP 176 | DOMAIN,api.iplay.163.com,IP 177 | DOMAIN,api.k.163.com,IP 178 | DOMAIN,lbs.netease.im,IP 179 | DOMAIN,wannos.127.net,IP 180 | DOMAIN,ac.dun.163.com,IP 181 | DOMAIN-SUFFIX,music.126.net,IP 182 | DOMAIN-SUFFIX,laiqukankan.com,IP 183 | DOMAIN-SUFFIX,music.ntes53.netease.com,IP 184 | IP-CIDR,101.71.154.241/32,IP 185 | IP-CIDR,103.126.92.132/32,IP 186 | IP-CIDR,103.126.92.133/32,IP 187 | IP-CIDR,112.13.119.18/32,IP 188 | IP-CIDR,112.13.122.4/32,IP 189 | IP-CIDR,115.236.118.34/32,IP 190 | IP-CIDR,115.236.121.4/32,IP 191 | IP-CIDR,45.254.48.1/32,IP 192 | IP-CIDR,59.111.160.195/32,IP 193 | IP-CIDR,59.111.19.33/32,IP 194 | IP-CIDR,59.111.19.53/32,IP 195 | DOMAIN-SUFFIX,music.163.com.163jiasu.com,IP 196 | IP-CIDR,119.36.90.80/32,IP 197 | IP-CIDR,111.48.137.146/32,IP 198 | IP-CIDR,1.95.21.35/32,IP 199 | IP-CIDR,47.100.127.239/32,IP 200 | DOMAIN-SUFFIX,lofter.com,IP 201 | DOMAIN,yaolu.yuedu.163.com,IP 202 | DOMAIN-SUFFIX,lf127.net,DIRECT 203 | DOMAIN-SUFFIX,hls3-akm.douyucdn.cn,DIRECT 204 | DOMAIN-SUFFIX,hlsa-akm.douyucdn.cn,DIRECT 205 | DOMAIN-SUFFIX,hls1a-akm.douyucdn.cn,DIRECT 206 | DOMAIN-SUFFIX,hls3a-akm.douyucdn.cn,DIRECT 207 | DOMAIN-SUFFIX,vplay1a.douyucdn.cn,DIRECT 208 | DOMAIN-SUFFIX,vplay3a.douyucdn.cn,DIRECT 209 | DOMAIN-SUFFIX,ws-tct.douyucdn.cn,DIRECT 210 | DOMAIN-SUFFIX,akm-tct.douyucdn.cn,DIRECT 211 | DOMAIN-SUFFIX,tx2play1.douyucdn.cn,DIRECT 212 | DOMAIN-SUFFIX,tc-tct1.douyucdn.cn,DIRECT 213 | DOMAIN-SUFFIX,wsproxy.douyu.com,DIRECT 214 | DOMAIN-SUFFIX,danmuproxy.douyu.com,DIRECT 215 | DOMAIN-SUFFIX,img.douyucdn.cn,DIRECT 216 | DOMAIN-SUFFIX,douyucdn.cn,IP 217 | DOMAIN-SUFFIX,douyu.com,IP 218 | DOMAIN,bbs-api.mihoyo.com,IP 219 | DOMAIN,bbs-api.miyoushe.com,IP 220 | DOMAIN-SUFFIX,douban.com,IP 221 | IP-CIDR,49.233.242.15/32,IP 222 | IP-CIDR,81.70.124.99/32,IP 223 | IP-CIDR,81.70.125.19/32,IP 224 | IP-CIDR,140.143.177.206/32,IP 225 | DOMAIN,api.xiaoheihe.cn,IP 226 | DOMAIN,y.qq.com,DIRECT 227 | DOMAIN-SUFFIX,y.qq.com,IP 228 | DOMAIN,zonai.skland.com,IP 229 | DOMAIN,china-img.soulapp.cn,DIRECT 230 | DOMAIN,img.soulapp.cn,DIRECT 231 | DOMAIN-SUFFIX,soulapp.cn,IP 232 | DOMAIN,druidv6.if.qidian.com,IP 233 | DOMAIN,ptlogin6.qidian.com,IP 234 | DOMAIN,api.wmpvp.com,IP 235 | -------------------------------------------------------------------------------- /generated/rule-provider-direct.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rule-provider-direct.yaml v0.3.1 24db48a4973b31d718703136cfcc2b3621171f36 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 适用于Clash的Rule Provider功能,详见https://lancellc.gitbook.io/clash/clash-config-file/rule-provider 5 | payload: 6 | - DOMAIN-SUFFIX,bilivideo.com,DIRECT 7 | - DOMAIN-SUFFIX,akamaized.net,DIRECT 8 | - DOMAIN-SUFFIX,hdslb.com,DIRECT 9 | - DOMAIN-SUFFIX,szbdyd.com,DIRECT 10 | - DOMAIN-SUFFIX,zijieapi.com,DIRECT 11 | - DOMAIN-SUFFIX,ecombdapi.com,DIRECT 12 | - DOMAIN-SUFFIX,lf127.net,DIRECT 13 | - DOMAIN-SUFFIX,hls3-akm.douyucdn.cn,DIRECT 14 | - DOMAIN-SUFFIX,hlsa-akm.douyucdn.cn,DIRECT 15 | - DOMAIN-SUFFIX,hls1a-akm.douyucdn.cn,DIRECT 16 | - DOMAIN-SUFFIX,hls3a-akm.douyucdn.cn,DIRECT 17 | - DOMAIN-SUFFIX,vplay1a.douyucdn.cn,DIRECT 18 | - DOMAIN-SUFFIX,vplay3a.douyucdn.cn,DIRECT 19 | - DOMAIN-SUFFIX,ws-tct.douyucdn.cn,DIRECT 20 | - DOMAIN-SUFFIX,akm-tct.douyucdn.cn,DIRECT 21 | - DOMAIN-SUFFIX,tx2play1.douyucdn.cn,DIRECT 22 | - DOMAIN-SUFFIX,tc-tct1.douyucdn.cn,DIRECT 23 | - DOMAIN-SUFFIX,wsproxy.douyu.com,DIRECT 24 | - DOMAIN-SUFFIX,danmuproxy.douyu.com,DIRECT 25 | - DOMAIN-SUFFIX,img.douyucdn.cn,DIRECT 26 | - DOMAIN,y.qq.com,DIRECT 27 | - DOMAIN,china-img.soulapp.cn,DIRECT 28 | - DOMAIN,img.soulapp.cn,DIRECT 29 | -------------------------------------------------------------------------------- /generated/rule-provider-proxy.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rule-provider-proxy.yaml v0.3.1 24db48a4973b31d718703136cfcc2b3621171f36 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 适用于Clash的Rule Provider功能,详见https://lancellc.gitbook.io/clash/clash-config-file/rule-provider 5 | payload: 6 | - DOMAIN-SUFFIX,biliapi.net 7 | - DOMAIN-SUFFIX,biliapi.com 8 | - DOMAIN-SUFFIX,bilibili.com 9 | - IP-CIDR,203.107.1.0/24,no-resolve 10 | - DOMAIN-SUFFIX,weibo.cn 11 | - DOMAIN-SUFFIX,weibo.com 12 | - DOMAIN-SUFFIX,weibocdn.com 13 | - DOMAIN-SUFFIX,wbimg.cn 14 | - DOMAIN-SUFFIX,wbimg.com 15 | - DOMAIN-SUFFIX,sinaimg.cn 16 | - DOMAIN-KEYWORD,weibo 17 | - DOMAIN,tieba.baidu.com 18 | - DOMAIN,tbmsg.baidu.com 19 | - DOMAIN,tb5.bdstatic.com 20 | - DOMAIN,fclog.baidu.com 21 | - DOMAIN,gsp0.baidu.com 22 | - DOMAIN,hm.baidu.com 23 | - DOMAIN,www.baidu.com 24 | - DOMAIN,tiebac.baidu.com 25 | - IP-CIDR,180.76.76.0/24,no-resolve 26 | - DOMAIN,httpsdns.baidu.com 27 | - DOMAIN,c.tieba.baidu.com 28 | - DOMAIN,httpdns.baidu.com 29 | - DOMAIN,httpdns.baidubce.com 30 | - DOMAIN,szshort.weixin.qq.com 31 | - DOMAIN,szextshort.weixin.qq.com 32 | - DOMAIN,szminorshort.weixin.qq.com 33 | - DOMAIN,mp.weixin.qq.com 34 | - DOMAIN-SUFFIX,zhihu.com 35 | - IP-CIDR,103.41.167.0/24,no-resolve 36 | - DOMAIN-KEYWORD,core-c-lq 37 | - DOMAIN-KEYWORD,core-lq 38 | - DOMAIN-KEYWORD,normal-c-lq 39 | - DOMAIN-KEYWORD,normal-lq 40 | - DOMAIN-KEYWORD,search-quic-lq 41 | - DOMAIN-KEYWORD,search-lq 42 | - DOMAIN-KEYWORD,-normal-hl 43 | - DOMAIN-KEYWORD,-normal-c-hl 44 | - DOMAIN-KEYWORD,-core-c-hl 45 | - DOMAIN-KEYWORD,-normal-lf 46 | - DOMAIN-KEYWORD,-normal-c-lf 47 | - DOMAIN-KEYWORD,-core-c-lf 48 | - DOMAIN,sso.douyin.com 49 | - DOMAIN,www.douyin.com 50 | - DOMAIN-SUFFIX,snssdk.com 51 | - DOMAIN-SUFFIX,toutiaoapi.com 52 | - DOMAIN-SUFFIX,gifshow.com 53 | - DOMAIN-SUFFIX,ksapisrv.com 54 | - DOMAIN-SUFFIX,xiaohongshu.com 55 | - DOMAIN-KEYWORD,xiaohongshu 56 | - IP-CIDR,114.55.236.88/32,no-resolve 57 | - IP-CIDR,47.97.64.97/32,no-resolve 58 | - IP-CIDR,47.97.66.48/32,no-resolve 59 | - IP-CIDR,81.69.116.86/32,no-resolve 60 | - IP-CIDR,119.45.249.52/32,no-resolve 61 | - IP-CIDR,81.69.116.87/32,no-resolve 62 | - IP-CIDR,119.45.2.92/32,no-resolve 63 | - IP-CIDR,1.13.12.27/32,no-resolve 64 | - IP-CIDR,81.69.116.102/32,no-resolve 65 | - IP-CIDR,43.159.25.122/32,no-resolve 66 | - IP-CIDR,43.159.25.28/32,no-resolve 67 | - IP-CIDR,47.246.29.223/32,no-resolve 68 | - IP-CIDR,47.246.29.226/32,no-resolve 69 | - IP-CIDR,47.246.29.227/32,no-resolve 70 | - IP-CIDR,47.246.29.225/32,no-resolve 71 | - IP-CIDR,47.246.29.224/32,no-resolve 72 | - IP-CIDR,47.246.29.222/32,no-resolve 73 | - IP-CIDR,47.246.29.229/32,no-resolve 74 | - IP-CIDR,47.246.29.228/32,no-resolve 75 | - IP-CIDR,211.152.149.12/32,no-resolve 76 | - IP-CIDR,49.51.224.95/32,no-resolve 77 | - IP-CIDR,43.175.44.15/32,no-resolve 78 | - IP-CIDR,23.236.104.30/32,no-resolve 79 | - IP-CIDR,43.132.81.61/32,no-resolve 80 | - IP-CIDR,101.33.27.26/32,no-resolve 81 | - IP-CIDR,43.152.29.38/32,no-resolve 82 | - IP-CIDR,43.152.26.110/32,no-resolve 83 | - IP-CIDR,101.33.11.32/32,no-resolve 84 | - IP-CIDR,163.181.1.228/32,no-resolve 85 | - IP-CIDR,163.181.1.226/32,no-resolve 86 | - IP-CIDR,163.181.1.230/32,no-resolve 87 | - IP-CIDR,163.181.1.227/32,no-resolve 88 | - IP-CIDR,163.181.1.231/32,no-resolve 89 | - IP-CIDR,163.181.1.229/32,no-resolve 90 | - IP-CIDR,163.181.1.224/32,no-resolve 91 | - IP-CIDR,163.181.1.225/32,no-resolve 92 | - IP-CIDR,47.246.23.230/32,no-resolve 93 | - IP-CIDR,47.246.23.234/32,no-resolve 94 | - IP-CIDR,47.246.23.228/32,no-resolve 95 | - IP-CIDR,47.246.23.233/32,no-resolve 96 | - IP-CIDR,47.246.23.231/32,no-resolve 97 | - IP-CIDR,47.246.23.232/32,no-resolve 98 | - IP-CIDR,47.246.23.227/32,no-resolve 99 | - IP-CIDR,47.246.23.229/32,no-resolve 100 | - IP-CIDR,43.152.42.109/32,no-resolve 101 | - IP-CIDR,43.175.22.27/32,no-resolve 102 | - IP-CIDR,43.175.22.42/32,no-resolve 103 | - IP-CIDR,43.175.22.26/32,no-resolve 104 | - IP-CIDR,43.132.84.11/32,no-resolve 105 | - IP-CIDR,101.33.20.34/32,no-resolve 106 | - IP-CIDR,49.51.224.105/32,no-resolve 107 | - IP-CIDR,49.51.224.103/32,no-resolve 108 | - IP-CIDR,163.181.92.232/32,no-resolve 109 | - IP-CIDR,163.181.92.233/32,no-resolve 110 | - IP-CIDR,163.181.92.237/32,no-resolve 111 | - IP-CIDR,163.181.92.238/32,no-resolve 112 | - IP-CIDR,163.181.92.231/32,no-resolve 113 | - IP-CIDR,163.181.92.234/32,no-resolve 114 | - IP-CIDR,163.181.92.236/32,no-resolve 115 | - IP-CIDR,163.181.92.235/32,no-resolve 116 | - IP-CIDR,43.132.83.175/32,no-resolve 117 | - IP-CIDR,43.132.83.54/32,no-resolve 118 | - IP-CIDR,43.132.83.9/32,no-resolve 119 | - IP-CIDR,43.132.91.37/32,no-resolve 120 | - IP-CIDR,43.132.91.110/32,no-resolve 121 | - IP-CIDR,43.132.91.45/32,no-resolve 122 | - IP-CIDR,150.109.222.109/32,no-resolve 123 | - IP-CIDR,150.109.222.102/32,no-resolve 124 | - IP-CIDR,150.109.222.97/32,no-resolve 125 | - IP-CIDR,150.109.223.49/32,no-resolve 126 | - IP-CIDR,150.109.222.103/32,no-resolve 127 | - IP-CIDR,150.109.222.99/32,no-resolve 128 | - IP-CIDR,150.109.222.110/32,no-resolve 129 | - IP-CIDR,203.205.220.62/32,no-resolve 130 | - DOMAIN,keylol.com 131 | - DOMAIN-SUFFIX,ixigua.com 132 | - DOMAIN,www.wenshushu.cn 133 | - IP-CIDR,120.53.130.158/32,no-resolve 134 | - DOMAIN,frodo.douban.com 135 | - DOMAIN,www.douban.com 136 | - DOMAIN,api.coolapk.com 137 | - DOMAIN,api2.coolapk.com 138 | - DOMAIN,api.taptapdada.com 139 | - DOMAIN,god.gameyw.netease.com 140 | - DOMAIN-SUFFIX,huya.com 141 | - DOMAIN-SUFFIX,dongqiudi.com 142 | - DOMAIN,ngabbs.com 143 | - DOMAIN,bbs.nga.cn 144 | - DOMAIN,nga.178.com 145 | - DOMAIN,api.vip.miui.com 146 | - DOMAIN-SUFFIX,music.163.com 147 | - DOMAIN,nstool.netease.com 148 | - DOMAIN,wanproxy.127.net 149 | - DOMAIN,mam.netease.com 150 | - DOMAIN,dt.netease.im 151 | - DOMAIN,api.iplay.163.com 152 | - DOMAIN,api.k.163.com 153 | - DOMAIN,lbs.netease.im 154 | - DOMAIN,wannos.127.net 155 | - DOMAIN,ac.dun.163.com 156 | - DOMAIN-SUFFIX,music.126.net 157 | - DOMAIN-SUFFIX,laiqukankan.com 158 | - DOMAIN-SUFFIX,music.ntes53.netease.com 159 | - IP-CIDR,101.71.154.241/32,no-resolve 160 | - IP-CIDR,103.126.92.132/32,no-resolve 161 | - IP-CIDR,103.126.92.133/32,no-resolve 162 | - IP-CIDR,112.13.119.18/32,no-resolve 163 | - IP-CIDR,112.13.122.4/32,no-resolve 164 | - IP-CIDR,115.236.118.34/32,no-resolve 165 | - IP-CIDR,115.236.121.4/32,no-resolve 166 | - IP-CIDR,45.254.48.1/32,no-resolve 167 | - IP-CIDR,59.111.160.195/32,no-resolve 168 | - IP-CIDR,59.111.19.33/32,no-resolve 169 | - IP-CIDR,59.111.19.53/32,no-resolve 170 | - DOMAIN-SUFFIX,music.163.com.163jiasu.com 171 | - IP-CIDR,119.36.90.80/32,no-resolve 172 | - IP-CIDR,111.48.137.146/32,no-resolve 173 | - IP-CIDR,1.95.21.35/32,no-resolve 174 | - IP-CIDR,47.100.127.239/32,no-resolve 175 | - DOMAIN-SUFFIX,lofter.com 176 | - DOMAIN,yaolu.yuedu.163.com 177 | - DOMAIN-SUFFIX,douyucdn.cn 178 | - DOMAIN-SUFFIX,douyu.com 179 | - DOMAIN,bbs-api.mihoyo.com 180 | - DOMAIN,bbs-api.miyoushe.com 181 | - DOMAIN-SUFFIX,douban.com 182 | - IP-CIDR,49.233.242.15/32,no-resolve 183 | - IP-CIDR,81.70.124.99/32,no-resolve 184 | - IP-CIDR,81.70.125.19/32,no-resolve 185 | - IP-CIDR,140.143.177.206/32,no-resolve 186 | - DOMAIN,api.xiaoheihe.cn 187 | - DOMAIN-SUFFIX,y.qq.com 188 | - DOMAIN,zonai.skland.com 189 | - DOMAIN-SUFFIX,soulapp.cn 190 | - DOMAIN,druidv6.if.qidian.com 191 | - DOMAIN,ptlogin6.qidian.com 192 | - DOMAIN,api.wmpvp.com 193 | -------------------------------------------------------------------------------- /generated/rule-provider-reject.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rule-provider-reject.yaml v0.3.1 24db48a4973b31d718703136cfcc2b3621171f36 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 适用于Clash的Rule Provider功能,详见https://lancellc.gitbook.io/clash/clash-config-file/rule-provider 5 | payload: 6 | - DOMAIN,httpdns.bilivideo.com,REJECT 7 | - IP-CIDR,47.101.175.206/32,REJECT,no-resolve 8 | - IP-CIDR,47.100.123.169/32,REJECT,no-resolve 9 | - IP-CIDR,120.46.169.234/32,REJECT,no-resolve 10 | - IP-CIDR,121.36.72.124/32,REJECT,no-resolve 11 | - IP-CIDR,116.63.10.135/32,REJECT,no-resolve 12 | - IP-CIDR,122.9.7.134/32,REJECT,no-resolve 13 | - IP-CIDR,117.185.228.108/32,REJECT,no-resolve 14 | - IP-CIDR,117.144.238.29/32,REJECT,no-resolve 15 | - IP-CIDR,122.9.13.79/32,REJECT,no-resolve 16 | - IP-CIDR,122.9.15.129/32,REJECT,no-resolve 17 | - IP-CIDR,101.91.140.224/32,REJECT,no-resolve 18 | - IP-CIDR,101.91.140.124/32,REJECT,no-resolve 19 | - IP-CIDR,114.116.215.110/32,REJECT,no-resolve 20 | - IP-CIDR,116.63.10.31/32,REJECT,no-resolve 21 | - IP-CIDR,112.64.218.119/32,REJECT,no-resolve 22 | - IP-CIDR,112.65.200.117/32,REJECT,no-resolve 23 | - IP-CIDR,118.89.204.198/23,REJECT,no-resolve 24 | - IP-CIDR6,2402:4e00:1200:ed00:0:9089:6dac:96b6/40,REJECT,no-resolve 25 | - IP-CIDR,119.29.29.98/32,REJECT,no-resolve 26 | -------------------------------------------------------------------------------- /generated/rule-provider.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rule-provider.yaml v0.3.1 24db48a4973b31d718703136cfcc2b3621171f36 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 适用于Clash的Rule Provider功能,详见https://lancellc.gitbook.io/clash/clash-config-file/rule-provider 5 | payload: 6 | - DOMAIN,httpdns.bilivideo.com,REJECT 7 | - IP-CIDR,47.101.175.206/32,REJECT,no-resolve 8 | - IP-CIDR,47.100.123.169/32,REJECT,no-resolve 9 | - IP-CIDR,120.46.169.234/32,REJECT,no-resolve 10 | - IP-CIDR,121.36.72.124/32,REJECT,no-resolve 11 | - IP-CIDR,116.63.10.135/32,REJECT,no-resolve 12 | - IP-CIDR,122.9.7.134/32,REJECT,no-resolve 13 | - IP-CIDR,117.185.228.108/32,REJECT,no-resolve 14 | - IP-CIDR,117.144.238.29/32,REJECT,no-resolve 15 | - IP-CIDR,122.9.13.79/32,REJECT,no-resolve 16 | - IP-CIDR,122.9.15.129/32,REJECT,no-resolve 17 | - IP-CIDR,101.91.140.224/32,REJECT,no-resolve 18 | - IP-CIDR,101.91.140.124/32,REJECT,no-resolve 19 | - IP-CIDR,114.116.215.110/32,REJECT,no-resolve 20 | - IP-CIDR,116.63.10.31/32,REJECT,no-resolve 21 | - IP-CIDR,112.64.218.119/32,REJECT,no-resolve 22 | - IP-CIDR,112.65.200.117/32,REJECT,no-resolve 23 | - DOMAIN-SUFFIX,biliapi.net 24 | - DOMAIN-SUFFIX,biliapi.com 25 | - DOMAIN-SUFFIX,bilibili.com 26 | - IP-CIDR,203.107.1.0/24,no-resolve 27 | - DOMAIN-SUFFIX,bilivideo.com,DIRECT 28 | - DOMAIN-SUFFIX,akamaized.net,DIRECT 29 | - DOMAIN-SUFFIX,hdslb.com,DIRECT 30 | - DOMAIN-SUFFIX,szbdyd.com,DIRECT 31 | - DOMAIN-SUFFIX,weibo.cn 32 | - DOMAIN-SUFFIX,weibo.com 33 | - DOMAIN-SUFFIX,weibocdn.com 34 | - DOMAIN-SUFFIX,wbimg.cn 35 | - DOMAIN-SUFFIX,wbimg.com 36 | - DOMAIN-SUFFIX,sinaimg.cn 37 | - DOMAIN-KEYWORD,weibo 38 | - DOMAIN,tieba.baidu.com 39 | - DOMAIN,tbmsg.baidu.com 40 | - DOMAIN,tb5.bdstatic.com 41 | - DOMAIN,fclog.baidu.com 42 | - DOMAIN,gsp0.baidu.com 43 | - DOMAIN,hm.baidu.com 44 | - DOMAIN,www.baidu.com 45 | - DOMAIN,tiebac.baidu.com 46 | - IP-CIDR,180.76.76.0/24,no-resolve 47 | - DOMAIN,httpsdns.baidu.com 48 | - DOMAIN,c.tieba.baidu.com 49 | - DOMAIN,httpdns.baidu.com 50 | - DOMAIN,httpdns.baidubce.com 51 | - DOMAIN,szshort.weixin.qq.com 52 | - DOMAIN,szextshort.weixin.qq.com 53 | - DOMAIN,szminorshort.weixin.qq.com 54 | - DOMAIN,mp.weixin.qq.com 55 | - DOMAIN-SUFFIX,zhihu.com 56 | - IP-CIDR,103.41.167.0/24,no-resolve 57 | - IP-CIDR,118.89.204.198/23,REJECT,no-resolve 58 | - IP-CIDR6,2402:4e00:1200:ed00:0:9089:6dac:96b6/40,REJECT,no-resolve 59 | - DOMAIN-KEYWORD,core-c-lq 60 | - DOMAIN-KEYWORD,core-lq 61 | - DOMAIN-KEYWORD,normal-c-lq 62 | - DOMAIN-KEYWORD,normal-lq 63 | - DOMAIN-KEYWORD,search-quic-lq 64 | - DOMAIN-KEYWORD,search-lq 65 | - DOMAIN-SUFFIX,zijieapi.com,DIRECT 66 | - DOMAIN-SUFFIX,ecombdapi.com,DIRECT 67 | - DOMAIN-KEYWORD,-normal-hl 68 | - DOMAIN-KEYWORD,-normal-c-hl 69 | - DOMAIN-KEYWORD,-core-c-hl 70 | - DOMAIN-KEYWORD,-normal-lf 71 | - DOMAIN-KEYWORD,-normal-c-lf 72 | - DOMAIN-KEYWORD,-core-c-lf 73 | - DOMAIN,sso.douyin.com 74 | - DOMAIN,www.douyin.com 75 | - DOMAIN-SUFFIX,snssdk.com 76 | - DOMAIN-SUFFIX,toutiaoapi.com 77 | - DOMAIN-SUFFIX,gifshow.com 78 | - DOMAIN-SUFFIX,ksapisrv.com 79 | - DOMAIN-SUFFIX,xiaohongshu.com 80 | - DOMAIN-KEYWORD,xiaohongshu 81 | - IP-CIDR,114.55.236.88/32,no-resolve 82 | - IP-CIDR,47.97.64.97/32,no-resolve 83 | - IP-CIDR,47.97.66.48/32,no-resolve 84 | - IP-CIDR,81.69.116.86/32,no-resolve 85 | - IP-CIDR,119.45.249.52/32,no-resolve 86 | - IP-CIDR,81.69.116.87/32,no-resolve 87 | - IP-CIDR,119.45.2.92/32,no-resolve 88 | - IP-CIDR,1.13.12.27/32,no-resolve 89 | - IP-CIDR,81.69.116.102/32,no-resolve 90 | - IP-CIDR,43.159.25.122/32,no-resolve 91 | - IP-CIDR,43.159.25.28/32,no-resolve 92 | - IP-CIDR,47.246.29.223/32,no-resolve 93 | - IP-CIDR,47.246.29.226/32,no-resolve 94 | - IP-CIDR,47.246.29.227/32,no-resolve 95 | - IP-CIDR,47.246.29.225/32,no-resolve 96 | - IP-CIDR,47.246.29.224/32,no-resolve 97 | - IP-CIDR,47.246.29.222/32,no-resolve 98 | - IP-CIDR,47.246.29.229/32,no-resolve 99 | - IP-CIDR,47.246.29.228/32,no-resolve 100 | - IP-CIDR,211.152.149.12/32,no-resolve 101 | - IP-CIDR,49.51.224.95/32,no-resolve 102 | - IP-CIDR,43.175.44.15/32,no-resolve 103 | - IP-CIDR,23.236.104.30/32,no-resolve 104 | - IP-CIDR,43.132.81.61/32,no-resolve 105 | - IP-CIDR,101.33.27.26/32,no-resolve 106 | - IP-CIDR,43.152.29.38/32,no-resolve 107 | - IP-CIDR,43.152.26.110/32,no-resolve 108 | - IP-CIDR,101.33.11.32/32,no-resolve 109 | - IP-CIDR,163.181.1.228/32,no-resolve 110 | - IP-CIDR,163.181.1.226/32,no-resolve 111 | - IP-CIDR,163.181.1.230/32,no-resolve 112 | - IP-CIDR,163.181.1.227/32,no-resolve 113 | - IP-CIDR,163.181.1.231/32,no-resolve 114 | - IP-CIDR,163.181.1.229/32,no-resolve 115 | - IP-CIDR,163.181.1.224/32,no-resolve 116 | - IP-CIDR,163.181.1.225/32,no-resolve 117 | - IP-CIDR,47.246.23.230/32,no-resolve 118 | - IP-CIDR,47.246.23.234/32,no-resolve 119 | - IP-CIDR,47.246.23.228/32,no-resolve 120 | - IP-CIDR,47.246.23.233/32,no-resolve 121 | - IP-CIDR,47.246.23.231/32,no-resolve 122 | - IP-CIDR,47.246.23.232/32,no-resolve 123 | - IP-CIDR,47.246.23.227/32,no-resolve 124 | - IP-CIDR,47.246.23.229/32,no-resolve 125 | - IP-CIDR,43.152.42.109/32,no-resolve 126 | - IP-CIDR,43.175.22.27/32,no-resolve 127 | - IP-CIDR,43.175.22.42/32,no-resolve 128 | - IP-CIDR,43.175.22.26/32,no-resolve 129 | - IP-CIDR,43.132.84.11/32,no-resolve 130 | - IP-CIDR,101.33.20.34/32,no-resolve 131 | - IP-CIDR,49.51.224.105/32,no-resolve 132 | - IP-CIDR,49.51.224.103/32,no-resolve 133 | - IP-CIDR,163.181.92.232/32,no-resolve 134 | - IP-CIDR,163.181.92.233/32,no-resolve 135 | - IP-CIDR,163.181.92.237/32,no-resolve 136 | - IP-CIDR,163.181.92.238/32,no-resolve 137 | - IP-CIDR,163.181.92.231/32,no-resolve 138 | - IP-CIDR,163.181.92.234/32,no-resolve 139 | - IP-CIDR,163.181.92.236/32,no-resolve 140 | - IP-CIDR,163.181.92.235/32,no-resolve 141 | - IP-CIDR,43.132.83.175/32,no-resolve 142 | - IP-CIDR,43.132.83.54/32,no-resolve 143 | - IP-CIDR,43.132.83.9/32,no-resolve 144 | - IP-CIDR,43.132.91.37/32,no-resolve 145 | - IP-CIDR,43.132.91.110/32,no-resolve 146 | - IP-CIDR,43.132.91.45/32,no-resolve 147 | - IP-CIDR,150.109.222.109/32,no-resolve 148 | - IP-CIDR,150.109.222.102/32,no-resolve 149 | - IP-CIDR,150.109.222.97/32,no-resolve 150 | - IP-CIDR,150.109.223.49/32,no-resolve 151 | - IP-CIDR,150.109.222.103/32,no-resolve 152 | - IP-CIDR,150.109.222.99/32,no-resolve 153 | - IP-CIDR,150.109.222.110/32,no-resolve 154 | - IP-CIDR,203.205.220.62/32,no-resolve 155 | - DOMAIN,keylol.com 156 | - DOMAIN-SUFFIX,ixigua.com 157 | - DOMAIN,www.wenshushu.cn 158 | - IP-CIDR,119.29.29.98/32,REJECT,no-resolve 159 | - IP-CIDR,120.53.130.158/32,no-resolve 160 | - DOMAIN,frodo.douban.com 161 | - DOMAIN,www.douban.com 162 | - DOMAIN,api.coolapk.com 163 | - DOMAIN,api2.coolapk.com 164 | - DOMAIN,api.taptapdada.com 165 | - DOMAIN,god.gameyw.netease.com 166 | - DOMAIN-SUFFIX,huya.com 167 | - DOMAIN-SUFFIX,dongqiudi.com 168 | - DOMAIN,ngabbs.com 169 | - DOMAIN,bbs.nga.cn 170 | - DOMAIN,nga.178.com 171 | - DOMAIN,api.vip.miui.com 172 | - DOMAIN-SUFFIX,music.163.com 173 | - DOMAIN,nstool.netease.com 174 | - DOMAIN,wanproxy.127.net 175 | - DOMAIN,mam.netease.com 176 | - DOMAIN,dt.netease.im 177 | - DOMAIN,api.iplay.163.com 178 | - DOMAIN,api.k.163.com 179 | - DOMAIN,lbs.netease.im 180 | - DOMAIN,wannos.127.net 181 | - DOMAIN,ac.dun.163.com 182 | - DOMAIN-SUFFIX,music.126.net 183 | - DOMAIN-SUFFIX,laiqukankan.com 184 | - DOMAIN-SUFFIX,music.ntes53.netease.com 185 | - IP-CIDR,101.71.154.241/32,no-resolve 186 | - IP-CIDR,103.126.92.132/32,no-resolve 187 | - IP-CIDR,103.126.92.133/32,no-resolve 188 | - IP-CIDR,112.13.119.18/32,no-resolve 189 | - IP-CIDR,112.13.122.4/32,no-resolve 190 | - IP-CIDR,115.236.118.34/32,no-resolve 191 | - IP-CIDR,115.236.121.4/32,no-resolve 192 | - IP-CIDR,45.254.48.1/32,no-resolve 193 | - IP-CIDR,59.111.160.195/32,no-resolve 194 | - IP-CIDR,59.111.19.33/32,no-resolve 195 | - IP-CIDR,59.111.19.53/32,no-resolve 196 | - DOMAIN-SUFFIX,music.163.com.163jiasu.com 197 | - IP-CIDR,119.36.90.80/32,no-resolve 198 | - IP-CIDR,111.48.137.146/32,no-resolve 199 | - IP-CIDR,1.95.21.35/32,no-resolve 200 | - IP-CIDR,47.100.127.239/32,no-resolve 201 | - DOMAIN-SUFFIX,lofter.com 202 | - DOMAIN,yaolu.yuedu.163.com 203 | - DOMAIN-SUFFIX,lf127.net,DIRECT 204 | - DOMAIN-SUFFIX,hls3-akm.douyucdn.cn,DIRECT 205 | - DOMAIN-SUFFIX,hlsa-akm.douyucdn.cn,DIRECT 206 | - DOMAIN-SUFFIX,hls1a-akm.douyucdn.cn,DIRECT 207 | - DOMAIN-SUFFIX,hls3a-akm.douyucdn.cn,DIRECT 208 | - DOMAIN-SUFFIX,vplay1a.douyucdn.cn,DIRECT 209 | - DOMAIN-SUFFIX,vplay3a.douyucdn.cn,DIRECT 210 | - DOMAIN-SUFFIX,ws-tct.douyucdn.cn,DIRECT 211 | - DOMAIN-SUFFIX,akm-tct.douyucdn.cn,DIRECT 212 | - DOMAIN-SUFFIX,tx2play1.douyucdn.cn,DIRECT 213 | - DOMAIN-SUFFIX,tc-tct1.douyucdn.cn,DIRECT 214 | - DOMAIN-SUFFIX,wsproxy.douyu.com,DIRECT 215 | - DOMAIN-SUFFIX,danmuproxy.douyu.com,DIRECT 216 | - DOMAIN-SUFFIX,img.douyucdn.cn,DIRECT 217 | - DOMAIN-SUFFIX,douyucdn.cn 218 | - DOMAIN-SUFFIX,douyu.com 219 | - DOMAIN,bbs-api.mihoyo.com 220 | - DOMAIN,bbs-api.miyoushe.com 221 | - DOMAIN-SUFFIX,douban.com 222 | - IP-CIDR,49.233.242.15/32,no-resolve 223 | - IP-CIDR,81.70.124.99/32,no-resolve 224 | - IP-CIDR,81.70.125.19/32,no-resolve 225 | - IP-CIDR,140.143.177.206/32,no-resolve 226 | - DOMAIN,api.xiaoheihe.cn 227 | - DOMAIN,y.qq.com,DIRECT 228 | - DOMAIN-SUFFIX,y.qq.com 229 | - DOMAIN,zonai.skland.com 230 | - DOMAIN,china-img.soulapp.cn,DIRECT 231 | - DOMAIN,img.soulapp.cn,DIRECT 232 | - DOMAIN-SUFFIX,soulapp.cn 233 | - DOMAIN,druidv6.if.qidian.com 234 | - DOMAIN,ptlogin6.qidian.com 235 | - DOMAIN,api.wmpvp.com 236 | -------------------------------------------------------------------------------- /generated/rule-set-direct.list: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rule-set-direct.list v0.3.1 24db48a4973b31d718703136cfcc2b3621171f36 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 适用于Clash RULE-SET 5 | DOMAIN-SUFFIX,bilivideo.com 6 | DOMAIN-SUFFIX,akamaized.net 7 | DOMAIN-SUFFIX,hdslb.com 8 | DOMAIN-SUFFIX,szbdyd.com 9 | DOMAIN-SUFFIX,zijieapi.com 10 | DOMAIN-SUFFIX,ecombdapi.com 11 | DOMAIN-SUFFIX,lf127.net 12 | DOMAIN-SUFFIX,hls3-akm.douyucdn.cn 13 | DOMAIN-SUFFIX,hlsa-akm.douyucdn.cn 14 | DOMAIN-SUFFIX,hls1a-akm.douyucdn.cn 15 | DOMAIN-SUFFIX,hls3a-akm.douyucdn.cn 16 | DOMAIN-SUFFIX,vplay1a.douyucdn.cn 17 | DOMAIN-SUFFIX,vplay3a.douyucdn.cn 18 | DOMAIN-SUFFIX,ws-tct.douyucdn.cn 19 | DOMAIN-SUFFIX,akm-tct.douyucdn.cn 20 | DOMAIN-SUFFIX,tx2play1.douyucdn.cn 21 | DOMAIN-SUFFIX,tc-tct1.douyucdn.cn 22 | DOMAIN-SUFFIX,wsproxy.douyu.com 23 | DOMAIN-SUFFIX,danmuproxy.douyu.com 24 | DOMAIN-SUFFIX,img.douyucdn.cn 25 | DOMAIN,y.qq.com 26 | DOMAIN,china-img.soulapp.cn 27 | DOMAIN,img.soulapp.cn -------------------------------------------------------------------------------- /generated/rule-set-proxy.list: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rule-set-proxy.list v0.3.1 24db48a4973b31d718703136cfcc2b3621171f36 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 适用于Clash RULE-SET 5 | DOMAIN-SUFFIX,biliapi.net 6 | DOMAIN-SUFFIX,biliapi.com 7 | DOMAIN-SUFFIX,bilibili.com 8 | IP-CIDR,203.107.1.0/24,no-resolve 9 | DOMAIN-SUFFIX,weibo.cn 10 | DOMAIN-SUFFIX,weibo.com 11 | DOMAIN-SUFFIX,weibocdn.com 12 | DOMAIN-SUFFIX,wbimg.cn 13 | DOMAIN-SUFFIX,wbimg.com 14 | DOMAIN-SUFFIX,sinaimg.cn 15 | DOMAIN-KEYWORD,weibo 16 | DOMAIN,tieba.baidu.com 17 | DOMAIN,tbmsg.baidu.com 18 | DOMAIN,tb5.bdstatic.com 19 | DOMAIN,fclog.baidu.com 20 | DOMAIN,gsp0.baidu.com 21 | DOMAIN,hm.baidu.com 22 | DOMAIN,www.baidu.com 23 | DOMAIN,tiebac.baidu.com 24 | IP-CIDR,180.76.76.0/24,no-resolve 25 | DOMAIN,httpsdns.baidu.com 26 | DOMAIN,c.tieba.baidu.com 27 | DOMAIN,httpdns.baidu.com 28 | DOMAIN,httpdns.baidubce.com 29 | DOMAIN,szshort.weixin.qq.com 30 | DOMAIN,szextshort.weixin.qq.com 31 | DOMAIN,szminorshort.weixin.qq.com 32 | DOMAIN,mp.weixin.qq.com 33 | DOMAIN-SUFFIX,zhihu.com 34 | IP-CIDR,103.41.167.0/24,no-resolve 35 | DOMAIN-KEYWORD,core-c-lq 36 | DOMAIN-KEYWORD,core-lq 37 | DOMAIN-KEYWORD,normal-c-lq 38 | DOMAIN-KEYWORD,normal-lq 39 | DOMAIN-KEYWORD,search-quic-lq 40 | DOMAIN-KEYWORD,search-lq 41 | DOMAIN-KEYWORD,-normal-hl 42 | DOMAIN-KEYWORD,-normal-c-hl 43 | DOMAIN-KEYWORD,-core-c-hl 44 | DOMAIN-KEYWORD,-normal-lf 45 | DOMAIN-KEYWORD,-normal-c-lf 46 | DOMAIN-KEYWORD,-core-c-lf 47 | DOMAIN,sso.douyin.com 48 | DOMAIN,www.douyin.com 49 | DOMAIN-SUFFIX,snssdk.com 50 | DOMAIN-SUFFIX,toutiaoapi.com 51 | DOMAIN-SUFFIX,gifshow.com 52 | DOMAIN-SUFFIX,ksapisrv.com 53 | DOMAIN-SUFFIX,xiaohongshu.com 54 | DOMAIN-KEYWORD,xiaohongshu 55 | IP-CIDR,114.55.236.88/32,no-resolve 56 | IP-CIDR,47.97.64.97/32,no-resolve 57 | IP-CIDR,47.97.66.48/32,no-resolve 58 | IP-CIDR,81.69.116.86/32,no-resolve 59 | IP-CIDR,119.45.249.52/32,no-resolve 60 | IP-CIDR,81.69.116.87/32,no-resolve 61 | IP-CIDR,119.45.2.92/32,no-resolve 62 | IP-CIDR,1.13.12.27/32,no-resolve 63 | IP-CIDR,81.69.116.102/32,no-resolve 64 | IP-CIDR,43.159.25.122/32,no-resolve 65 | IP-CIDR,43.159.25.28/32,no-resolve 66 | IP-CIDR,47.246.29.223/32,no-resolve 67 | IP-CIDR,47.246.29.226/32,no-resolve 68 | IP-CIDR,47.246.29.227/32,no-resolve 69 | IP-CIDR,47.246.29.225/32,no-resolve 70 | IP-CIDR,47.246.29.224/32,no-resolve 71 | IP-CIDR,47.246.29.222/32,no-resolve 72 | IP-CIDR,47.246.29.229/32,no-resolve 73 | IP-CIDR,47.246.29.228/32,no-resolve 74 | IP-CIDR,211.152.149.12/32,no-resolve 75 | IP-CIDR,49.51.224.95/32,no-resolve 76 | IP-CIDR,43.175.44.15/32,no-resolve 77 | IP-CIDR,23.236.104.30/32,no-resolve 78 | IP-CIDR,43.132.81.61/32,no-resolve 79 | IP-CIDR,101.33.27.26/32,no-resolve 80 | IP-CIDR,43.152.29.38/32,no-resolve 81 | IP-CIDR,43.152.26.110/32,no-resolve 82 | IP-CIDR,101.33.11.32/32,no-resolve 83 | IP-CIDR,163.181.1.228/32,no-resolve 84 | IP-CIDR,163.181.1.226/32,no-resolve 85 | IP-CIDR,163.181.1.230/32,no-resolve 86 | IP-CIDR,163.181.1.227/32,no-resolve 87 | IP-CIDR,163.181.1.231/32,no-resolve 88 | IP-CIDR,163.181.1.229/32,no-resolve 89 | IP-CIDR,163.181.1.224/32,no-resolve 90 | IP-CIDR,163.181.1.225/32,no-resolve 91 | IP-CIDR,47.246.23.230/32,no-resolve 92 | IP-CIDR,47.246.23.234/32,no-resolve 93 | IP-CIDR,47.246.23.228/32,no-resolve 94 | IP-CIDR,47.246.23.233/32,no-resolve 95 | IP-CIDR,47.246.23.231/32,no-resolve 96 | IP-CIDR,47.246.23.232/32,no-resolve 97 | IP-CIDR,47.246.23.227/32,no-resolve 98 | IP-CIDR,47.246.23.229/32,no-resolve 99 | IP-CIDR,43.152.42.109/32,no-resolve 100 | IP-CIDR,43.175.22.27/32,no-resolve 101 | IP-CIDR,43.175.22.42/32,no-resolve 102 | IP-CIDR,43.175.22.26/32,no-resolve 103 | IP-CIDR,43.132.84.11/32,no-resolve 104 | IP-CIDR,101.33.20.34/32,no-resolve 105 | IP-CIDR,49.51.224.105/32,no-resolve 106 | IP-CIDR,49.51.224.103/32,no-resolve 107 | IP-CIDR,163.181.92.232/32,no-resolve 108 | IP-CIDR,163.181.92.233/32,no-resolve 109 | IP-CIDR,163.181.92.237/32,no-resolve 110 | IP-CIDR,163.181.92.238/32,no-resolve 111 | IP-CIDR,163.181.92.231/32,no-resolve 112 | IP-CIDR,163.181.92.234/32,no-resolve 113 | IP-CIDR,163.181.92.236/32,no-resolve 114 | IP-CIDR,163.181.92.235/32,no-resolve 115 | IP-CIDR,43.132.83.175/32,no-resolve 116 | IP-CIDR,43.132.83.54/32,no-resolve 117 | IP-CIDR,43.132.83.9/32,no-resolve 118 | IP-CIDR,43.132.91.37/32,no-resolve 119 | IP-CIDR,43.132.91.110/32,no-resolve 120 | IP-CIDR,43.132.91.45/32,no-resolve 121 | IP-CIDR,150.109.222.109/32,no-resolve 122 | IP-CIDR,150.109.222.102/32,no-resolve 123 | IP-CIDR,150.109.222.97/32,no-resolve 124 | IP-CIDR,150.109.223.49/32,no-resolve 125 | IP-CIDR,150.109.222.103/32,no-resolve 126 | IP-CIDR,150.109.222.99/32,no-resolve 127 | IP-CIDR,150.109.222.110/32,no-resolve 128 | IP-CIDR,203.205.220.62/32,no-resolve 129 | DOMAIN,keylol.com 130 | DOMAIN-SUFFIX,ixigua.com 131 | DOMAIN,www.wenshushu.cn 132 | IP-CIDR,120.53.130.158/32,no-resolve 133 | DOMAIN,frodo.douban.com 134 | DOMAIN,www.douban.com 135 | DOMAIN,api.coolapk.com 136 | DOMAIN,api2.coolapk.com 137 | DOMAIN,api.taptapdada.com 138 | DOMAIN,god.gameyw.netease.com 139 | DOMAIN-SUFFIX,huya.com 140 | DOMAIN-SUFFIX,dongqiudi.com 141 | DOMAIN,ngabbs.com 142 | DOMAIN,bbs.nga.cn 143 | DOMAIN,nga.178.com 144 | DOMAIN,api.vip.miui.com 145 | DOMAIN-SUFFIX,music.163.com 146 | DOMAIN,nstool.netease.com 147 | DOMAIN,wanproxy.127.net 148 | DOMAIN,mam.netease.com 149 | DOMAIN,dt.netease.im 150 | DOMAIN,api.iplay.163.com 151 | DOMAIN,api.k.163.com 152 | DOMAIN,lbs.netease.im 153 | DOMAIN,wannos.127.net 154 | DOMAIN,ac.dun.163.com 155 | DOMAIN-SUFFIX,music.126.net 156 | DOMAIN-SUFFIX,laiqukankan.com 157 | DOMAIN-SUFFIX,music.ntes53.netease.com 158 | IP-CIDR,101.71.154.241/32,no-resolve 159 | IP-CIDR,103.126.92.132/32,no-resolve 160 | IP-CIDR,103.126.92.133/32,no-resolve 161 | IP-CIDR,112.13.119.18/32,no-resolve 162 | IP-CIDR,112.13.122.4/32,no-resolve 163 | IP-CIDR,115.236.118.34/32,no-resolve 164 | IP-CIDR,115.236.121.4/32,no-resolve 165 | IP-CIDR,45.254.48.1/32,no-resolve 166 | IP-CIDR,59.111.160.195/32,no-resolve 167 | IP-CIDR,59.111.19.33/32,no-resolve 168 | IP-CIDR,59.111.19.53/32,no-resolve 169 | DOMAIN-SUFFIX,music.163.com.163jiasu.com 170 | IP-CIDR,119.36.90.80/32,no-resolve 171 | IP-CIDR,111.48.137.146/32,no-resolve 172 | IP-CIDR,1.95.21.35/32,no-resolve 173 | IP-CIDR,47.100.127.239/32,no-resolve 174 | DOMAIN-SUFFIX,lofter.com 175 | DOMAIN,yaolu.yuedu.163.com 176 | DOMAIN-SUFFIX,douyucdn.cn 177 | DOMAIN-SUFFIX,douyu.com 178 | DOMAIN,bbs-api.mihoyo.com 179 | DOMAIN,bbs-api.miyoushe.com 180 | DOMAIN-SUFFIX,douban.com 181 | IP-CIDR,49.233.242.15/32,no-resolve 182 | IP-CIDR,81.70.124.99/32,no-resolve 183 | IP-CIDR,81.70.125.19/32,no-resolve 184 | IP-CIDR,140.143.177.206/32,no-resolve 185 | DOMAIN,api.xiaoheihe.cn 186 | DOMAIN-SUFFIX,y.qq.com 187 | DOMAIN,zonai.skland.com 188 | DOMAIN-SUFFIX,soulapp.cn 189 | DOMAIN,druidv6.if.qidian.com 190 | DOMAIN,ptlogin6.qidian.com 191 | DOMAIN,api.wmpvp.com -------------------------------------------------------------------------------- /generated/rule-set-reject.list: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rule-set-reject.list v0.3.1 24db48a4973b31d718703136cfcc2b3621171f36 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 适用于Clash RULE-SET 5 | DOMAIN,httpdns.bilivideo.com 6 | IP-CIDR,47.101.175.206/32,no-resolve 7 | IP-CIDR,47.100.123.169/32,no-resolve 8 | IP-CIDR,120.46.169.234/32,no-resolve 9 | IP-CIDR,121.36.72.124/32,no-resolve 10 | IP-CIDR,116.63.10.135/32,no-resolve 11 | IP-CIDR,122.9.7.134/32,no-resolve 12 | IP-CIDR,117.185.228.108/32,no-resolve 13 | IP-CIDR,117.144.238.29/32,no-resolve 14 | IP-CIDR,122.9.13.79/32,no-resolve 15 | IP-CIDR,122.9.15.129/32,no-resolve 16 | IP-CIDR,101.91.140.224/32,no-resolve 17 | IP-CIDR,101.91.140.124/32,no-resolve 18 | IP-CIDR,114.116.215.110/32,no-resolve 19 | IP-CIDR,116.63.10.31/32,no-resolve 20 | IP-CIDR,112.64.218.119/32,no-resolve 21 | IP-CIDR,112.65.200.117/32,no-resolve 22 | IP-CIDR,118.89.204.198/23,no-resolve 23 | IP-CIDR6,2402:4e00:1200:ed00:0:9089:6dac:96b6/40,no-resolve 24 | IP-CIDR,119.29.29.98/32,no-resolve -------------------------------------------------------------------------------- /generated/surge.list: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution surge.list v0.3.1 24db48a4973b31d718703136cfcc2b3621171f36 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # Surge分流规则 5 | DOMAIN,httpdns.bilivideo.com,REJECT 6 | IP-CIDR,47.101.175.206/32,REJECT,no-resolve 7 | IP-CIDR,47.100.123.169/32,REJECT,no-resolve 8 | IP-CIDR,120.46.169.234/32,REJECT,no-resolve 9 | IP-CIDR,121.36.72.124/32,REJECT,no-resolve 10 | IP-CIDR,116.63.10.135/32,REJECT,no-resolve 11 | IP-CIDR,122.9.7.134/32,REJECT,no-resolve 12 | IP-CIDR,117.185.228.108/32,REJECT,no-resolve 13 | IP-CIDR,117.144.238.29/32,REJECT,no-resolve 14 | IP-CIDR,122.9.13.79/32,REJECT,no-resolve 15 | IP-CIDR,122.9.15.129/32,REJECT,no-resolve 16 | IP-CIDR,101.91.140.224/32,REJECT,no-resolve 17 | IP-CIDR,101.91.140.124/32,REJECT,no-resolve 18 | IP-CIDR,114.116.215.110/32,REJECT,no-resolve 19 | IP-CIDR,116.63.10.31/32,REJECT,no-resolve 20 | IP-CIDR,112.64.218.119/32,REJECT,no-resolve 21 | IP-CIDR,112.65.200.117/32,REJECT,no-resolve 22 | DOMAIN-SUFFIX,biliapi.net 23 | DOMAIN-SUFFIX,biliapi.com 24 | DOMAIN-SUFFIX,bilibili.com 25 | IP-CIDR,203.107.1.0/24,no-resolve 26 | DOMAIN-SUFFIX,bilivideo.com,DIRECT 27 | DOMAIN-SUFFIX,akamaized.net,DIRECT 28 | DOMAIN-SUFFIX,hdslb.com,DIRECT 29 | DOMAIN-SUFFIX,szbdyd.com,DIRECT 30 | DOMAIN-SUFFIX,weibo.cn 31 | DOMAIN-SUFFIX,weibo.com 32 | DOMAIN-SUFFIX,weibocdn.com 33 | DOMAIN-SUFFIX,wbimg.cn 34 | DOMAIN-SUFFIX,wbimg.com 35 | DOMAIN-SUFFIX,sinaimg.cn 36 | DOMAIN-KEYWORD,weibo 37 | DOMAIN,tieba.baidu.com 38 | DOMAIN,tbmsg.baidu.com 39 | DOMAIN,tb5.bdstatic.com 40 | DOMAIN,fclog.baidu.com 41 | DOMAIN,gsp0.baidu.com 42 | DOMAIN,hm.baidu.com 43 | DOMAIN,www.baidu.com 44 | DOMAIN,tiebac.baidu.com 45 | IP-CIDR,180.76.76.0/24,no-resolve 46 | DOMAIN,httpsdns.baidu.com 47 | DOMAIN,c.tieba.baidu.com 48 | DOMAIN,httpdns.baidu.com 49 | DOMAIN,httpdns.baidubce.com 50 | DOMAIN,szshort.weixin.qq.com 51 | DOMAIN,szextshort.weixin.qq.com 52 | DOMAIN,szminorshort.weixin.qq.com 53 | DOMAIN,mp.weixin.qq.com 54 | DOMAIN-SUFFIX,zhihu.com 55 | IP-CIDR,103.41.167.0/24,no-resolve 56 | IP-CIDR,118.89.204.198/23,REJECT,no-resolve 57 | IP-CIDR6,2402:4e00:1200:ed00:0:9089:6dac:96b6/40,REJECT,no-resolve 58 | DOMAIN-KEYWORD,core-c-lq 59 | DOMAIN-KEYWORD,core-lq 60 | DOMAIN-KEYWORD,normal-c-lq 61 | DOMAIN-KEYWORD,normal-lq 62 | DOMAIN-KEYWORD,search-quic-lq 63 | DOMAIN-KEYWORD,search-lq 64 | DOMAIN-SUFFIX,zijieapi.com,DIRECT 65 | DOMAIN-SUFFIX,ecombdapi.com,DIRECT 66 | DOMAIN-KEYWORD,-normal-hl 67 | DOMAIN-KEYWORD,-normal-c-hl 68 | DOMAIN-KEYWORD,-core-c-hl 69 | DOMAIN-KEYWORD,-normal-lf 70 | DOMAIN-KEYWORD,-normal-c-lf 71 | DOMAIN-KEYWORD,-core-c-lf 72 | DOMAIN,sso.douyin.com 73 | DOMAIN,www.douyin.com 74 | DOMAIN-SUFFIX,snssdk.com 75 | DOMAIN-SUFFIX,toutiaoapi.com 76 | DOMAIN-SUFFIX,gifshow.com 77 | DOMAIN-SUFFIX,ksapisrv.com 78 | DOMAIN-SUFFIX,xiaohongshu.com 79 | DOMAIN-KEYWORD,xiaohongshu 80 | IP-CIDR,114.55.236.88/32,no-resolve 81 | IP-CIDR,47.97.64.97/32,no-resolve 82 | IP-CIDR,47.97.66.48/32,no-resolve 83 | IP-CIDR,81.69.116.86/32,no-resolve 84 | IP-CIDR,119.45.249.52/32,no-resolve 85 | IP-CIDR,81.69.116.87/32,no-resolve 86 | IP-CIDR,119.45.2.92/32,no-resolve 87 | IP-CIDR,1.13.12.27/32,no-resolve 88 | IP-CIDR,81.69.116.102/32,no-resolve 89 | IP-CIDR,43.159.25.122/32,no-resolve 90 | IP-CIDR,43.159.25.28/32,no-resolve 91 | IP-CIDR,47.246.29.223/32,no-resolve 92 | IP-CIDR,47.246.29.226/32,no-resolve 93 | IP-CIDR,47.246.29.227/32,no-resolve 94 | IP-CIDR,47.246.29.225/32,no-resolve 95 | IP-CIDR,47.246.29.224/32,no-resolve 96 | IP-CIDR,47.246.29.222/32,no-resolve 97 | IP-CIDR,47.246.29.229/32,no-resolve 98 | IP-CIDR,47.246.29.228/32,no-resolve 99 | IP-CIDR,211.152.149.12/32,no-resolve 100 | IP-CIDR,49.51.224.95/32,no-resolve 101 | IP-CIDR,43.175.44.15/32,no-resolve 102 | IP-CIDR,23.236.104.30/32,no-resolve 103 | IP-CIDR,43.132.81.61/32,no-resolve 104 | IP-CIDR,101.33.27.26/32,no-resolve 105 | IP-CIDR,43.152.29.38/32,no-resolve 106 | IP-CIDR,43.152.26.110/32,no-resolve 107 | IP-CIDR,101.33.11.32/32,no-resolve 108 | IP-CIDR,163.181.1.228/32,no-resolve 109 | IP-CIDR,163.181.1.226/32,no-resolve 110 | IP-CIDR,163.181.1.230/32,no-resolve 111 | IP-CIDR,163.181.1.227/32,no-resolve 112 | IP-CIDR,163.181.1.231/32,no-resolve 113 | IP-CIDR,163.181.1.229/32,no-resolve 114 | IP-CIDR,163.181.1.224/32,no-resolve 115 | IP-CIDR,163.181.1.225/32,no-resolve 116 | IP-CIDR,47.246.23.230/32,no-resolve 117 | IP-CIDR,47.246.23.234/32,no-resolve 118 | IP-CIDR,47.246.23.228/32,no-resolve 119 | IP-CIDR,47.246.23.233/32,no-resolve 120 | IP-CIDR,47.246.23.231/32,no-resolve 121 | IP-CIDR,47.246.23.232/32,no-resolve 122 | IP-CIDR,47.246.23.227/32,no-resolve 123 | IP-CIDR,47.246.23.229/32,no-resolve 124 | IP-CIDR,43.152.42.109/32,no-resolve 125 | IP-CIDR,43.175.22.27/32,no-resolve 126 | IP-CIDR,43.175.22.42/32,no-resolve 127 | IP-CIDR,43.175.22.26/32,no-resolve 128 | IP-CIDR,43.132.84.11/32,no-resolve 129 | IP-CIDR,101.33.20.34/32,no-resolve 130 | IP-CIDR,49.51.224.105/32,no-resolve 131 | IP-CIDR,49.51.224.103/32,no-resolve 132 | IP-CIDR,163.181.92.232/32,no-resolve 133 | IP-CIDR,163.181.92.233/32,no-resolve 134 | IP-CIDR,163.181.92.237/32,no-resolve 135 | IP-CIDR,163.181.92.238/32,no-resolve 136 | IP-CIDR,163.181.92.231/32,no-resolve 137 | IP-CIDR,163.181.92.234/32,no-resolve 138 | IP-CIDR,163.181.92.236/32,no-resolve 139 | IP-CIDR,163.181.92.235/32,no-resolve 140 | IP-CIDR,43.132.83.175/32,no-resolve 141 | IP-CIDR,43.132.83.54/32,no-resolve 142 | IP-CIDR,43.132.83.9/32,no-resolve 143 | IP-CIDR,43.132.91.37/32,no-resolve 144 | IP-CIDR,43.132.91.110/32,no-resolve 145 | IP-CIDR,43.132.91.45/32,no-resolve 146 | IP-CIDR,150.109.222.109/32,no-resolve 147 | IP-CIDR,150.109.222.102/32,no-resolve 148 | IP-CIDR,150.109.222.97/32,no-resolve 149 | IP-CIDR,150.109.223.49/32,no-resolve 150 | IP-CIDR,150.109.222.103/32,no-resolve 151 | IP-CIDR,150.109.222.99/32,no-resolve 152 | IP-CIDR,150.109.222.110/32,no-resolve 153 | IP-CIDR,203.205.220.62/32,no-resolve 154 | DOMAIN,keylol.com 155 | DOMAIN-SUFFIX,ixigua.com 156 | DOMAIN,www.wenshushu.cn 157 | IP-CIDR,119.29.29.98/32,REJECT,no-resolve 158 | IP-CIDR,120.53.130.158/32,no-resolve 159 | DOMAIN,frodo.douban.com 160 | DOMAIN,www.douban.com 161 | DOMAIN,api.coolapk.com 162 | DOMAIN,api2.coolapk.com 163 | DOMAIN,api.taptapdada.com 164 | DOMAIN,god.gameyw.netease.com 165 | DOMAIN-SUFFIX,huya.com 166 | DOMAIN-SUFFIX,dongqiudi.com 167 | DOMAIN,ngabbs.com 168 | DOMAIN,bbs.nga.cn 169 | DOMAIN,nga.178.com 170 | DOMAIN,api.vip.miui.com 171 | DOMAIN-SUFFIX,music.163.com 172 | DOMAIN,nstool.netease.com 173 | DOMAIN,wanproxy.127.net 174 | DOMAIN,mam.netease.com 175 | DOMAIN,dt.netease.im 176 | DOMAIN,api.iplay.163.com 177 | DOMAIN,api.k.163.com 178 | DOMAIN,lbs.netease.im 179 | DOMAIN,wannos.127.net 180 | DOMAIN,ac.dun.163.com 181 | DOMAIN-SUFFIX,music.126.net 182 | DOMAIN-SUFFIX,laiqukankan.com 183 | DOMAIN-SUFFIX,music.ntes53.netease.com 184 | IP-CIDR,101.71.154.241/32,no-resolve 185 | IP-CIDR,103.126.92.132/32,no-resolve 186 | IP-CIDR,103.126.92.133/32,no-resolve 187 | IP-CIDR,112.13.119.18/32,no-resolve 188 | IP-CIDR,112.13.122.4/32,no-resolve 189 | IP-CIDR,115.236.118.34/32,no-resolve 190 | IP-CIDR,115.236.121.4/32,no-resolve 191 | IP-CIDR,45.254.48.1/32,no-resolve 192 | IP-CIDR,59.111.160.195/32,no-resolve 193 | IP-CIDR,59.111.19.33/32,no-resolve 194 | IP-CIDR,59.111.19.53/32,no-resolve 195 | DOMAIN-SUFFIX,music.163.com.163jiasu.com 196 | IP-CIDR,119.36.90.80/32,no-resolve 197 | IP-CIDR,111.48.137.146/32,no-resolve 198 | IP-CIDR,1.95.21.35/32,no-resolve 199 | IP-CIDR,47.100.127.239/32,no-resolve 200 | DOMAIN-SUFFIX,lofter.com 201 | DOMAIN,yaolu.yuedu.163.com 202 | DOMAIN-SUFFIX,lf127.net,DIRECT 203 | DOMAIN-SUFFIX,hls3-akm.douyucdn.cn,DIRECT 204 | DOMAIN-SUFFIX,hlsa-akm.douyucdn.cn,DIRECT 205 | DOMAIN-SUFFIX,hls1a-akm.douyucdn.cn,DIRECT 206 | DOMAIN-SUFFIX,hls3a-akm.douyucdn.cn,DIRECT 207 | DOMAIN-SUFFIX,vplay1a.douyucdn.cn,DIRECT 208 | DOMAIN-SUFFIX,vplay3a.douyucdn.cn,DIRECT 209 | DOMAIN-SUFFIX,ws-tct.douyucdn.cn,DIRECT 210 | DOMAIN-SUFFIX,akm-tct.douyucdn.cn,DIRECT 211 | DOMAIN-SUFFIX,tx2play1.douyucdn.cn,DIRECT 212 | DOMAIN-SUFFIX,tc-tct1.douyucdn.cn,DIRECT 213 | DOMAIN-SUFFIX,wsproxy.douyu.com,DIRECT 214 | DOMAIN-SUFFIX,danmuproxy.douyu.com,DIRECT 215 | DOMAIN-SUFFIX,img.douyucdn.cn,DIRECT 216 | DOMAIN-SUFFIX,douyucdn.cn 217 | DOMAIN-SUFFIX,douyu.com 218 | DOMAIN,bbs-api.mihoyo.com 219 | DOMAIN,bbs-api.miyoushe.com 220 | DOMAIN-SUFFIX,douban.com 221 | IP-CIDR,49.233.242.15/32,no-resolve 222 | IP-CIDR,81.70.124.99/32,no-resolve 223 | IP-CIDR,81.70.125.19/32,no-resolve 224 | IP-CIDR,140.143.177.206/32,no-resolve 225 | DOMAIN,api.xiaoheihe.cn 226 | DOMAIN,y.qq.com,DIRECT 227 | DOMAIN-SUFFIX,y.qq.com 228 | DOMAIN,zonai.skland.com 229 | DOMAIN,china-img.soulapp.cn,DIRECT 230 | DOMAIN,img.soulapp.cn,DIRECT 231 | DOMAIN-SUFFIX,soulapp.cn 232 | DOMAIN,druidv6.if.qidian.com 233 | DOMAIN,ptlogin6.qidian.com 234 | DOMAIN,api.wmpvp.com 235 | -------------------------------------------------------------------------------- /parser-header.yaml: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env python3 2 | # 针对部分网站显示IP归属地的分流规则 3 | # anti-ip-attribution parser-header.yaml 4 | # https://github.com/SunsetMkt/anti-ip-attribution 5 | # 生成parser.yaml采用的基础模板,可以自定义。 6 | parsers: # array 7 | - url: https://example.com/profile.yaml # 修改为实际使用的URL 8 | yaml: 9 | prepend-proxy-groups: # 数组合并至原配置proxy-groups数组前 10 | - name: "IP归属地" 11 | type: select 12 | proxies: 13 | - 🔰 选择节点 # 修改为实际使用的节点选择proxy-groups 14 | - DIRECT # 直连 15 | prepend-rules: # 数组合并至原配置rules数组前 16 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | PyYAML==6.0 2 | GitPython==3.1.41 3 | -------------------------------------------------------------------------------- /rules.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | # ======= 哔哩哔哩 ======= # 18 | # 哔哩哔哩 19 | # 阻止私有DNS 20 | - DOMAIN,httpdns.bilivideo.com,REJECT # issues/51 21 | # KEY_EXT_P2P_HTTPDNS_BILI_IP 22 | - IP-CIDR,47.101.175.206/32,REJECT 23 | - IP-CIDR,47.100.123.169/32,REJECT 24 | - IP-CIDR,120.46.169.234/32,REJECT 25 | - IP-CIDR,121.36.72.124/32,REJECT 26 | # KEY_EXT_P2P_BILIDNS_CMCC_IP 27 | - IP-CIDR,116.63.10.135/32,REJECT 28 | - IP-CIDR,122.9.7.134/32,REJECT 29 | - IP-CIDR,117.185.228.108/32,REJECT 30 | - IP-CIDR,117.144.238.29/32,REJECT 31 | # KEY_EXT_P2P_BILIDNS_CT_IP 32 | - IP-CIDR,122.9.13.79/32,REJECT 33 | - IP-CIDR,122.9.15.129/32,REJECT 34 | - IP-CIDR,101.91.140.224/32,REJECT 35 | - IP-CIDR,101.91.140.124/32,REJECT 36 | # KEY_EXT_P2P_BILIDNS_CU_IP 37 | - IP-CIDR,114.116.215.110/32,REJECT 38 | - IP-CIDR,116.63.10.31/32,REJECT 39 | - IP-CIDR,112.64.218.119/32,REJECT 40 | - IP-CIDR,112.65.200.117/32,REJECT 41 | - DOMAIN-SUFFIX,biliapi.net # 哔哩哔哩API域名 42 | # - DOMAIN,api.bilibili.tv # 哔哩哔哩海外版?(使用性存疑) 43 | - DOMAIN-SUFFIX,biliapi.com # 哔哩哔哩App的API域名 44 | - DOMAIN-SUFFIX,bilibili.com # 哔哩哔哩全站域名,不包括内容CDN 45 | - IP-CIDR,203.107.1.0/24 #不需要REJECT,会影响其他HTTPDNS,仅代理即可 46 | # issue/49,CDN内容直连 47 | - DOMAIN-SUFFIX,bilivideo.com,DIRECT # 直播 48 | - DOMAIN-SUFFIX,akamaized.net,DIRECT # akamai视频CDN 49 | - DOMAIN-SUFFIX,hdslb.com,DIRECT # 静态内容 50 | - DOMAIN-SUFFIX,szbdyd.com,DIRECT # PCDN(P2P) 51 | # - DOMAIN,api.bilibili.com # 哔哩哔哩国内网页版API域名 # 网友提供哔哩哔哩IP定位接口 52 | # - DOMAIN,app.bilibili.com # 哔哩哔哩App的API域名 53 | # - DOMAIN,api.live.bilibili.com # 哔哩哔哩直播API域名 54 | # - DOMAIN,api.vc.bilibili.com # 哔哩哔哩视频API域名,Copilot提供 55 | # - DOMAIN,passport.bilibili.com # 哔哩哔哩账号登录API域名 56 | # - DOMAIN,live-trace.bilibili.com # 哔哩哔哩跟踪?API域名 57 | # - DOMAIN,message.bilibili.com # 哔哩哔哩消息API域名 58 | # - DOMAIN,cm.bilibili.com # 哔哩哔哩统计API域名 59 | # - DOMAIN-SUFFIX,im9.com 60 | # - DOMAIN-SUFFIX,acg.tv 61 | # - DOMAIN-SUFFIX,biligame.com 62 | # ======= 微博 ======= # 63 | # 微博 64 | # issue#5 报告发表和评论操作会暴露IP,建议不要使用手机客户端,无法确定是否存在其他IP或域名,已扩充到DOMAIN-SUFFIX 65 | # - DOMAIN-SUFFIX,api.weibo.cn # 微博API域名 66 | # - DOMAIN-SUFFIX,api.weibo.com # 微博API域名,com站以防万一 67 | # - DOMAIN-SUFFIX,weibo.com # 微博全站域名,不包括内容CDN 68 | - DOMAIN-SUFFIX,weibo.cn 69 | - DOMAIN-SUFFIX,weibo.com 70 | - DOMAIN-SUFFIX,weibocdn.com 71 | - DOMAIN-SUFFIX,wbimg.cn 72 | - DOMAIN-SUFFIX,wbimg.com 73 | - DOMAIN-SUFFIX,sinaimg.cn 74 | - DOMAIN-KEYWORD,weibo 75 | # ======= 百度贴吧 ======= # 76 | # 百度贴吧 77 | - DOMAIN,tieba.baidu.com # 百度贴吧域名,不存在单独的API域名 78 | - DOMAIN,tbmsg.baidu.com # 贴吧私信域名? 79 | - DOMAIN,tb5.bdstatic.com # 贴吧不确定用途 80 | - DOMAIN,fclog.baidu.com # 百度日志? 81 | - DOMAIN,gsp0.baidu.com # 百度追踪? 82 | - DOMAIN,hm.baidu.com # 百度统计 83 | - DOMAIN,www.baidu.com # 网友提供贴吧IP定位接口 84 | # Update #32 85 | - DOMAIN,tiebac.baidu.com # 贴吧App API域名 86 | # - DOMAIN-KEYWORD,tieba # 极端方案,可能会代理图片CDN 87 | # issue#35#issuecomment-1438885974 88 | - IP-CIDR,180.76.76.0/24 # Public DNS 89 | - DOMAIN,httpsdns.baidu.com 90 | - DOMAIN,c.tieba.baidu.com 91 | - DOMAIN,httpdns.baidu.com 92 | - DOMAIN,httpdns.baidubce.com 93 | # ======= 微信 ======= # 94 | # 微信通用 95 | - DOMAIN,szshort.weixin.qq.com # 用途未知 96 | - DOMAIN,szextshort.weixin.qq.com 97 | - DOMAIN,szminorshort.weixin.qq.com 98 | # 微信公众号评论 99 | - DOMAIN,mp.weixin.qq.com # 微信公众号,不存在单独的API域名 100 | # 微信视频号评论 101 | # - DOMAIN,szshort.weixin.qq.com # 疑似微信视频号,用途未知 102 | # 无法确定准确的请求方式,建议全局代理 103 | # ======= 知乎 ======= # 104 | # 知乎 105 | # - DOMAIN,zhihu-web-analytics.zhihu.com # 知乎统计API域名 106 | # - DOMAIN,www.zhihu.com # 知乎主站域名,不存在单独有效的API域名 107 | # - DOMAIN,api.zhihu.com # 知乎API域名 108 | - DOMAIN-SUFFIX,zhihu.com # 知乎全站域名,不包括图片CDN 109 | - IP-CIDR,103.41.167.0/24 # 网友提供知乎IP定位接口 110 | # 有报告iOS端使用规则后仍然泄露真实IP属地 111 | # issue#24 112 | - IP-CIDR,118.89.204.198/23,REJECT # 知乎 HTTPDNS (IPv4) 113 | - IP-CIDR6,2402:4e00:1200:ed00:0:9089:6dac:96b6/40,REJECT # 知乎 HTTPDNS (IPv6) 114 | # ======= 国家反诈中心 ======= # 115 | # 国家反诈中心App 116 | # - DOMAIN-SUFFIX,gjfzpt.cn,REJECT # 国家反诈中心域名,全部阻断 117 | # - IP-CIDR,219.143.187.136/32,REJECT # 用途未知 118 | # ======= 抖音 ======= # 119 | # 抖音 120 | # 请求域名过多,建议全局代理 121 | # 网友提供抖音IP定位接口 122 | - DOMAIN-KEYWORD,core-c-lq 123 | - DOMAIN-KEYWORD,core-lq 124 | - DOMAIN-KEYWORD,normal-c-lq 125 | - DOMAIN-KEYWORD,normal-lq 126 | - DOMAIN-KEYWORD,search-quic-lq 127 | - DOMAIN-KEYWORD,search-lq 128 | # Update #32 129 | # Append 130 | # issue#33#issuecomment-1421094069 131 | # - DOMAIN-KEYWORD,-normal- 132 | - DOMAIN-SUFFIX,zijieapi.com,DIRECT 133 | - DOMAIN-SUFFIX,ecombdapi.com,DIRECT 134 | - DOMAIN-KEYWORD,-normal-hl 135 | - DOMAIN-KEYWORD,-normal-c-hl 136 | - DOMAIN-KEYWORD,-core-c-hl 137 | - DOMAIN-KEYWORD,-normal-lf 138 | - DOMAIN-KEYWORD,-normal-c-lf 139 | - DOMAIN-KEYWORD,-core-c-lf 140 | # - DOMAIN-KEYWORD,-core- 141 | # - DOMAIN-KEYWORD,-misc- 142 | # - DOMAIN-KEYWORD,-search- 143 | # - DOMAIN-KEYWORD,-aweme- 144 | # - DOMAIN-KEYWORD,cdn-tos # CDN 145 | # 一些确定的域名 146 | # #33 针对 amemv.com 域名下的 -normal- 关键词代理就能实现IP归属地修改。如果对全局域名进行代理的话,请求的视频内容大部分来自海外cdn。 147 | # - DOMAIN-SUFFIX,bytetos.com # CDN 148 | # - DOMAIN-SUFFIX,amemv.com 149 | # - DOMAIN-SUFFIX,zijieapi.com 150 | # - DOMAIN-SUFFIX,awemeughun.com 151 | # - DOMAIN-SUFFIX,ecombdapi.com 152 | # - DOMAIN-SUFFIX,bytegecko.com 153 | # - DOMAIN-SUFFIX,ttwebview.com 154 | # - DOMAIN-SUFFIX,bytetcc.com 155 | # - DOMAIN-SUFFIX,douyinvod.com # 视频CDN 156 | # - DOMAIN-SUFFIX,bytednsdoc.com # 图片CDN 157 | # - DOMAIN-SUFFIX,douyinpic.com # 图片CDN 158 | # - DOMAIN-SUFFIX,byteimg.com # 图片CDN 159 | # - DOMAIN-SUFFIX,bytegoofy.com # 图片CDN? 160 | # - DOMAIN-SUFFIX,ibytedapm.com # CDN 161 | # - DOMAIN-SUFFIX,yhgfb-cn-static.com # CDN 162 | # P.S. 抖音适用于PC的Web版API非常明确 163 | - DOMAIN,sso.douyin.com # 登录 164 | - DOMAIN,www.douyin.com # Web版PC端 165 | - DOMAIN-SUFFIX,snssdk.com # API域名 166 | # ======= 头条 ======= # 167 | # 网友提供头条IP定位接口 168 | - DOMAIN-SUFFIX,toutiaoapi.com 169 | # ======= 快手 ======= # 170 | # issue#3 提供 171 | # 个人主页似乎有延迟,未测试 172 | # 一个域名连不上会请求另一个,两个同时使用就会生效了 173 | - DOMAIN-SUFFIX,gifshow.com 174 | - DOMAIN-SUFFIX,ksapisrv.com 175 | # ======= 小红书 ======= # 176 | # issue#4 提供 177 | - DOMAIN-SUFFIX,xiaohongshu.com 178 | - DOMAIN-KEYWORD,xiaohongshu 179 | # issue#57 180 | # edith.xiaohongshu.com的全球解析结果 181 | - IP-CIDR,114.55.236.88/32 182 | - IP-CIDR,47.97.64.97/32 183 | - IP-CIDR,47.97.66.48/32 184 | - IP-CIDR,81.69.116.86/32 185 | - IP-CIDR,119.45.249.52/32 186 | - IP-CIDR,81.69.116.87/32 187 | - IP-CIDR,119.45.2.92/32 188 | - IP-CIDR,1.13.12.27/32 189 | - IP-CIDR,81.69.116.102/32 190 | - IP-CIDR,43.159.25.122/32 191 | - IP-CIDR,43.159.25.28/32 192 | - IP-CIDR,47.246.29.223/32 193 | - IP-CIDR,47.246.29.226/32 194 | - IP-CIDR,47.246.29.227/32 195 | - IP-CIDR,47.246.29.225/32 196 | - IP-CIDR,47.246.29.224/32 197 | - IP-CIDR,47.246.29.222/32 198 | - IP-CIDR,47.246.29.229/32 199 | - IP-CIDR,47.246.29.228/32 200 | - IP-CIDR,211.152.149.12/32 201 | - IP-CIDR,49.51.224.95/32 202 | - IP-CIDR,43.175.44.15/32 203 | - IP-CIDR,23.236.104.30/32 204 | - IP-CIDR,43.132.81.61/32 205 | - IP-CIDR,101.33.27.26/32 206 | - IP-CIDR,43.152.29.38/32 207 | - IP-CIDR,43.152.26.110/32 208 | - IP-CIDR,101.33.11.32/32 209 | - IP-CIDR,163.181.1.228/32 210 | - IP-CIDR,163.181.1.226/32 211 | - IP-CIDR,163.181.1.230/32 212 | - IP-CIDR,163.181.1.227/32 213 | - IP-CIDR,163.181.1.231/32 214 | - IP-CIDR,163.181.1.229/32 215 | - IP-CIDR,163.181.1.224/32 216 | - IP-CIDR,163.181.1.225/32 217 | - IP-CIDR,47.246.23.230/32 218 | - IP-CIDR,47.246.23.234/32 219 | - IP-CIDR,47.246.23.228/32 220 | - IP-CIDR,47.246.23.233/32 221 | - IP-CIDR,47.246.23.231/32 222 | - IP-CIDR,47.246.23.232/32 223 | - IP-CIDR,47.246.23.227/32 224 | - IP-CIDR,47.246.23.229/32 225 | - IP-CIDR,43.152.42.109/32 226 | - IP-CIDR,43.175.22.27/32 227 | - IP-CIDR,43.175.22.42/32 228 | - IP-CIDR,43.175.22.26/32 229 | - IP-CIDR,43.132.84.11/32 230 | - IP-CIDR,101.33.20.34/32 231 | - IP-CIDR,49.51.224.105/32 232 | - IP-CIDR,49.51.224.103/32 233 | - IP-CIDR,163.181.92.232/32 234 | - IP-CIDR,163.181.92.233/32 235 | - IP-CIDR,163.181.92.237/32 236 | - IP-CIDR,163.181.92.238/32 237 | - IP-CIDR,163.181.92.231/32 238 | - IP-CIDR,163.181.92.234/32 239 | - IP-CIDR,163.181.92.236/32 240 | - IP-CIDR,163.181.92.235/32 241 | - IP-CIDR,43.132.83.175/32 242 | - IP-CIDR,43.132.83.54/32 243 | - IP-CIDR,43.132.83.9/32 244 | - IP-CIDR,43.132.91.37/32 245 | - IP-CIDR,43.132.91.110/32 246 | - IP-CIDR,43.132.91.45/32 247 | - IP-CIDR,150.109.222.109/32 248 | - IP-CIDR,150.109.222.102/32 249 | - IP-CIDR,150.109.222.97/32 250 | - IP-CIDR,150.109.223.49/32 251 | - IP-CIDR,150.109.222.103/32 252 | - IP-CIDR,150.109.222.99/32 253 | - IP-CIDR,150.109.222.110/32 254 | - IP-CIDR,203.205.220.62/32 255 | # ======= 其乐论坛 ======= # 256 | # issue#11 提供 257 | - DOMAIN,keylol.com # 评论区 258 | # ======= 西瓜视频 ======= # 259 | # issue#10 提供 260 | - DOMAIN-SUFFIX,ixigua.com # 可以阻止真实ip显示,但无法显示代理ip 261 | # ======= 文叔叔 ======= # 262 | # DoingDog/anti-ip-attribution 263 | - DOMAIN,www.wenshushu.cn 264 | # ======= 豆瓣 ======= # 265 | # issue#14提供 266 | # iOS客户端 267 | # 目前无法可靠地处理iOS端的请求,建议全局代理 268 | - IP-CIDR,119.29.29.98/32,REJECT 269 | - IP-CIDR,120.53.130.158/32 # issue#56 270 | - DOMAIN,frodo.douban.com 271 | # 网页端 272 | - DOMAIN,www.douban.com 273 | # ======= 酷安 ======= # 274 | # issue#15提供 275 | - DOMAIN,api.coolapk.com 276 | # issue#62 277 | - DOMAIN,api2.coolapk.com 278 | # ======= TapTap ======= # 279 | # issue#16提供 280 | - DOMAIN,api.taptapdada.com 281 | # ======= 网易大神 ======= # 282 | # issue#17提供 283 | - DOMAIN,god.gameyw.netease.com 284 | # ======= 虎牙 ======= # 285 | # issue#17提供 286 | - DOMAIN-SUFFIX,huya.com 287 | # ======= 懂球帝 ======= # 288 | # issue#18提供 289 | - DOMAIN-SUFFIX,dongqiudi.com 290 | # ======= NGA ======= # 291 | # issue#19提供 292 | # 个人主页ip。开代理以后发一个评论就会变代理ip 293 | - DOMAIN,ngabbs.com 294 | # issue#47提供 295 | - DOMAIN,bbs.nga.cn 296 | - DOMAIN,nga.178.com 297 | # ======= 小米社区 ======= # 298 | # 如有必要可以DOMAIN-SUFFIX,vip.miui.com 299 | - DOMAIN,api.vip.miui.com 300 | # ======= 网易云音乐 ======= # 301 | # issue#21#issuecomment-1213136722 302 | # - DOMAIN,music.163.com 303 | # https://lbs.netease.im/lbs/conf.jsp # httpdns 304 | # - DOMAIN,httpdns.n.netease.com,REJECT 305 | # - IP-CIDR,59.111.239.61/32,REJECT 306 | # - IP-CIDR,59.111.239.62/32,REJECT 307 | # issue#21#issuecomment-1214307572 308 | - DOMAIN-SUFFIX,music.163.com 309 | - DOMAIN,nstool.netease.com 310 | - DOMAIN,wanproxy.127.net 311 | - DOMAIN,mam.netease.com 312 | - DOMAIN,dt.netease.im 313 | - DOMAIN,api.iplay.163.com 314 | - DOMAIN,api.k.163.com 315 | - DOMAIN,lbs.netease.im 316 | - DOMAIN,wannos.127.net 317 | - DOMAIN,ac.dun.163.com 318 | - DOMAIN-SUFFIX,music.126.net 319 | - DOMAIN-SUFFIX,laiqukankan.com 320 | - DOMAIN-SUFFIX,music.ntes53.netease.com 321 | # telv4.music.ntes53.netease.com 322 | # telv6.music.ntes53.netease.com 323 | # cmccv4.music.ntes53.netease.com 324 | # cmccv6.music.ntes53.netease.com 325 | # univ4.music.ntes53.netease.com 326 | # univ6.music.ntes53.netease.com 327 | # overseasv4.music.ntes53.netease.com 328 | # overseasv6.music.ntes53.netease.com 329 | # bgpv4.music.ntes53.netease.com 330 | # bgpv6.music.ntes53.netease.com 331 | - IP-CIDR,101.71.154.241/32 332 | - IP-CIDR,103.126.92.132/32 333 | - IP-CIDR,103.126.92.133/32 334 | - IP-CIDR,112.13.119.18/32 335 | - IP-CIDR,112.13.122.4/32 336 | - IP-CIDR,115.236.118.34/32 337 | - IP-CIDR,115.236.121.4/32 338 | - IP-CIDR,45.254.48.1/32 339 | - IP-CIDR,59.111.160.195/32 340 | - IP-CIDR,59.111.19.33/32 341 | - IP-CIDR,59.111.19.53/32 342 | # issue #70 343 | - DOMAIN-SUFFIX,music.163.com.163jiasu.com 344 | - IP-CIDR,119.36.90.80/32 345 | - IP-CIDR,111.48.137.146/32 346 | - IP-CIDR,1.95.21.35/32 347 | - IP-CIDR,47.100.127.239/32 348 | # ======= Lofter ======= # 349 | - DOMAIN-SUFFIX,lofter.com 350 | - DOMAIN,yaolu.yuedu.163.com 351 | - DOMAIN-SUFFIX,lf127.net,DIRECT 352 | # ======= 斗鱼 ======= # 353 | # issue#23 354 | # direct斗鱼直播流 https://github.com/wbt5/real-url/issues/340 355 | - DOMAIN-SUFFIX,hls3-akm.douyucdn.cn,DIRECT 356 | - DOMAIN-SUFFIX,hlsa-akm.douyucdn.cn,DIRECT 357 | - DOMAIN-SUFFIX,hls1a-akm.douyucdn.cn,DIRECT 358 | - DOMAIN-SUFFIX,hls3a-akm.douyucdn.cn,DIRECT 359 | - DOMAIN-SUFFIX,vplay1a.douyucdn.cn,DIRECT 360 | - DOMAIN-SUFFIX,vplay3a.douyucdn.cn,DIRECT 361 | - DOMAIN-SUFFIX,ws-tct.douyucdn.cn,DIRECT 362 | - DOMAIN-SUFFIX,akm-tct.douyucdn.cn,DIRECT 363 | - DOMAIN-SUFFIX,tx2play1.douyucdn.cn,DIRECT 364 | - DOMAIN-SUFFIX,tc-tct1.douyucdn.cn,DIRECT 365 | #direct弹幕 366 | - DOMAIN-SUFFIX,wsproxy.douyu.com,DIRECT 367 | - DOMAIN-SUFFIX,danmuproxy.douyu.com,DIRECT 368 | #direct图片 369 | - DOMAIN-SUFFIX,img.douyucdn.cn,DIRECT 370 | - DOMAIN-SUFFIX,douyucdn.cn 371 | - DOMAIN-SUFFIX,douyu.com 372 | # ======= 米游社 ======= # 373 | - DOMAIN,bbs-api.mihoyo.com 374 | # issue#39 375 | # 米游社主域名已从 bbs.mihoyo.com 302至 miyoushe.com 376 | - DOMAIN,bbs-api.miyoushe.com 377 | # - DOMAIN,api-takumi.mihoyo.com 378 | # - DOMAIN,log-upload.mihoyo.com 379 | # ======= MIUI ======= # 380 | # 应用包管理组件API 381 | # - DOMAIN,api.installer.xiaomi.com,REJECT 382 | # miui-tracking 383 | # - DOMAIN,tracking.miui.com,REJECT 384 | # - DOMAIN,tracking.intl.miui.com,REJECT 385 | # - DOMAIN,tracking.rus.miui.com,REJECT 386 | # - DOMAIN,tracking.india.miui.com,REJECT 387 | # 病毒扫描 388 | # - DOMAIN-SUFFIX,sec.miui.com,REJECT 389 | # - DOMAIN-SUFFIX,sec.intl.miui.com,REJECT 390 | # - DOMAIN,api.sec.miui.com,REJECT 391 | # - DOMAIN,staging.sec.miui.com,REJECT 392 | # - DOMAIN,a0.app.xiaomi.com,REJECT 393 | # ======= 豆瓣 ======= # 394 | # issue#37 395 | # IOS APP实测有效,其余设备不保证,doubanio.com的域名是加载图片的,实测直连不影响地区 396 | - DOMAIN-SUFFIX,douban.com 397 | - IP-CIDR,49.233.242.15/32 398 | - IP-CIDR,81.70.124.99/32 399 | - IP-CIDR,81.70.125.19/32 400 | - IP-CIDR,140.143.177.206/32 401 | # ======= 小黑盒 ======= # 402 | # 小黑盒主域名,包括文章之类(图片CDN等静态资源不在此域名范围内) 403 | # issue#39 404 | - DOMAIN,api.xiaoheihe.cn 405 | # ======= QQ音乐 ======= # 406 | # 测试 407 | - DOMAIN,y.qq.com,DIRECT # 图片资源,直连 408 | - DOMAIN-SUFFIX,y.qq.com # u*.y.qq.com 409 | # ======= 森空岛 ====== # 410 | - DOMAIN,zonai.skland.com 411 | # ======= Soul ======= # 412 | # https://www.soulapp.cn/ 413 | # 目前采取了比较激进的策略 414 | # 疑似图片资源,直连 415 | - DOMAIN,china-img.soulapp.cn,DIRECT 416 | - DOMAIN,img.soulapp.cn,DIRECT 417 | # 其余可疑API域名 418 | # - DOMAIN-SUFFIX,getui.com # 个推,专业的数据智能服务商-为垂直领域提供数据智能解决方案 419 | - DOMAIN-SUFFIX,soulapp.cn 420 | # - DOMAIN-SUFFIX,qchannel03.cn # 功能未知,但检测到对此的请求 421 | # ======= 起点App ======= # 422 | # issues#62 423 | # 章评书评区IP(大部分业务都塞在这个域名下,api book search login一大堆) 424 | - DOMAIN,druidv6.if.qidian.com 425 | # 疑似个人主页IP(非实时变化,看到有个login建议加上) 426 | - DOMAIN,ptlogin6.qidian.com 427 | # ======= 完美世界电竞App ======= # 428 | # issues#65 429 | - DOMAIN,api.wmpvp.com -------------------------------------------------------------------------------- /rules/Lofter.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= Lofter ======= # 19 | 20 | - DOMAIN-SUFFIX,lofter.com 21 | - DOMAIN,yaolu.yuedu.163.com 22 | - DOMAIN-SUFFIX,lf127.net,DIRECT 23 | -------------------------------------------------------------------------------- /rules/MIUI.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= MIUI ======= # 19 | 20 | # 应用包管理组件API 21 | # - DOMAIN,api.installer.xiaomi.com,REJECT 22 | # miui-tracking 23 | # - DOMAIN,tracking.miui.com,REJECT 24 | # - DOMAIN,tracking.intl.miui.com,REJECT 25 | # - DOMAIN,tracking.rus.miui.com,REJECT 26 | # - DOMAIN,tracking.india.miui.com,REJECT 27 | # 病毒扫描 28 | # - DOMAIN-SUFFIX,sec.miui.com,REJECT 29 | # - DOMAIN-SUFFIX,sec.intl.miui.com,REJECT 30 | # - DOMAIN,api.sec.miui.com,REJECT 31 | # - DOMAIN,staging.sec.miui.com,REJECT 32 | # - DOMAIN,a0.app.xiaomi.com,REJECT 33 | -------------------------------------------------------------------------------- /rules/NGA.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= NGA ======= # 19 | 20 | # issue#19提供 21 | # 个人主页ip。开代理以后发一个评论就会变代理ip 22 | - DOMAIN,ngabbs.com 23 | # issue#47提供 24 | - DOMAIN,bbs.nga.cn 25 | - DOMAIN,nga.178.com 26 | -------------------------------------------------------------------------------- /rules/QQ音乐.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= QQ音乐 ======= # 19 | 20 | # 测试 21 | - DOMAIN,y.qq.com,DIRECT # 图片资源,直连 22 | - DOMAIN-SUFFIX,y.qq.com # u*.y.qq.com 23 | # ======= 森空岛 ====== # 24 | - DOMAIN,zonai.skland.com 25 | -------------------------------------------------------------------------------- /rules/Soul.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= Soul ======= # 19 | 20 | # https://www.soulapp.cn/ 21 | # 目前采取了比较激进的策略 22 | # 疑似图片资源,直连 23 | - DOMAIN,china-img.soulapp.cn,DIRECT 24 | - DOMAIN,img.soulapp.cn,DIRECT 25 | # 其余可疑API域名 26 | # - DOMAIN-SUFFIX,getui.com # 个推,专业的数据智能服务商-为垂直领域提供数据智能解决方案 27 | - DOMAIN-SUFFIX,soulapp.cn 28 | # - DOMAIN-SUFFIX,qchannel03.cn # 功能未知,但检测到对此的请求 29 | -------------------------------------------------------------------------------- /rules/TapTap.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= TapTap ======= # 19 | 20 | # issue#16提供 21 | - DOMAIN,api.taptapdada.com 22 | -------------------------------------------------------------------------------- /rules/其乐论坛.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= 其乐论坛 ======= # 19 | 20 | # issue#11 提供 21 | - DOMAIN,keylol.com # 评论区 22 | -------------------------------------------------------------------------------- /rules/哔哩哔哩.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= 哔哩哔哩 ======= # 19 | 20 | # 哔哩哔哩 21 | # 阻止私有DNS 22 | - DOMAIN,httpdns.bilivideo.com,REJECT # issues/51 23 | # KEY_EXT_P2P_HTTPDNS_BILI_IP 24 | - IP-CIDR,47.101.175.206/32,REJECT 25 | - IP-CIDR,47.100.123.169/32,REJECT 26 | - IP-CIDR,120.46.169.234/32,REJECT 27 | - IP-CIDR,121.36.72.124/32,REJECT 28 | # KEY_EXT_P2P_BILIDNS_CMCC_IP 29 | - IP-CIDR,116.63.10.135/32,REJECT 30 | - IP-CIDR,122.9.7.134/32,REJECT 31 | - IP-CIDR,117.185.228.108/32,REJECT 32 | - IP-CIDR,117.144.238.29/32,REJECT 33 | # KEY_EXT_P2P_BILIDNS_CT_IP 34 | - IP-CIDR,122.9.13.79/32,REJECT 35 | - IP-CIDR,122.9.15.129/32,REJECT 36 | - IP-CIDR,101.91.140.224/32,REJECT 37 | - IP-CIDR,101.91.140.124/32,REJECT 38 | # KEY_EXT_P2P_BILIDNS_CU_IP 39 | - IP-CIDR,114.116.215.110/32,REJECT 40 | - IP-CIDR,116.63.10.31/32,REJECT 41 | - IP-CIDR,112.64.218.119/32,REJECT 42 | - IP-CIDR,112.65.200.117/32,REJECT 43 | - DOMAIN-SUFFIX,biliapi.net # 哔哩哔哩API域名 44 | # - DOMAIN,api.bilibili.tv # 哔哩哔哩海外版?(使用性存疑) 45 | - DOMAIN-SUFFIX,biliapi.com # 哔哩哔哩App的API域名 46 | - DOMAIN-SUFFIX,bilibili.com # 哔哩哔哩全站域名,不包括内容CDN 47 | - IP-CIDR,203.107.1.0/24 #不需要REJECT,会影响其他HTTPDNS,仅代理即可 48 | # issue/49,CDN内容直连 49 | - DOMAIN-SUFFIX,bilivideo.com,DIRECT # 直播 50 | - DOMAIN-SUFFIX,akamaized.net,DIRECT # akamai视频CDN 51 | - DOMAIN-SUFFIX,hdslb.com,DIRECT # 静态内容 52 | - DOMAIN-SUFFIX,szbdyd.com,DIRECT # PCDN(P2P) 53 | # - DOMAIN,api.bilibili.com # 哔哩哔哩国内网页版API域名 # 网友提供哔哩哔哩IP定位接口 54 | # - DOMAIN,app.bilibili.com # 哔哩哔哩App的API域名 55 | # - DOMAIN,api.live.bilibili.com # 哔哩哔哩直播API域名 56 | # - DOMAIN,api.vc.bilibili.com # 哔哩哔哩视频API域名,Copilot提供 57 | # - DOMAIN,passport.bilibili.com # 哔哩哔哩账号登录API域名 58 | # - DOMAIN,live-trace.bilibili.com # 哔哩哔哩跟踪?API域名 59 | # - DOMAIN,message.bilibili.com # 哔哩哔哩消息API域名 60 | # - DOMAIN,cm.bilibili.com # 哔哩哔哩统计API域名 61 | # - DOMAIN-SUFFIX,im9.com 62 | # - DOMAIN-SUFFIX,acg.tv 63 | # - DOMAIN-SUFFIX,biligame.com 64 | -------------------------------------------------------------------------------- /rules/国家反诈中心.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= 国家反诈中心 ======= # 19 | 20 | # 国家反诈中心App 21 | # - DOMAIN-SUFFIX,gjfzpt.cn,REJECT # 国家反诈中心域名,全部阻断 22 | # - IP-CIDR,219.143.187.136/32,REJECT # 用途未知 23 | -------------------------------------------------------------------------------- /rules/头条.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= 头条 ======= # 19 | 20 | # 网友提供头条IP定位接口 21 | - DOMAIN-SUFFIX,toutiaoapi.com 22 | -------------------------------------------------------------------------------- /rules/完美世界电竞App.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= 完美世界电竞App ======= # 19 | 20 | # issues#65 21 | - DOMAIN,api.wmpvp.com -------------------------------------------------------------------------------- /rules/小米社区.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= 小米社区 ======= # 19 | 20 | # 如有必要可以DOMAIN-SUFFIX,vip.miui.com 21 | - DOMAIN,api.vip.miui.com 22 | -------------------------------------------------------------------------------- /rules/小红书.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= 小红书 ======= # 19 | 20 | # issue#4 提供 21 | - DOMAIN-SUFFIX,xiaohongshu.com 22 | - DOMAIN-KEYWORD,xiaohongshu 23 | # issue#57 24 | # edith.xiaohongshu.com的全球解析结果 25 | - IP-CIDR,114.55.236.88/32 26 | - IP-CIDR,47.97.64.97/32 27 | - IP-CIDR,47.97.66.48/32 28 | - IP-CIDR,81.69.116.86/32 29 | - IP-CIDR,119.45.249.52/32 30 | - IP-CIDR,81.69.116.87/32 31 | - IP-CIDR,119.45.2.92/32 32 | - IP-CIDR,1.13.12.27/32 33 | - IP-CIDR,81.69.116.102/32 34 | - IP-CIDR,43.159.25.122/32 35 | - IP-CIDR,43.159.25.28/32 36 | - IP-CIDR,47.246.29.223/32 37 | - IP-CIDR,47.246.29.226/32 38 | - IP-CIDR,47.246.29.227/32 39 | - IP-CIDR,47.246.29.225/32 40 | - IP-CIDR,47.246.29.224/32 41 | - IP-CIDR,47.246.29.222/32 42 | - IP-CIDR,47.246.29.229/32 43 | - IP-CIDR,47.246.29.228/32 44 | - IP-CIDR,211.152.149.12/32 45 | - IP-CIDR,49.51.224.95/32 46 | - IP-CIDR,43.175.44.15/32 47 | - IP-CIDR,23.236.104.30/32 48 | - IP-CIDR,43.132.81.61/32 49 | - IP-CIDR,101.33.27.26/32 50 | - IP-CIDR,43.152.29.38/32 51 | - IP-CIDR,43.152.26.110/32 52 | - IP-CIDR,101.33.11.32/32 53 | - IP-CIDR,163.181.1.228/32 54 | - IP-CIDR,163.181.1.226/32 55 | - IP-CIDR,163.181.1.230/32 56 | - IP-CIDR,163.181.1.227/32 57 | - IP-CIDR,163.181.1.231/32 58 | - IP-CIDR,163.181.1.229/32 59 | - IP-CIDR,163.181.1.224/32 60 | - IP-CIDR,163.181.1.225/32 61 | - IP-CIDR,47.246.23.230/32 62 | - IP-CIDR,47.246.23.234/32 63 | - IP-CIDR,47.246.23.228/32 64 | - IP-CIDR,47.246.23.233/32 65 | - IP-CIDR,47.246.23.231/32 66 | - IP-CIDR,47.246.23.232/32 67 | - IP-CIDR,47.246.23.227/32 68 | - IP-CIDR,47.246.23.229/32 69 | - IP-CIDR,43.152.42.109/32 70 | - IP-CIDR,43.175.22.27/32 71 | - IP-CIDR,43.175.22.42/32 72 | - IP-CIDR,43.175.22.26/32 73 | - IP-CIDR,43.132.84.11/32 74 | - IP-CIDR,101.33.20.34/32 75 | - IP-CIDR,49.51.224.105/32 76 | - IP-CIDR,49.51.224.103/32 77 | - IP-CIDR,163.181.92.232/32 78 | - IP-CIDR,163.181.92.233/32 79 | - IP-CIDR,163.181.92.237/32 80 | - IP-CIDR,163.181.92.238/32 81 | - IP-CIDR,163.181.92.231/32 82 | - IP-CIDR,163.181.92.234/32 83 | - IP-CIDR,163.181.92.236/32 84 | - IP-CIDR,163.181.92.235/32 85 | - IP-CIDR,43.132.83.175/32 86 | - IP-CIDR,43.132.83.54/32 87 | - IP-CIDR,43.132.83.9/32 88 | - IP-CIDR,43.132.91.37/32 89 | - IP-CIDR,43.132.91.110/32 90 | - IP-CIDR,43.132.91.45/32 91 | - IP-CIDR,150.109.222.109/32 92 | - IP-CIDR,150.109.222.102/32 93 | - IP-CIDR,150.109.222.97/32 94 | - IP-CIDR,150.109.223.49/32 95 | - IP-CIDR,150.109.222.103/32 96 | - IP-CIDR,150.109.222.99/32 97 | - IP-CIDR,150.109.222.110/32 98 | - IP-CIDR,203.205.220.62/32 99 | -------------------------------------------------------------------------------- /rules/小黑盒.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= 小黑盒 ======= # 19 | 20 | # 小黑盒主域名,包括文章之类(图片CDN等静态资源不在此域名范围内) 21 | # issue#39 22 | - DOMAIN,api.xiaoheihe.cn 23 | -------------------------------------------------------------------------------- /rules/微信.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= 微信 ======= # 19 | 20 | # 微信通用 21 | - DOMAIN,szshort.weixin.qq.com # 用途未知 22 | - DOMAIN,szextshort.weixin.qq.com 23 | - DOMAIN,szminorshort.weixin.qq.com 24 | # 微信公众号评论 25 | - DOMAIN,mp.weixin.qq.com # 微信公众号,不存在单独的API域名 26 | # 微信视频号评论 27 | # - DOMAIN,szshort.weixin.qq.com # 疑似微信视频号,用途未知 28 | # 无法确定准确的请求方式,建议全局代理 29 | -------------------------------------------------------------------------------- /rules/微博.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= 微博 ======= # 19 | 20 | # 微博 21 | # issue#5 报告发表和评论操作会暴露IP,建议不要使用手机客户端,无法确定是否存在其他IP或域名,已扩充到DOMAIN-SUFFIX 22 | # - DOMAIN-SUFFIX,api.weibo.cn # 微博API域名 23 | # - DOMAIN-SUFFIX,api.weibo.com # 微博API域名,com站以防万一 24 | # - DOMAIN-SUFFIX,weibo.com # 微博全站域名,不包括内容CDN 25 | - DOMAIN-SUFFIX,weibo.cn 26 | - DOMAIN-SUFFIX,weibo.com 27 | - DOMAIN-SUFFIX,weibocdn.com 28 | - DOMAIN-SUFFIX,wbimg.cn 29 | - DOMAIN-SUFFIX,wbimg.com 30 | - DOMAIN-SUFFIX,sinaimg.cn 31 | - DOMAIN-KEYWORD,weibo 32 | -------------------------------------------------------------------------------- /rules/快手.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= 快手 ======= # 19 | 20 | # issue#3 提供 21 | # 个人主页似乎有延迟,未测试 22 | # 一个域名连不上会请求另一个,两个同时使用就会生效了 23 | - DOMAIN-SUFFIX,gifshow.com 24 | - DOMAIN-SUFFIX,ksapisrv.com 25 | -------------------------------------------------------------------------------- /rules/懂球帝.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= 懂球帝 ======= # 19 | 20 | # issue#18提供 21 | - DOMAIN-SUFFIX,dongqiudi.com 22 | -------------------------------------------------------------------------------- /rules/抖音.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= 抖音 ======= # 19 | 20 | # 抖音 21 | # 请求域名过多,建议全局代理 22 | # 网友提供抖音IP定位接口 23 | - DOMAIN-KEYWORD,core-c-lq 24 | - DOMAIN-KEYWORD,core-lq 25 | - DOMAIN-KEYWORD,normal-c-lq 26 | - DOMAIN-KEYWORD,normal-lq 27 | - DOMAIN-KEYWORD,search-quic-lq 28 | - DOMAIN-KEYWORD,search-lq 29 | # Update #32 30 | # Append 31 | # issue#33#issuecomment-1421094069 32 | # - DOMAIN-KEYWORD,-normal- 33 | - DOMAIN-SUFFIX,zijieapi.com,DIRECT 34 | - DOMAIN-SUFFIX,ecombdapi.com,DIRECT 35 | - DOMAIN-KEYWORD,-normal-hl 36 | - DOMAIN-KEYWORD,-normal-c-hl 37 | - DOMAIN-KEYWORD,-core-c-hl 38 | - DOMAIN-KEYWORD,-normal-lf 39 | - DOMAIN-KEYWORD,-normal-c-lf 40 | - DOMAIN-KEYWORD,-core-c-lf 41 | # - DOMAIN-KEYWORD,-core- 42 | # - DOMAIN-KEYWORD,-misc- 43 | # - DOMAIN-KEYWORD,-search- 44 | # - DOMAIN-KEYWORD,-aweme- 45 | # - DOMAIN-KEYWORD,cdn-tos # CDN 46 | # 一些确定的域名 47 | # #33 针对 amemv.com 域名下的 -normal- 关键词代理就能实现IP归属地修改。如果对全局域名进行代理的话,请求的视频内容大部分来自海外cdn。 48 | # - DOMAIN-SUFFIX,bytetos.com # CDN 49 | # - DOMAIN-SUFFIX,amemv.com 50 | # - DOMAIN-SUFFIX,zijieapi.com 51 | # - DOMAIN-SUFFIX,awemeughun.com 52 | # - DOMAIN-SUFFIX,ecombdapi.com 53 | # - DOMAIN-SUFFIX,bytegecko.com 54 | # - DOMAIN-SUFFIX,ttwebview.com 55 | # - DOMAIN-SUFFIX,bytetcc.com 56 | # - DOMAIN-SUFFIX,douyinvod.com # 视频CDN 57 | # - DOMAIN-SUFFIX,bytednsdoc.com # 图片CDN 58 | # - DOMAIN-SUFFIX,douyinpic.com # 图片CDN 59 | # - DOMAIN-SUFFIX,byteimg.com # 图片CDN 60 | # - DOMAIN-SUFFIX,bytegoofy.com # 图片CDN? 61 | # - DOMAIN-SUFFIX,ibytedapm.com # CDN 62 | # - DOMAIN-SUFFIX,yhgfb-cn-static.com # CDN 63 | # P.S. 抖音适用于PC的Web版API非常明确 64 | - DOMAIN,sso.douyin.com # 登录 65 | - DOMAIN,www.douyin.com # Web版PC端 66 | - DOMAIN-SUFFIX,snssdk.com # API域名 67 | -------------------------------------------------------------------------------- /rules/文叔叔.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= 文叔叔 ======= # 19 | 20 | # DoingDog/anti-ip-attribution 21 | - DOMAIN,www.wenshushu.cn 22 | -------------------------------------------------------------------------------- /rules/斗鱼.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= 斗鱼 ======= # 19 | 20 | # issue#23 21 | # direct斗鱼直播流 https://github.com/wbt5/real-url/issues/340 22 | - DOMAIN-SUFFIX,hls3-akm.douyucdn.cn,DIRECT 23 | - DOMAIN-SUFFIX,hlsa-akm.douyucdn.cn,DIRECT 24 | - DOMAIN-SUFFIX,hls1a-akm.douyucdn.cn,DIRECT 25 | - DOMAIN-SUFFIX,hls3a-akm.douyucdn.cn,DIRECT 26 | - DOMAIN-SUFFIX,vplay1a.douyucdn.cn,DIRECT 27 | - DOMAIN-SUFFIX,vplay3a.douyucdn.cn,DIRECT 28 | - DOMAIN-SUFFIX,ws-tct.douyucdn.cn,DIRECT 29 | - DOMAIN-SUFFIX,akm-tct.douyucdn.cn,DIRECT 30 | - DOMAIN-SUFFIX,tx2play1.douyucdn.cn,DIRECT 31 | - DOMAIN-SUFFIX,tc-tct1.douyucdn.cn,DIRECT 32 | #direct弹幕 33 | - DOMAIN-SUFFIX,wsproxy.douyu.com,DIRECT 34 | - DOMAIN-SUFFIX,danmuproxy.douyu.com,DIRECT 35 | #direct图片 36 | - DOMAIN-SUFFIX,img.douyucdn.cn,DIRECT 37 | - DOMAIN-SUFFIX,douyucdn.cn 38 | - DOMAIN-SUFFIX,douyu.com 39 | -------------------------------------------------------------------------------- /rules/百度贴吧.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= 百度贴吧 ======= # 19 | 20 | # 百度贴吧 21 | - DOMAIN,tieba.baidu.com # 百度贴吧域名,不存在单独的API域名 22 | - DOMAIN,tbmsg.baidu.com # 贴吧私信域名? 23 | - DOMAIN,tb5.bdstatic.com # 贴吧不确定用途 24 | - DOMAIN,fclog.baidu.com # 百度日志? 25 | - DOMAIN,gsp0.baidu.com # 百度追踪? 26 | - DOMAIN,hm.baidu.com # 百度统计 27 | - DOMAIN,www.baidu.com # 网友提供贴吧IP定位接口 28 | # Update #32 29 | - DOMAIN,tiebac.baidu.com # 贴吧App API域名 30 | # - DOMAIN-KEYWORD,tieba # 极端方案,可能会代理图片CDN 31 | # issue#35#issuecomment-1438885974 32 | - IP-CIDR,180.76.76.0/24 # Public DNS 33 | - DOMAIN,httpsdns.baidu.com 34 | - DOMAIN,c.tieba.baidu.com 35 | - DOMAIN,httpdns.baidu.com 36 | - DOMAIN,httpdns.baidubce.com 37 | -------------------------------------------------------------------------------- /rules/知乎.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= 知乎 ======= # 19 | 20 | # 知乎 21 | # - DOMAIN,zhihu-web-analytics.zhihu.com # 知乎统计API域名 22 | # - DOMAIN,www.zhihu.com # 知乎主站域名,不存在单独有效的API域名 23 | # - DOMAIN,api.zhihu.com # 知乎API域名 24 | - DOMAIN-SUFFIX,zhihu.com # 知乎全站域名,不包括图片CDN 25 | - IP-CIDR,103.41.167.0/24 # 网友提供知乎IP定位接口 26 | # 有报告iOS端使用规则后仍然泄露真实IP属地 27 | # issue#24 28 | - IP-CIDR,118.89.204.198/23,REJECT # 知乎 HTTPDNS (IPv4) 29 | - IP-CIDR6,2402:4e00:1200:ed00:0:9089:6dac:96b6/40,REJECT # 知乎 HTTPDNS (IPv6) 30 | -------------------------------------------------------------------------------- /rules/米游社.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= 米游社 ======= # 19 | 20 | - DOMAIN,bbs-api.mihoyo.com 21 | # issue#39 22 | # 米游社主域名已从 bbs.mihoyo.com 302至 miyoushe.com 23 | - DOMAIN,bbs-api.miyoushe.com 24 | # - DOMAIN,api-takumi.mihoyo.com 25 | # - DOMAIN,log-upload.mihoyo.com 26 | -------------------------------------------------------------------------------- /rules/网易云音乐.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= 网易云音乐 ======= # 19 | 20 | # issue#21#issuecomment-1213136722 21 | # - DOMAIN,music.163.com 22 | # https://lbs.netease.im/lbs/conf.jsp # httpdns 23 | # - DOMAIN,httpdns.n.netease.com,REJECT 24 | # - IP-CIDR,59.111.239.61/32,REJECT 25 | # - IP-CIDR,59.111.239.62/32,REJECT 26 | # issue#21#issuecomment-1214307572 27 | - DOMAIN-SUFFIX,music.163.com 28 | - DOMAIN,nstool.netease.com 29 | - DOMAIN,wanproxy.127.net 30 | - DOMAIN,mam.netease.com 31 | - DOMAIN,dt.netease.im 32 | - DOMAIN,api.iplay.163.com 33 | - DOMAIN,api.k.163.com 34 | - DOMAIN,lbs.netease.im 35 | - DOMAIN,wannos.127.net 36 | - DOMAIN,ac.dun.163.com 37 | - DOMAIN-SUFFIX,music.126.net 38 | - DOMAIN-SUFFIX,laiqukankan.com 39 | - DOMAIN-SUFFIX,music.ntes53.netease.com 40 | # telv4.music.ntes53.netease.com 41 | # telv6.music.ntes53.netease.com 42 | # cmccv4.music.ntes53.netease.com 43 | # cmccv6.music.ntes53.netease.com 44 | # univ4.music.ntes53.netease.com 45 | # univ6.music.ntes53.netease.com 46 | # overseasv4.music.ntes53.netease.com 47 | # overseasv6.music.ntes53.netease.com 48 | # bgpv4.music.ntes53.netease.com 49 | # bgpv6.music.ntes53.netease.com 50 | - IP-CIDR,101.71.154.241/32 51 | - IP-CIDR,103.126.92.132/32 52 | - IP-CIDR,103.126.92.133/32 53 | - IP-CIDR,112.13.119.18/32 54 | - IP-CIDR,112.13.122.4/32 55 | - IP-CIDR,115.236.118.34/32 56 | - IP-CIDR,115.236.121.4/32 57 | - IP-CIDR,45.254.48.1/32 58 | - IP-CIDR,59.111.160.195/32 59 | - IP-CIDR,59.111.19.33/32 60 | - IP-CIDR,59.111.19.53/32 61 | # issue #70 62 | - DOMAIN-SUFFIX,music.163.com.163jiasu.com 63 | - IP-CIDR,119.36.90.80/32 64 | - IP-CIDR,111.48.137.146/32 65 | - IP-CIDR,1.95.21.35/32 66 | - IP-CIDR,47.100.127.239/32 67 | -------------------------------------------------------------------------------- /rules/网易大神.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= 网易大神 ======= # 19 | 20 | # issue#17提供 21 | - DOMAIN,god.gameyw.netease.com 22 | -------------------------------------------------------------------------------- /rules/虎牙.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= 虎牙 ======= # 19 | 20 | # issue#17提供 21 | - DOMAIN-SUFFIX,huya.com 22 | -------------------------------------------------------------------------------- /rules/西瓜视频.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= 西瓜视频 ======= # 19 | 20 | # issue#10 提供 21 | - DOMAIN-SUFFIX,ixigua.com # 可以阻止真实ip显示,但无法显示代理ip 22 | -------------------------------------------------------------------------------- /rules/豆瓣.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= 豆瓣 ======= # 19 | 20 | # issue#37 21 | # IOS APP实测有效,其余设备不保证,doubanio.com的域名是加载图片的,实测直连不影响地区 22 | - DOMAIN-SUFFIX,douban.com 23 | - IP-CIDR,49.233.242.15/32 24 | - IP-CIDR,81.70.124.99/32 25 | - IP-CIDR,81.70.125.19/32 26 | - IP-CIDR,140.143.177.206/32 27 | -------------------------------------------------------------------------------- /rules/起点App.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= 起点App ======= # 19 | 20 | # issues#62 21 | # 章评书评区IP(大部分业务都塞在这个域名下,api book search login一大堆) 22 | - DOMAIN,druidv6.if.qidian.com 23 | # 疑似个人主页IP(非实时变化,看到有个login建议加上) 24 | - DOMAIN,ptlogin6.qidian.com 25 | -------------------------------------------------------------------------------- /rules/酷安.yaml: -------------------------------------------------------------------------------- 1 | # 针对部分网站显示IP归属地的分流规则 2 | # anti-ip-attribution rules.yaml 3 | # https://github.com/SunsetMkt/anti-ip-attribution 4 | # 此文件用于记录用于生成其他配置文件的规则,任何更改仅需在此修改。 5 | # Actions会自动生成其他配置文件。 6 | # 由于技术限制,只能实现精确到域名的分流规则,无法精确到路径。 7 | # 配置规范举例: 8 | # DOMAIN,example.com 9 | # DOMAIN-SUFFIX,example.com,REJECT 10 | # 注意"DOMAIN"大写,不用"HOST",除"REJECT"外不要添加规则。 11 | config: 12 | name: "anti-ip-attribution" # 项目名 13 | version: "v0.3.1" # 版本号 14 | url: "https://github.com/SunsetMkt/anti-ip-attribution" # 项目地址 15 | description: "针对部分网站显示IP归属地的分流规则" # 项目描述 16 | rules: # 规则列表 17 | 18 | # ======= 酷安 ======= # 19 | 20 | # issue#15提供 21 | - DOMAIN,api.coolapk.com 22 | # issue#62 23 | - DOMAIN,api2.coolapk.com 24 | --------------------------------------------------------------------------------