Compare commits

...
24 Commits
Author SHA1 Message Date
jason5ng32 da04a81e58 Improvements 2026-10-29 09:46:34 +08:00
jason5ng32 e461bc168b Improvements 2026-10-29 09:46:17 +08:00
Jason Ng 863e333c53 Merge pull request #536 from jason5ng32/dev
Sync with Dev
2026-10-27 12:46:01 +08:00
jason5ng32 2d244a129d Improvements 2026-10-27 12:41:09 +08:00
Thanut JongteerathanachoteandClaude Opus 5.5 56c68364bf Feat(connectivity): add Lazada to the e-commerce import list (#535)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 11:54:30 +08:00
Shubham Sangle 80e6a5ca1a Feat(service-status): add Bitbucket, DigitalOcean and Reddit (#534) 2026-10-27 11:54:24 +08:00
jason5ng32 1b1cf9f68f Improvements 2026-10-27 11:47:08 +08:00
jason5ng32 31e8a5c306 Improvements 2026-10-26 00:08:51 +08:00
jason5ng32 ccd7a572a8 Improvements 2026-10-25 23:32:37 +08:00
Ayush-kukrety 61efe98d1d Docs: add Hindi README translation (#529) 2026-10-25 23:19:08 +08:00
Thanut JongteerathanachoteandClaude Opus 5.5 d68328d7bf Feat(dns-resolver): add ThaiNS for Thailand (#533)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 23:12:36 +08:00
jason5ng32andClaude Opus 5.5 896494d895 Refactor(ip-infos): split IpDetailPanel into advanced and ASN blocks
IpDetailPanel had grown to ~750 lines holding three independent regions.
It is now the shell (metadata grid, inline Map / Country-traffic panels,
dialogs) with unchanged props, emits and multi-root template, rendering
IpAdvancedBlock (with ScoreDetailsPanel beside ScenarioFrictionPanel) and
IpAsnBlock, which relay view-usage / open-tool through it.

The inline /api/asn-history fetch becomes loadAsnHistoryInto in
utils/ip/asn-history.js, matching the other ASN loaders, now with tests.
Markup, copy, analytics and per-IP reset behaviour are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 11:19:36 +08:00
jason5ng32andClaude Opus 5.5 825db1638f Chore: bump version to 8.1.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 11:12:28 +08:00
jason5ng32andClaude Opus 5.5 fd5e04fea6 Feat(ipcard): add abuse activity and scenario friction to the advanced data
The advanced block gains two signed-in fields under the existing four:
Abuse activity (the reputation level) and Scenario friction, ten usage
scenarios each rated smooth / extra checks / may be restricted. The card
shows one tone dot per scenario instead of a score, so it can't be read
as a second quality score; the details list follows the score details'
layout and closes with a Persona Check invitation.

Green and yellow only (a new light-yellow ok-mild tone for extra checks),
no reasons shown, copy in every full locale.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 11:12:28 +08:00
jason5ng32andClaude Opus 5.5 e4ec314a6a Fix(connectivity): trim the Mexico and India import lists
Drop SAT (times out from outside Mexico) and Rapido (CORP same-origin
blocks the probe), plus the India members that are corporate or B2B
sites rather than ones people open day to day.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 21:31:35 +08:00
jason5ng32 0c3f05ca45 Merge branch 'dev' of https://github.com/jason5ng32/MyIP into dev 2026-10-24 21:29:38 +08:00
Mayank Chotaliya 717356bd7c Feat(connectivity): expand the India import list (#530) 2026-10-24 21:29:30 +08:00
MarioDevandOpenAI Codex e31a9298d1 Feat(connectivity): add Mexico import list (#528)
Add a balanced set of Mexican government, telecom, banking, news, and shopping targets with localized list names and committed favicons.

Co-authored-by: OpenAI Codex <noreply@openai.com>
2026-10-24 21:29:18 +08:00
Thanut Jongteerathanachote 0446364836 Feat(adblocktest): add Truehits to the probe list (#526) 2026-10-24 21:29:07 +08:00
jason5ng32 2329294a8f Improvements 2026-10-24 09:29:34 +08:00
jason5ng32andClaude Fable 5.1 4acf56b593 Feat(footer): add a Contribute entry to the Project column
Links to the repository's GitHub /contribute page, which lists the open
good-first-issues above the contributing guide.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-23 22:03:39 +08:00
jason5ng32andClaude Fable 5.1 c0ae017f89 Feat(connectivity): invite visitors to add their country's import list
Closes the "Import a List" grid with a muted line linking to the open
country-list issue, so a visitor who finds their country missing sees
where to add it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-23 22:03:39 +08:00
Jason Ng 9aae391468 Merge pull request #527 from jason5ng32/dev
Sync with Dev
2026-10-23 21:41:33 +08:00
jason5ng32andClaude Opus 5.5 f6e979f52d Fix(ci): generate Docker image labels with metadata-action
Multi-line release notes in the labels input split into one label per
line and an empty line aborted buildx. Labels now come from
docker/metadata-action with the version pinned to RELEASE_VERSION, and
version inputs reach the shell through env instead of interpolation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 21:41:04 +08:00
70 changed files with 2365 additions and 540 deletions

No files matched your search

+18 -10
View File
@@ -46,17 +46,27 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get the version and release notes
- name: Get the version
if: github.event_name == 'release'
run: |
printf "RELEASE_VERSION=%s\n" "${{ github.event.release.tag_name }}" >> $GITHUB_ENV
printf "RELEASE_NOTES<<EOF\n%s\nEOF\n" "${{ github.event.release.body }}" >> $GITHUB_ENV
env:
TAG_NAME: ${{ github.event.release.tag_name }}
run: echo "RELEASE_VERSION=$TAG_NAME" >> "$GITHUB_ENV"
- name: Set version for manual dispatch
if: github.event_name == 'workflow_dispatch'
run: |
echo "RELEASE_VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV
echo "RELEASE_NOTES=Manually triggered build" >> $GITHUB_ENV
env:
DISPATCH_VERSION: ${{ github.event.inputs.version }}
run: echo "RELEASE_VERSION=$DISPATCH_VERSION" >> "$GITHUB_ENV"
# OCI labels (title / description / source / revision / …) from the repo;
# tags stay hand-written below. A manual dispatch runs on `main`, so the
# version label is pinned to RELEASE_VERSION.
- name: Docker metadata
id: meta
uses: docker/metadata-action@v6
with:
labels: |
org.opencontainers.image.version=${{ env.RELEASE_VERSION }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v7
@@ -67,7 +77,5 @@ jobs:
jason5ng32/myip:${{ env.RELEASE_VERSION }}
ghcr.io/${{ github.repository_owner }}/myip:latest
ghcr.io/${{ github.repository_owner }}/myip:${{ env.RELEASE_VERSION }}
labels: |
org.opencontainers.image.version=${{ env.RELEASE_VERSION }}
org.opencontainers.image.description=${{ env.RELEASE_NOTES }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
+2
View File
@@ -25,6 +25,8 @@ security checklist, browser fingerprint, anonymity checks, persona check, IP
calculator, and more. Single repo, two halves: a Vue 3 SPA front-end and an
Express 5 back-end API.
Licensed under AGPL-3.0-only (`LICENSE`).
## Stack
| Layer | Technology |
+5
View File
@@ -116,6 +116,11 @@ private channel in [SECURITY.md](SECURITY.md), never a public issue.
- UI rendering and browser APIs are out of scope for the Node runner; visual changes
are verified by the maintainer during review, so mention in your PR what to look at.
## License
MyIP is licensed under [AGPL-3.0](LICENSE). By submitting a contribution, you
agree that it is licensed under the same terms.
## Code of Conduct
This project follows a [Code of Conduct](CODE_OF_CONDUCT.md). By participating,
+657 -17
View File
@@ -1,21 +1,661 @@
MIT License
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (c) 2026 Jason Ng
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Preamble
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.
A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate. Many developers of free software are heartened and
encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.
The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community. It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.
An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals. This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU Affero General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU Affero General Public License from time to time. Such new versions
will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<https://www.gnu.org/licenses/>.
+2 -5
View File
@@ -19,7 +19,7 @@
![Docker Build and Push](https://github.com/jason5ng32/MyIP/actions/workflows/docker-image.yml/badge.svg?branch=main)
[![CI](https://github.com/jason5ng32/MyIP/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/jason5ng32/MyIP/actions/workflows/ci.yml)
[English](README.md) | [简体中文](README_ZH.md) | [繁體中文](README_ZH-TW.md) | [Русский](README_RU.md) | [Français](README_FR.md) | [Português (BR)](README_PT-BR.md) | [Shqip](README_SQ.md) | [ไทย](README_TH.md)
[English](README.md) | [简体中文](README_ZH.md) | [繁體中文](README_ZH-TW.md) | [Русский](README_RU.md) | [Français](README_FR.md) | [Português (BR)](README_PT-BR.md) | [Shqip](README_SQ.md) | [ไทย](README_TH.md) | [हिन्दी](README_HI.md)
An open-source, all-in-one IP toolbox: IP lookup from multiple sources, connectivity tests, WebRTC & DNS-leak detection, speed test, MTR, censorship checks, Whois, and more — self-hostable with one Docker command.
@@ -182,9 +182,6 @@ As an open source project, I'm very grateful to the following sponsors for their
**Sponsors**
<a href="https://www.rapidproxy.io/?ref=myip"><img src="https://res.ipcheck.ing/img/rapid_proxy_logo.png" alt="RapidProxy" height="48" /></a><br />
<sub>↳ **<a href="https://www.rapidproxy.io/?ref=myip">RapidProxy</a>** — Residential proxies with 90M+ IPs, smart rotation and precise geo-targeting. From $0.55/GB, 10% off with code `RAPID10`</sub>
<a href="https://www.swiftproxy.net/?ref=myip"><img src="https://res.ipcheck.ing/img/swiftproxy_logo.png" alt="SwiftProxy" height="48" /></a><br />
<sub>↳ **<a href="https://www.swiftproxy.net/?ref=myip">SwiftProxy</a>** — High-quality rotating and static residential proxies, with 90M+ residential IPs across 220+ locations worldwide. It supports HTTP(S), SOCKS5, rotating and sticky sessions, with residential proxy plans starting at just $0.7/GB. Use code `PROXY90` for an additional 10% off.
</sub>
@@ -210,4 +207,4 @@ Interested in sponsoring MyIP? [Become a sponsor](https://github.com/sponsors/ja
## 📄 License
[MIT](LICENSE) © Jason Ng
[AGPL-3.0](LICENSE) © Jason Ng
+2 -5
View File
@@ -22,7 +22,7 @@
![Docker Build and Push](https://github.com/jason5ng32/MyIP/actions/workflows/docker-image.yml/badge.svg?branch=main)
[![CI](https://github.com/jason5ng32/MyIP/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/jason5ng32/MyIP/actions/workflows/ci.yml)
[English](README.md) | [简体中文](README_ZH.md) | [繁體中文](README_ZH-TW.md) | [Русский](README_RU.md) | [Français](README_FR.md) | [Português (BR)](README_PT-BR.md) | [Shqip](README_SQ.md) | [ไทย](README_TH.md)
[English](README.md) | [简体中文](README_ZH.md) | [繁體中文](README_ZH-TW.md) | [Русский](README_RU.md) | [Français](README_FR.md) | [Português (BR)](README_PT-BR.md) | [Shqip](README_SQ.md) | [ไทย](README_TH.md) | [हिन्दी](README_HI.md)
Une boîte à outils IP tout-en-un et open source : recherche d'IP depuis plusieurs sources, tests de connectivité, détection WebRTC et de fuites DNS, test de vitesse, MTR, vérification de la censure, Whois et plus encore — auto-hébergeable en une seule commande Docker.
@@ -185,9 +185,6 @@ En tant que projet open source, je suis très reconnaissant aux sponsors suivant
**Sponsors**
<a href="https://www.rapidproxy.io/?ref=myip"><img src="https://res.ipcheck.ing/img/rapid_proxy_logo.png" alt="RapidProxy" height="48" /></a><br />
<sub>↳ **<a href="https://www.rapidproxy.io/?ref=myip">RapidProxy</a>** — Residential proxies with 90M+ IPs, smart rotation and precise geo-targeting. From $0.55/GB, 10% off with code `RAPID10`</sub>
<a href="https://www.swiftproxy.net/?ref=myip"><img src="https://res.ipcheck.ing/img/swiftproxy_logo.png" alt="SwiftProxy" height="48" /></a><br />
<sub>↳ **<a href="https://www.swiftproxy.net/?ref=myip">SwiftProxy</a>** — High-quality rotating and static residential proxies, with 90M+ residential IPs across 220+ locations worldwide. It supports HTTP(S), SOCKS5, rotating and sticky sessions, with residential proxy plans starting at just $0.7/GB. Use code `PROXY90` for an additional 10% off.
</sub>
@@ -213,4 +210,4 @@ Envie de soutenir MyIP ? [Devenir sponsor](https://github.com/sponsors/jason5ng3
## 📄 Licence
[MIT](LICENSE) © Jason Ng
[AGPL-3.0](LICENSE) © Jason Ng
+213
View File
@@ -0,0 +1,213 @@
# 🧰 MyIP - एक बेहतर IP टूलबॉक्स
> [!NOTE]
> यह अनुवाद समुदाय के लोग संभालते हैं. आधिकारिक स्रोत अंग्रेज़ी README है, और हो सकता है यह वर्शन उससे पीछे रह जाए.
<div align="center">
![IPCheck.ing Banner](https://raw.githubusercontent.com/jason5ng32/MyIP/main/public/github/gh_banner.png)
<a href="https://trendshift.io/repositories/5332" target="_blank"><img src="https://trendshift.io/api/badge/repositories/5332" alt="jason5ng32%2FMyIP | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
[![Mentioned in Awesome Self Hosted](https://awesome.re/mentioned-badge.svg)](https://github.com/awesome-selfhosted/awesome-selfhosted)
![GitHub Repo stars](https://img.shields.io/github/stars/jason5ng32/MyIP)
![GitHub forks](https://img.shields.io/github/forks/jason5ng32/myip)
![Docker Pulls](https://img.shields.io/docker/pulls/jason5ng32/myip)
[![Website](https://img.shields.io/website?url=https%3A%2F%2Fipcheck.ing&up_message=online&label=IPCheck.ing 'IPCheck.ing')](https://ipcheck.ing)
![PWA](https://img.shields.io/badge/PWA-Supported-blue)
![CodeQL](https://github.com/jason5ng32/MyIP/actions/workflows/github-code-scanning/codeql/badge.svg?branch=main)
![Docker Build and Push](https://github.com/jason5ng32/MyIP/actions/workflows/docker-image.yml/badge.svg?branch=main)
[![CI](https://github.com/jason5ng32/MyIP/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/jason5ng32/MyIP/actions/workflows/ci.yml)
[English](README.md) | [简体中文](README_ZH.md) | [繁體中文](README_ZH-TW.md) | [Русский](README_RU.md) | [Français](README_FR.md) | [Português (BR)](README_PT-BR.md) | [Shqip](README_SQ.md) | [ไทย](README_TH.md) | [हिन्दी](README_HI.md)
एक ओपन-सोर्स, ऑल-इन-वन IP टूलबॉक्स: कई स्रोतों से IP की जानकारी, कनेक्टिविटी जांच, WebRTC और DNS लीक की पहचान, स्पीड टेस्ट, MTR, सेंसरशिप जांच, Whois और बहुत कुछ — Docker की एक कमांड से अपने सर्वर पर चलाएं.
👉 डेमो: [https://ipcheck.ing](https://ipcheck.ing)
डेमो को बुकमार्क करें या अपना खुद का वर्शन डिप्लॉय करें.
[![Deploy with Docker](https://raw.githubusercontent.com/jason5ng32/MyIP/main/public/github/Docker.svg)](https://hub.docker.com/r/jason5ng32/myip)
</div>
## 👀 सुविधाएं
### 🪪 आपका IP और पहचान
* 🛜 **IP कार्ड**: कई अलग-अलग स्रोतों से आपका IPv4 और IPv6 एक साथ पता करता है — देश, क्षेत्र, शहर, ASN, संगठन और उस IP का स्थानीय समय क्षेत्र.
* 🔍 **IP खोजें**: किसी भी IP पते की यही पूरी जानकारी देखें.
* 🧾 **IP इतिहास**: आपके इस्तेमाल किए गए IP का लोकल रिकॉर्ड रखता है, जिसे प्रकार और देश के हिसाब से फ़िल्टर किया जा सकता है — यह सिर्फ़ आपके ब्राउज़र में सेव रहता है.
* 🖥️ **ब्राउज़र फ़िंगरप्रिंट**: कई तरीकों से आपके ब्राउज़र का फ़िंगरप्रिंट निकालता है और दिखाता है कि किन चीज़ों से आपकी पहचान हो सकती है.
### 🕵️ लीक और निजता
* 🚥 **WebRTC जांच**: WebRTC कनेक्शन के दौरान दिखने वाला IP पता बताता है — साथ ही यह भी कि आपके ब्राउज़र की निजता सुरक्षा चालू है या नहीं.
* 🛑 **DNS लीक जांच**: दिखाता है कि आपकी DNS क्वेरी कौन-से DNS सर्वर हल करते हैं, ताकि VPN या प्रॉक्सी इस्तेमाल करते समय DNS लीक का खतरा समझा जा सके.
* 🛡️ **ऐड और ट्रैकर ब्लॉकिंग जांच**: जांचता है कि आपका ऐड ब्लॉकर, ब्राउज़र, DNS फ़िल्टर, VPN या राउटर असल में क्या ब्लॉक करता है — ऐड नेटवर्क, एनालिटिक्स, सोशल ट्रैकर, एरर मॉनिटरिंग, डिवाइस बनाने वाली कंपनियों की टेलीमेट्री, ट्रैकिंग स्क्रिप्ट और एलिमेंट छिपाना.
* 📋 **सुरक्षा चेकलिस्ट**: 12 क्षेत्रों में 258 बातों वाली निजी साइबर सुरक्षा चेकलिस्ट, जिसकी प्रगति आपके ब्राउज़र में सेव रहती है.
### 📡 नेटवर्क जांच
* 🚦 **कनेक्टिविटी जांच**: आपकी चुनी हुई 60 तक साइटें खुल रही हैं या नहीं, यह जांचता है और कई राउंड में सबसे कम इंतज़ार का समय दिखाता है — साथ में तैयार सूचियां भी हैं, देशों की सूचियों से लेकर AI, सोशल, स्ट्रीमिंग, गेमिंग, डेवलपर और बहुत कुछ. नतीजों के आधार पर यह बताता है कि अभी आप दुनिया भर का इंटरनेट इस्तेमाल कर सकते हैं या नहीं.
* 🚀 **स्पीड टेस्ट**: एज नेटवर्क से आपकी डाउनलोड, अपलोड स्पीड और इंतज़ार का समय मापता है.
* ⏱️ **दुनिया भर से पिंग जांच**: दुनिया भर के प्रोब से आपके टारगेट को पिंग करता है — सभी उपलब्ध Globalping प्रोब में से, महाद्वीप के हिसाब से देश चुनें.
* 🚉 **MTR जांच**: दुनिया भर में फैले प्रोब से MTR चलाकर दिखाता है कि पैकेट असल में किस रास्ते से जाते हैं.
* 🚧 **सेंसरशिप जांच**: दिखाता है कि कोई वेबसाइट दुनिया में कहां-कहां ब्लॉक है — और किस तरीके से.
* 🚏 **प्रॉक्सी नियम जांच**: पक्का करता है कि आपके प्रॉक्सी सॉफ़्टवेयर के नियम वैसे ही काम कर रहे हैं जैसा आपने सोचा था.
### 🔦 लुकअप और इन्फ़्रास्ट्रक्चर
* 📟 **DNS रिज़ॉल्वर**: एक डोमेन को एक साथ कई रिज़ॉल्वर से हल करता है, देश के हिसाब से ग्रुप करके — DNS हाइजैकिंग या गड़बड़ी पकड़ने का आसान तरीका.
* 📓 **Whois खोज**: डोमेन नाम, IP पते और AS नंबर के लिए Whois लुकअप करता है.
* 🗄️ **MAC लुकअप**: किसी हार्डवेयर (MAC) पते के पीछे की कंपनी और जानकारी बताता है.
* 🧮 **IP कैलकुलेटर**: किसी भी IP, प्रीफ़िक्स, रेंज या सूची के लिए सबनेट का हिसाब, फ़ॉर्मैट बदलना और IPv6 इंटरफ़ेस की जानकारी — सब कुछ आपके डिवाइस पर ही.
* 🛰️ **ASN जानकारी और अपस्ट्रीम टोपोलॉजी**: हर IP कार्ड पर ही — AS की जानकारी, IP के प्रीफ़िक्स की पिछली घोषणाएं, और उसके ASN से Tier 1 बैकबोन तक के अपस्ट्रीम रास्ते.
* 🛂 **ASN प्रोफ़ाइल**: किसी भी AS की पूरी तस्वीर — मूल Whois रिकॉर्ड के साथ रजिस्ट्रेशन, दुनिया में रैंक और आकार, ट्रैफ़िक और कनेक्शन की गुणवत्ता, उसका IPv4 स्पेस कहां इस्तेमाल होता है, RPKI स्थिति के साथ हर घोषित प्रीफ़िक्स, उसके अपस्ट्रीम, पीयर और ग्राहक, और वे इंटरनेट एक्सचेंज और डेटा सेंटर जहां वह मौजूद है.
* 📶 **सेवा की स्थिति**: जानी-मानी सेवाओं — Claude, OpenAI, GitHub, Cloudflare और दूसरी — की लाइव स्थिति, उनके आधिकारिक स्टेटस पेज से, हाल की घटनाओं के साथ.
### ✨ प्लैटफ़ॉर्म
* 📤 **शेयर करने लायक रिपोर्ट**: अपनी जांच के नतीजों से एक जांच रिपोर्ट बनाएं — अपने-आप खत्म होने वाला सिर्फ़ पढ़ने लायक लिंक, AI के लिए तैयार Markdown, या JSON.
* ⌨️ **Curl API**: टर्मिनल से एक `curl` कमांड में अपना IP जानें.
* 🌍 **Earth Online**: एक पैनल जो दुनिया भर में इंटरनेट ठप होने की घटनाएं होते ही दिखाता है.
* 🌗 **डार्क मोड**: अपने-आप आपके सिस्टम की सेटिंग अपनाता है, और हाथ से बदलने का विकल्प भी है.
* 📲 **PWA**: फ़ोन पर ऐप की तरह और डेस्कटॉप पर Chrome ऐप की तरह इंस्टॉल किया जा सकता है.
* ⚡ **कीबोर्ड शॉर्टकट**: हर सुविधा का एक शॉर्टकट है — सूची देखने के लिए `?` दबाएं.
* 🔤 **कई भाषाएं**: UI 6 भाषाओं में उपलब्ध है, और अपनी भाषा जोड़ने के लिए बस एक लोकेल पैक चाहिए.
## 📕 इस्तेमाल कैसे करें
### Docker से
बस एक कमांड और यह चालू:
```bash
docker run -d -p 18966:18966 --name myip --restart always jason5ng32/myip:latest
```
या इस पेज के ऊपर दिए "Deploy with Docker" बटन पर क्लिक करें.
### Node के साथ डिप्लॉय करना
पक्का करें कि Node.js इंस्टॉल है, फिर कोड क्लोन करें:
```bash
git clone https://github.com/jason5ng32/MyIP.git
```
इंस्टॉल और बिल्ड करें. यह प्रोजेक्ट pnpm इस्तेमाल करता है — अगर आपके पास नहीं है, तो पहले इसे इंस्टॉल करें (npm, Node के साथ आता है, इसलिए यह कमांड हमेशा काम करती है):
```bash
npm install -g pnpm
pnpm install && pnpm run build
```
चलाएं:
```bash
pnpm start
```
प्रोग्राम पोर्ट 18966 पर चलेगा.
## ⚙️ कॉन्फ़िगरेशन
> [!IMPORTANT]
> **MaxMind GeoLite2 क्रेडेंशियल ज़रूरी हैं.** IP की जगह और ASN की जानकारी इन्हीं से मिलती है — इनके बिना MaxMind स्रोत 503 लौटाता है. ये मुफ़्त हैं: → [MaxMind Setup](https://docs.ipcheck.ing/developer/getting-started/maxmind-setup)
> [!WARNING]
> **असली डोमेन पर `ALLOWED_DOMAINS` ज़रूरी है.** यह बैकएंड API के लिए अनुमति वाले होस्टनेम की सूची है — इसके बिना localhost के अलावा किसी भी डोमेन से आने वाले हर अनुरोध को 403 मिलता है. → [Reverse Proxy & Domains](https://docs.ipcheck.ing/developer/getting-started/reverse-proxy-and-domains)
```bash
docker run -d -p 18966:18966 \
-e MAXMIND_ACCOUNT_ID="YOUR_ACCOUNT_ID" \
-e MAXMIND_LICENSE_KEY="YOUR_LICENSE_KEY" \
-e DATASET_AUTO_UPDATE="true" \
-e ALLOWED_DOMAINS="your-domain.com" \
--name myip --restart always \
jason5ng32/myip:latest
```
बाकी सब कुछ — वैकल्पिक API कुंजियां, सुरक्षा और रेट लिमिटिंग, लॉगिंग, Sentry, curl API के डोमेन — [Environment Variables reference](https://docs.ipcheck.ing/developer/reference/environment-variables) में लिखा है.
## 📖 दस्तावेज़
पूरी गाइड MyIP Docs Center में हैं: **[docs.ipcheck.ing](https://docs.ipcheck.ing)**
* [Developer Guide](https://docs.ipcheck.ing/developer) — डिप्लॉयमेंट, कॉन्फ़िगरेशन, आर्किटेक्चर और योगदान
* [Knowledge Base](https://docs.ipcheck.ing/knowledge-base) — हर टूल का इस्तेमाल, नेटवर्क की गड़बड़ी को कदम-दर-कदम समझना, और नेटवर्किंग की बुनियादी बातें
## 🤝 योगदान
योगदान का स्वागत है! हम नए लोगों के लिए आसान कामों की एक चुनी हुई सूची रखते हैं — हर काम में सही फ़ाइल पाथ, पूरा होने की शर्तें और टेस्ट हैं, जो आपको ग्रीन बिल्ड तक ले जाते हैं:
* 🏷️ [Good first issues](https://github.com/jason5ng32/MyIP/labels/good%20first%20issue) — अपने देश का DNS रिज़ॉल्वर जोड़ें, साइटों की सूचियां जोड़ें, README का अपनी भाषा में अनुवाद करें, अनुवाद बेहतर बनाएं, और भी बहुत कुछ
* 🌐 [TRANSLATING.md](TRANSLATING.md) — UI को अपनी भाषा में लाएं: एक लोकेल पैक और रजिस्ट्री की एक लाइन, और **अधूरा अनुवाद भी पहले PR के रूप में स्वागत योग्य है**
* 📄 [CONTRIBUTING.md](CONTRIBUTING.md) — सेटअप, नियम, और PR कैसे आगे बढ़ते हैं (`dev` ब्रांच को टारगेट करें)
## 👩🏻‍💻 ऐडवांस इस्तेमाल
<details>
<summary>असली IP और प्रॉक्सी IP दोनों एक साथ जांचने के लिए प्रॉक्सी नियम</summary>
अगर आप इंटरनेट के लिए प्रॉक्सी इस्तेमाल करते हैं, तो यह नियम अपनी प्रॉक्सी कॉन्फ़िगरेशन में जोड़ें (अपने क्लाइंट के हिसाब से बदल लें). इससे आप अपना असली IP और प्रॉक्सी वाला IP, दोनों देख सकते हैं:
```ini
# IP Testing
IP-CIDR,1.0.0.2/32,Proxy,no-resolve
IP-CIDR6,2606:4700:4700::1111/128,Proxy,no-resolve
DOMAIN,4.ipcheck.ing,DIRECT
DOMAIN,6.ipcheck.ing,DIRECT
# Rule Testing
DOMAIN,ptest-1.ipcheck.ing,Proxy1
DOMAIN,ptest-2.ipcheck.ing,Proxy2
DOMAIN,ptest-3.ipcheck.ing,Proxy3
DOMAIN,ptest-4.ipcheck.ing,Proxy4
DOMAIN,ptest-5.ipcheck.ing,Proxy5
DOMAIN,ptest-6.ipcheck.ing,Proxy6
DOMAIN,ptest-7.ipcheck.ing,Proxy7
DOMAIN,ptest-8.ipcheck.ing,Proxy8
DOMAIN,ptest-9.ipcheck.ing,Proxy9
DOMAIN,ptest-10.ipcheck.ing,Proxy10
DOMAIN,ptest-11.ipcheck.ing,Proxy11
DOMAIN,ptest-12.ipcheck.ing,Proxy12
```
</details>
## 💖 स्पॉन्सर और सपोर्टर
एक ओपन-सोर्स प्रोजेक्ट के तौर पर, मैं इन स्पॉन्सर का उनके सहयोग के लिए बहुत आभारी हूं:
**स्पॉन्सर**
<a href="https://www.swiftproxy.net/?ref=myip"><img src="https://res.ipcheck.ing/img/swiftproxy_logo.png" alt="SwiftProxy" height="48" /></a><br />
<sub>↳ **<a href="https://www.swiftproxy.net/?ref=myip">SwiftProxy</a>** — High-quality rotating and static residential proxies, with 90M+ residential IPs across 220+ locations worldwide. It supports HTTP(S), SOCKS5, rotating and sticky sessions, with residential proxy plans starting at just $0.7/GB. Use code `PROXY90` for an additional 10% off.
</sub>
<a href="https://proxy-seller.com/?partner=4FEC1644D12240F4"><img src="https://res.ipcheck.ing/img/proxyseller_logo.png" alt="Proxy-Seller" height="48" /></a><br />
<sub>↳ **<a href="https://proxy-seller.com/?partner=4FEC1644D12240F4">Proxy-Seller</a>** — offers private residential, mobile (4G/5G/LTE), ISP, and datacenter IPv4/IPv6 proxies with HTTP(S) and SOCKS5 support, 47M+ residential IPs in 220+ locations, precise country/city/ISP targeting, 99.7% uptime, and 24/7 support. MyIP users can use promo code `CHECKINGIP15` to get 15% off.
</sub>
<a href="https://v.ps/?utm_source=ipcheck.ing&utm_medium=referral&utm_campaign=github_readme&utm_content=hi"><img src="https://res.ipcheck.ing/img/vps_logo.png" alt="V.PS" height="48" /></a><br />
<sub>↳ **<a href="https://v.ps/?utm_source=ipcheck.ing&utm_medium=referral&utm_campaign=github_readme&utm_content=hi">V.PS</a>** — High-performance KVM VPS with global locations, fast connectivity, and IPv4 & IPv6 included.</sub>
----
**सपोर्टर**
<p><a href="https://www.cloudflare.com/lp/project-alexandria/"><img src="https://res.ipcheck.ing/img/cloudflare_logo.png" alt="Cloudflare Project Alexandria" height="32" /></a></p>
<p><a href="https://www.1password.com"><img src="https://res.ipcheck.ing/img/1password_logo.png" alt="1Password" height="32" /></a></p>
<p><a href="https://www.greptile.com/"><img src="https://res.ipcheck.ing/img/greptile_logo.png" alt="Greptile" height="32" /></a></p>
<p><a href="https://www.sentry.io"><img src="https://res.ipcheck.ing/img/sentry_logo.png" alt="Sentry" height="32" /></a></p>
<p><a href="https://www.gitbook.com"><img src="https://res.ipcheck.ing/img/gitbook_logo.png" alt="GitBook" height="32" /></a></p>
MyIP को स्पॉन्सर करना चाहते हैं? [स्पॉन्सर बनें](https://github.com/sponsors/jason5ng32)
## 📄 लाइसेंस
[AGPL-3.0](LICENSE) © Jason Ng
+2 -5
View File
@@ -22,7 +22,7 @@
![Docker Build and Push](https://github.com/jason5ng32/MyIP/actions/workflows/docker-image.yml/badge.svg?branch=main)
[![CI](https://github.com/jason5ng32/MyIP/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/jason5ng32/MyIP/actions/workflows/ci.yml)
[English](README.md) | [简体中文](README_ZH.md) | [繁體中文](README_ZH-TW.md) | [Русский](README_RU.md) | [Français](README_FR.md) | [Português (BR)](README_PT-BR.md) | [Shqip](README_SQ.md) | [ไทย](README_TH.md)
[English](README.md) | [简体中文](README_ZH.md) | [繁體中文](README_ZH-TW.md) | [Русский](README_RU.md) | [Français](README_FR.md) | [Português (BR)](README_PT-BR.md) | [Shqip](README_SQ.md) | [ไทย](README_TH.md) | [हिन्दी](README_HI.md)
Uma caixa de ferramentas de IP completa e de código aberto: consulta de IP a partir de múltiplas fontes, testes de conectividade, detecção de WebRTC e de vazamento de DNS, teste de velocidade, MTR, verificação de censura, Whois e muito mais — auto-hospedável com um único comando Docker.
@@ -185,9 +185,6 @@ Como projeto de código aberto, sou muito grato aos seguintes patrocinadores pel
**Patrocinadores**
<a href="https://www.rapidproxy.io/?ref=myip"><img src="https://res.ipcheck.ing/img/rapid_proxy_logo.png" alt="RapidProxy" height="48" /></a><br />
<sub>↳ **<a href="https://www.rapidproxy.io/?ref=myip">RapidProxy</a>** — Residential proxies with 90M+ IPs, smart rotation and precise geo-targeting. From $0.55/GB, 10% off with code `RAPID10`</sub>
<a href="https://www.swiftproxy.net/?ref=myip"><img src="https://res.ipcheck.ing/img/swiftproxy_logo.png" alt="SwiftProxy" height="48" /></a><br />
<sub>↳ **<a href="https://www.swiftproxy.net/?ref=myip">SwiftProxy</a>** — High-quality rotating and static residential proxies, with 90M+ residential IPs across 220+ locations worldwide. It supports HTTP(S), SOCKS5, rotating and sticky sessions, with residential proxy plans starting at just $0.7/GB. Use code `PROXY90` for an additional 10% off.
</sub>
@@ -214,4 +211,4 @@ Quer patrocinar o MyIP? [Seja um patrocinador](https://github.com/sponsors/jason
## 📄 Licença
[MIT](LICENSE) © Jason Ng
[AGPL-3.0](LICENSE) © Jason Ng
+2 -5
View File
@@ -22,7 +22,7 @@
![Docker Build and Push](https://github.com/jason5ng32/MyIP/actions/workflows/docker-image.yml/badge.svg?branch=main)
[![CI](https://github.com/jason5ng32/MyIP/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/jason5ng32/MyIP/actions/workflows/ci.yml)
[English](README.md) | [简体中文](README_ZH.md) | [繁體中文](README_ZH-TW.md) | [Русский](README_RU.md) | [Français](README_FR.md) | [Português (BR)](README_PT-BR.md) | [Shqip](README_SQ.md) | [ไทย](README_TH.md)
[English](README.md) | [简体中文](README_ZH.md) | [繁體中文](README_ZH-TW.md) | [Русский](README_RU.md) | [Français](README_FR.md) | [Português (BR)](README_PT-BR.md) | [Shqip](README_SQ.md) | [ไทย](README_TH.md) | [हिन्दी](README_HI.md)
Универсальный набор IP-инструментов с открытым исходным кодом: определение IP по нескольким источникам, проверка доступности сайтов, обнаружение утечек WebRTC и DNS, тест скорости, MTR, проверка цензуры, Whois и многое другое — разворачивается на своём сервере одной командой Docker.
@@ -185,9 +185,6 @@ DOMAIN,ptest-12.ipcheck.ing,Proxy12
**Спонсоры**
<a href="https://www.rapidproxy.io/?ref=myip"><img src="https://res.ipcheck.ing/img/rapid_proxy_logo.png" alt="RapidProxy" height="48" /></a><br />
<sub>↳ **<a href="https://www.rapidproxy.io/?ref=myip">RapidProxy</a>** — Residential proxies with 90M+ IPs, smart rotation and precise geo-targeting. From $0.55/GB, 10% off with code `RAPID10`</sub>
<a href="https://www.swiftproxy.net/?ref=myip"><img src="https://res.ipcheck.ing/img/swiftproxy_logo.png" alt="SwiftProxy" height="48" /></a><br />
<sub>↳ **<a href="https://www.swiftproxy.net/?ref=myip">SwiftProxy</a>** — High-quality rotating and static residential proxies, with 90M+ residential IPs across 220+ locations worldwide. It supports HTTP(S), SOCKS5, rotating and sticky sessions, with residential proxy plans starting at just $0.7/GB. Use code `PROXY90` for an additional 10% off.
</sub>
@@ -213,4 +210,4 @@ DOMAIN,ptest-12.ipcheck.ing,Proxy12
## 📄 Лицензия
[MIT](LICENSE) © Jason Ng
[AGPL-3.0](LICENSE) © Jason Ng
+2 -5
View File
@@ -22,7 +22,7 @@
![Docker Build and Push](https://github.com/jason5ng32/MyIP/actions/workflows/docker-image.yml/badge.svg?branch=main)
[![CI](https://github.com/jason5ng32/MyIP/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/jason5ng32/MyIP/actions/workflows/ci.yml)
[English](README.md) | [简体中文](README_ZH.md) | [繁體中文](README_ZH-TW.md) | [Русский](README_RU.md) | [Français](README_FR.md) | [Português (BR)](README_PT-BR.md) | [Shqip](README_SQ.md) | [ไทย](README_TH.md)
[English](README.md) | [简体中文](README_ZH.md) | [繁體中文](README_ZH-TW.md) | [Русский](README_RU.md) | [Français](README_FR.md) | [Português (BR)](README_PT-BR.md) | [Shqip](README_SQ.md) | [ไทย](README_TH.md) | [हिन्दी](README_HI.md)
Një kuti mjetesh IP gjithëpërfshirëse dhe me burim të hapur: kërkim IP nga shumë burime, teste lidhshmërie, zbulim i rrjedhjeve WebRTC dhe DNS, test shpejtësie, MTR, kontrolle censure, Whois e shumë të tjera — e vetë-strehueshme me një komandë të vetme Docker.
@@ -185,9 +185,6 @@ Si projekt me burim të hapur, jam shumë mirënjohës për mbështetjen e spons
**Sponsorët**
<a href="https://www.rapidproxy.io/?ref=myip"><img src="https://res.ipcheck.ing/img/rapid_proxy_logo.png" alt="RapidProxy" height="48" /></a><br />
<sub>↳ **<a href="https://www.rapidproxy.io/?ref=myip">RapidProxy</a>** — Residential proxies with 90M+ IPs, smart rotation and precise geo-targeting. From $0.55/GB, 10% off with code `RAPID10`</sub>
<a href="https://www.swiftproxy.net/?ref=myip"><img src="https://res.ipcheck.ing/img/swiftproxy_logo.png" alt="SwiftProxy" height="48" /></a><br />
<sub>↳ **<a href="https://www.swiftproxy.net/?ref=myip">SwiftProxy</a>** — High-quality rotating and static residential proxies, with 90M+ residential IPs across 220+ locations worldwide. It supports HTTP(S), SOCKS5, rotating and sticky sessions, with residential proxy plans starting at just $0.7/GB. Use code `PROXY90` for an additional 10% off.
</sub>
@@ -213,4 +210,4 @@ Jeni të interesuar të sponsorizoni MyIP? [Bëhu sponsor](https://github.com/sp
## 📄 Licenca
[MIT](LICENSE) © Jason Ng
[AGPL-3.0](LICENSE) © Jason Ng
+4 -7
View File
@@ -22,7 +22,7 @@
![Docker Build and Push](https://github.com/jason5ng32/MyIP/actions/workflows/docker-image.yml/badge.svg?branch=main)
[![CI](https://github.com/jason5ng32/MyIP/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/jason5ng32/MyIP/actions/workflows/ci.yml)
[English](README.md) | [简体中文](README_ZH.md) | [繁體中文](README_ZH-TW.md) | [Русский](README_RU.md) | [Français](README_FR.md) | [Português (BR)](README_PT-BR.md) | [Shqip](README_SQ.md) | [ไทย](README_TH.md)
[English](README.md) | [简体中文](README_ZH.md) | [繁體中文](README_ZH-TW.md) | [Русский](README_RU.md) | [Français](README_FR.md) | [Português (BR)](README_PT-BR.md) | [Shqip](README_SQ.md) | [ไทย](README_TH.md) | [हिन्दी](README_HI.md)
กล่องเครื่องมือ IP แบบโอเพนซอร์สที่รวมทุกอย่างไว้ในที่เดียว: ตรวจ IP จากหลายแหล่ง, ทดสอบการเชื่อมต่อ, ตรวจจับ WebRTC และ DNS รั่ว, ทดสอบความเร็ว, MTR, ตรวจการเซ็นเซอร์, Whois และอีกมากมาย ติดตั้งบนเซิร์ฟเวอร์ของคุณเองได้ด้วยคำสั่ง Docker เพียงคำสั่งเดียว
@@ -185,9 +185,6 @@ DOMAIN,ptest-12.ipcheck.ing,Proxy12
**Sponsors**
<a href="https://www.rapidproxy.io/?ref=myip"><img src="https://res.ipcheck.ing/img/rapid_proxy_logo.png" alt="RapidProxy" height="48" /></a><br />
<sub>↳ **<a href="https://www.rapidproxy.io/?ref=myip">RapidProxy</a>** — พร็อกซีแบบ residential มากกว่า 90 ล้าน IP หมุนเวียนอัจฉริยะ เลือกพื้นที่ได้แม่นยำ เริ่มต้น $0.55/GB ลด 10% ด้วยโค้ด `RAPID10`</sub>
<a href="https://www.swiftproxy.net/?ref=myip"><img src="https://res.ipcheck.ing/img/swiftproxy_logo.png" alt="SwiftProxy" height="48" /></a><br />
<sub>↳ **<a href="https://www.swiftproxy.net/?ref=myip">SwiftProxy</a>** — พร็อกซี residential คุณภาพสูงทั้งแบบหมุนเวียนและแบบคงที่ มี IP residential มากกว่า 90 ล้าน IP ในกว่า 220 พื้นที่ทั่วโลก รองรับ HTTP(S), SOCKS5, session แบบหมุนเวียนและแบบคงที่ แพ็กเกจ residential เริ่มต้นเพียง $0.7/GB ใช้โค้ด `PROXY90` รับส่วนลดเพิ่มอีก 10%
</sub>
@@ -196,8 +193,8 @@ DOMAIN,ptest-12.ipcheck.ing,Proxy12
<sub>↳ **<a href="https://proxy-seller.com/?partner=4FEC1644D12240F4">Proxy-Seller</a>** — ให้บริการพร็อกซีส่วนตัวแบบ residential, mobile (4G/5G/LTE), ISP และดาต้าเซ็นเตอร์ทั้ง IPv4/IPv6 รองรับ HTTP(S) และ SOCKS5 มี IP residential มากกว่า 47 ล้าน IP ในกว่า 220 พื้นที่ เลือกประเทศ/เมือง/ISP ได้แม่นยำ uptime 99.7% และซัพพอร์ตตลอด 24 ชั่วโมง ผู้ใช้ MyIP ใช้โค้ด `CHECKINGIP15` รับส่วนลด 15%
</sub>
<a href="https://v.ps/?utm_source=ipcheck.ing&utm_medium=referral&utm_campaign=github_readme&utm_content=en"><img src="https://res.ipcheck.ing/img/vps_logo.png" alt="V.PS" height="48" /></a><br />
<sub>↳ **<a href="https://v.ps/?utm_source=ipcheck.ing&utm_medium=referral&utm_campaign=github_readme&utm_content=en">V.PS</a>** — VPS แบบ KVM ประสิทธิภาพสูง มีหลายพื้นที่ทั่วโลก เชื่อมต่อเร็ว ให้ทั้ง IPv4 และ IPv6</sub>
<a href="https://v.ps/?utm_source=ipcheck.ing&utm_medium=referral&utm_campaign=github_readme&utm_content=th"><img src="https://res.ipcheck.ing/img/vps_logo.png" alt="V.PS" height="48" /></a><br />
<sub>↳ **<a href="https://v.ps/?utm_source=ipcheck.ing&utm_medium=referral&utm_campaign=github_readme&utm_content=th">V.PS</a>** — VPS แบบ KVM ประสิทธิภาพสูง มีหลายพื้นที่ทั่วโลก เชื่อมต่อเร็ว ให้ทั้ง IPv4 และ IPv6</sub>
----
@@ -213,4 +210,4 @@ DOMAIN,ptest-12.ipcheck.ing,Proxy12
## 📄 สัญญาอนุญาต
[MIT](LICENSE) © Jason Ng
[AGPL-3.0](LICENSE) © Jason Ng
+2 -5
View File
@@ -22,7 +22,7 @@
![Docker Build and Push](https://github.com/jason5ng32/MyIP/actions/workflows/docker-image.yml/badge.svg?branch=main)
[![CI](https://github.com/jason5ng32/MyIP/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/jason5ng32/MyIP/actions/workflows/ci.yml)
[English](README.md) | [简体中文](README_ZH.md) | [繁體中文](README_ZH-TW.md) | [Русский](README_RU.md) | [Français](README_FR.md) | [Português (BR)](README_PT-BR.md) | [Shqip](README_SQ.md) | [ไทย](README_TH.md)
[English](README.md) | [简体中文](README_ZH.md) | [繁體中文](README_ZH-TW.md) | [Русский](README_RU.md) | [Français](README_FR.md) | [Português (BR)](README_PT-BR.md) | [Shqip](README_SQ.md) | [ไทย](README_TH.md) | [हिन्दी](README_HI.md)
一個開源的多合一 IP 工具箱:多來源 IP 查詢、連通性測試、WebRTC 與 DNS 洩漏偵測、網速測試、MTR、審查封鎖檢查、Whois 等——一條 Docker 指令即可自行架設。
@@ -185,9 +185,6 @@ DOMAIN,ptest-12.ipcheck.ing,Proxy12
**贊助商**
<a href="https://www.rapidproxy.io/?ref=myip"><img src="https://res.ipcheck.ing/img/rapid_proxy_logo.png" alt="RapidProxy" height="48" /></a><br />
<sub>↳ **<a href="https://www.rapidproxy.io/?ref=myip">RapidProxy</a>** — Residential proxies with 90M+ IPs, smart rotation and precise geo-targeting. From $0.55/GB, 10% off with code `RAPID10`</sub>
<a href="https://www.swiftproxy.net/?ref=myip"><img src="https://res.ipcheck.ing/img/swiftproxy_logo.png" alt="SwiftProxy" height="48" /></a><br />
<sub>↳ **<a href="https://www.swiftproxy.net/?ref=myip">SwiftProxy</a>** — High-quality rotating and static residential proxies, with 90M+ residential IPs across 220+ locations worldwide. It supports HTTP(S), SOCKS5, rotating and sticky sessions, with residential proxy plans starting at just $0.7/GB. Use code `PROXY90` for an additional 10% off.
</sub>
@@ -213,4 +210,4 @@ DOMAIN,ptest-12.ipcheck.ing,Proxy12
## 📄 授權條款
[MIT](LICENSE) © Jason Ng
[AGPL-3.0](LICENSE) © Jason Ng
+2 -5
View File
@@ -22,7 +22,7 @@
![Docker Build and Push](https://github.com/jason5ng32/MyIP/actions/workflows/docker-image.yml/badge.svg?branch=main)
[![CI](https://github.com/jason5ng32/MyIP/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/jason5ng32/MyIP/actions/workflows/ci.yml)
[English](README.md) | [简体中文](README_ZH.md) | [繁體中文](README_ZH-TW.md) | [Русский](README_RU.md) | [Français](README_FR.md) | [Português (BR)](README_PT-BR.md) | [Shqip](README_SQ.md) | [ไทย](README_TH.md)
[English](README.md) | [简体中文](README_ZH.md) | [繁體中文](README_ZH-TW.md) | [Русский](README_RU.md) | [Français](README_FR.md) | [Português (BR)](README_PT-BR.md) | [Shqip](README_SQ.md) | [ไทย](README_TH.md) | [हिन्दी](README_HI.md)
一个开源的一站式 IP 工具箱:多来源 IP 查询、连通性测试、WebRTC 与 DNS 泄露检测、网速测试、MTR、封锁检测、Whois 等等 —— 一条 Docker 命令即可自行部署。
@@ -185,9 +185,6 @@ DOMAIN,ptest-12.ipcheck.ing,Proxy12
**赞助商**
<a href="https://www.rapidproxy.io/?ref=myip"><img src="https://res.ipcheck.ing/img/rapid_proxy_logo.png" alt="RapidProxy" height="48" /></a><br />
<sub>↳ **<a href="https://www.rapidproxy.io/?ref=myip">RapidProxy</a>** — 全球住宅代理服务,覆盖 9000 万+ 住宅 IP,支持智能轮换、稳定会话和精准地理定位,适用于代理测试、浏览器自动化及数据采集等场景。低至 $0.55/GB,使用 `RAPID10` 享 9 折优惠。</sub>
<a href="https://www.swiftproxy.net/?ref=myip"><img src="https://res.ipcheck.ing/img/swiftproxy_logo.png" alt="SwiftProxy" height="48" /></a><br />
<sub>↳ **<a href="https://www.swiftproxy.net/?ref=myip">SwiftProxy</a>** — 提供高质量动态和静态住宅代理,拥有 9000 万+住宅 IP,覆盖全球 220+ 个地区,支持 HTTP(S)、SOCKS5 协议及动态轮换和粘性会话。动态住宅代理低至 $0.7/GB,使用优惠码 `PROXY90` 再享九折优惠。
</sub>
@@ -213,4 +210,4 @@ DOMAIN,ptest-12.ipcheck.ing,Proxy12
## 📄 开源协议
[MIT](LICENSE) © Jason Ng
[AGPL-3.0](LICENSE) © Jason Ng
+1
View File
@@ -54,4 +54,5 @@ export const DNS_RESOLVERS = [
{ id: 'hinet', name: 'HiNet', country: 'TW', udp: '168.95.1.1' },
{ id: 'giga', name: 'GIGA', country: 'TW', udp: '203.133.1.6' },
{ id: 'kt', name: 'KT', country: 'KR', udp: '168.126.63.1' },
{ id: 'thains', name: 'ThaiNS', country: 'TH', udp: '203.159.77.77' },
];
+2 -2
View File
@@ -132,7 +132,7 @@ package — drop the dependency, import from `@/lib/utils`.
### Design tokens
`style/style.css`: `--info` (waiting) · `--success` (ok-fast) · `--warning`
(ok-slow) · `--action` (run), each with `-foreground`; semantic tokens only,
(ok-slow; `/50` for ok-mild) · `--action` (run), each with `-foreground`; semantic tokens only,
never `dark:` pairs. Button adds `action` / `success`; Badge adds `success`,
hover disabled (wrap it to interact). FAB colors: `action` trigger, `default`
stateless panel, `success` protective state on, `secondary` dock; ≤ 2 accents.
@@ -140,7 +140,7 @@ stateless panel, `success` protective state on, `secondary` dock; ≤ 2 accents.
### Status tones
Every "business state → color" mapping goes through `use-status-tone.js`
(`wait` / `ok-fast` / `ok-slow` / `fail`), normally via `ipFieldTone()`.
(`wait` / `ok-fast` / `ok-mild` / `ok-slow` / `fail`), normally via `ipFieldTone()`.
### Canonical patterns — copy the named exemplar, don't re-invent
+18 -7
View File
@@ -32,7 +32,7 @@
</div>
</div>
<!-- Project: the About sheet's tabs, privacy and license -->
<!-- Project: the About sheet's tabs, privacy, license and contributing -->
<nav :aria-label="t('footer.Project')">
<h3 :class="headingClass">{{ t('footer.Project') }}</h3>
<ul class="space-y-2">
@@ -42,13 +42,13 @@
</button>
</li>
<li>
<button type="button" :class="linkClass" @click="openAboutTab('changelog', 'Changelog')">
{{ t('changelog.Title') }}
<button type="button" :class="linkClass" @click="openAboutTab('acknowledgement', 'Acknowledgement')">
{{ t('acknowledgement.Title') }}
</button>
</li>
<li>
<button type="button" :class="linkClass" @click="openAboutTab('acknowledgement', 'Acknowledgement')">
{{ t('acknowledgement.Title') }}
<button type="button" :class="linkClass" @click="openAboutTab('changelog', 'Changelog')">
{{ t('changelog.Title') }}
</button>
</li>
<li>
@@ -62,6 +62,12 @@
{{ t('footer.License') }}
</a>
</li>
<li>
<a :href="`${t('page.footerLink')}/contribute`" target="_blank" rel="noopener" :class="linkClass"
@click="trackEvent('Footer', 'FooterClick', 'Contribute')">
{{ t('footer.Contribute') }}
</a>
</li>
</ul>
</nav>
@@ -93,6 +99,12 @@
{{ t('footer.ReportIssue') }}
</a>
</li>
<li>
<a :href="`${t('page.footerLink')}/issues/new?template=feature_request.md`" target="_blank" rel="noopener"
:class="linkClass" @click="trackEvent('Footer', 'FooterClick', 'FeatureRequest')">
{{ t('footer.FeatureRequest') }}
</a>
</li>
</ul>
</nav>
@@ -305,7 +317,7 @@ const store = useMainStore();
const configs = computed(() => store.configs);
const curl = computed(() => store.curl);
const curlDomainsHadSet = computed(() => store.curlDomainsHadSet);
const tabs = ['about', 'changelog', 'acknowledgement'];
const tabs = ['about', 'acknowledgement', 'changelog'];
const content = ref('about');
const headingClass = 'mb-3 text-xs font-semibold uppercase tracking-wide text-muted-foreground';
@@ -342,7 +354,6 @@ const acknowledgementsList = [
{ name: 'Project Alexandria (Cloudflare)', link: 'https://www.cloudflare.com/lp/project-alexandria/' },
{ name: 'Cloudflare Speedtest', link: 'https://github.com/cloudflare/speedtest' },
{ name: 'V.PS', link: 'https://v.ps/?utm_source=ipcheck.ing&utm_medium=acknowledgement&utm_campaign=footer' },
{ name: 'RapidProxy', link: 'https://www.rapidproxy.io/?ref=myip' },
{ name: 'SwiftProxy', link: 'https://www.swiftproxy.net/?ref=myip' },
{ name: 'Proxy-Seller', link: 'https://proxy-seller.com/?partner=4FEC1644D12240F4' },
{ name: 'Sentry', link: 'https://www.sentry.io/' },
@@ -454,7 +454,7 @@ import { Separator } from '@/components/ui/separator';
import { Spinner } from '@/components/ui/spinner';
import { ToggleGroup, ToggleGroupItem } from '@/components/ui/toggle-group';
// Heavy (dagre + SVG) — async, as IpDetailPanel loads it.
// Heavy (dagre + SVG) — async, as IpAsnBlock loads it.
const ASNConnectivity = defineAsyncComponent(() => import('@/components/ip-infos/ASNConnectivity.vue'));
const { t, locale } = useI18n();
@@ -217,6 +217,9 @@ const PROVIDERS = [
{ id: 'perplexity', name: 'Perplexity', icon: 'ri:perplexity-line' },
{ id: 'canva', name: 'Canva', icon: 'simple-icons:canva' },
{ id: 'docker', name: 'Docker', icon: 'simple-icons:docker' },
{ id: 'bitbucket', name: 'Bitbucket', icon: 'simple-icons:bitbucket' },
{ id: 'digitalocean', name: 'DigitalOcean', icon: 'simple-icons:digitalocean' },
{ id: 'reddit', name: 'Reddit', icon: 'ri:reddit-line' },
];
const placeholderSizes = [10, 7, 9, 6, 8];
+1 -1
View File
@@ -1,5 +1,5 @@
<template>
<!-- ASN History Panel: embedded in IpDetailPanel's Collapsible.
<!-- ASN History Panel: embedded in IpAsnBlock's Collapsible.
Lists every ASN that has announced (a prefix covering) this IP over
time, per RIPEstat routing-history. -->
<div class="rounded-md border bg-muted/40 text-sm">
@@ -0,0 +1,375 @@
<!-- Advanced block (IPCheck.ing source only): locked CTA + `***` preview when gated, otherwise the
label-value grid with the single-select score / friction details frame under it. One of
IpDetailPanel's root siblings; its own root carries the collapsed / source gates. -->
<template>
<div v-if="!collapsed" v-show="showAdvancedBlock" class="px-4 pb-3 border-t pt-3 space-y-2.5">
<!-- Gated: single CTA banner + 4-field preview grid with *** values.
Signed-out shows the sign-in copy; over-quota shows the monthly
quota copy + sponsor link instead. -->
<template v-if="allAdvancedLocked || allAdvancedQuotaExceeded">
<span
class="w-full flex items-center justify-between gap-2 text-xs px-2.5 py-1.5 rounded-md bg-muted/60 text-muted-foreground transition-colors group">
<span class="flex items-center gap-1.5 min-w-0">
<component :is="allAdvancedQuotaExceeded ? Hourglass : Lock" class="size-3.5 shrink-0" />
<span class="truncate">
{{ allAdvancedQuotaExceeded ? t('ipInfos.advancedQuotaCta') : t('ipInfos.advancedUnlockCta') }}
</span>
</span>
<!-- Opens the Benefits & Usage dialog (usage tab for signed-in
users) — the sponsor path lives there, not a direct jump. -->
<button v-if="allAdvancedQuotaExceeded" type="button"
class="shrink-0 underline underline-offset-2 hover:text-foreground cursor-pointer"
@click="openUsageDialog">
{{ t('user.ViewUsage') }}
</button>
</span>
<dl class="grid grid-cols-2 md:grid-cols-4 gap-x-3 gap-y-3 text-sm items-start">
<div v-for="f in lockedFieldList" :key="f.key">
<dt class="flex items-center gap-1.5 text-xs text-muted-foreground mb-1">
<component :is="f.icon" class="size-3.5" />
<span>{{ f.label }}</span>
</dt>
<dd class="font-normal text-muted-foreground/60">***</dd>
</div>
</dl>
</template>
<!-- Signed-in: same vertical "label on top, value below" rhythm as the metadata grid,
plus the collapsible score / friction details panel under it (one child for space-y). -->
<div v-else>
<dl class="grid grid-cols-2 md:grid-cols-2 gap-x-3 gap-y-3 text-sm items-start">
<div v-if="showTypeBadge">
<dt class="flex items-center gap-1.5 text-xs text-muted-foreground mb-1">
<SignalHigh class="size-3.5" />
<span>{{ t('ipInfos.type') }}</span>
</dt>
<dd class="font-normal wrap-break-word">{{ data.type }}</dd>
</div>
<div v-if="showAnonymityBadge">
<dt class="flex items-center gap-1.5 text-xs text-muted-foreground mb-1">
<ShieldCheck class="size-3.5" />
<span>{{ t('ipInfos.anonymity.label') }}</span>
</dt>
<dd class="font-normal wrap-break-word">
{{ data.anonymity }}
</dd>
<!-- Anonymizing service, when the API named one. -->
<dd v-if="anonymityService" class="font-normal wrap-break-word">
<span class="text-muted-foreground font-normal text-xs">{{ anonymityService }}</span>
</dd>
</div>
<div v-if="showNativeBadge">
<dt class="flex items-center gap-1.5 text-xs text-muted-foreground mb-1">
<House class="size-3.5" />
<span>{{ t('ipInfos.advancedData.Nativeness') }}</span>
<JnTooltip :text="t('ipInfos.advancedData.nativenessTooltip')" side="top" class="hidden md:block">
<CircleQuestionMark class="size-3 cursor-help opacity-70" />
</JnTooltip>
</dt>
<dd class="font-normal flex items-center gap-1 wrap-break-word">
<component :is="data.isNativeIP === true ? Equal : EqualNot" class="size-3.5 shrink-0" />
<span>{{ data.isNativeIP === true ? t('ipInfos.advancedData.NativeIPYes') :
t('ipInfos.advancedData.NativeIPNo') }}</span>
</dd>
</div>
<div v-if="showQualityScore">
<dt class="flex items-center gap-1.5 text-xs text-muted-foreground mb-1">
<Gauge class="size-3.5" />
<span>{{ t('ipInfos.qualityScore') }}</span>
</dt>
<dd class="flex items-center gap-2">
<span v-if="data.qualityScore === 'unknown'" class="font-normal text-muted-foreground">
{{ t('ipInfos.qualityScoreUnknown') }}
</span>
<template v-else>
<Progress :model-value="Number(data.qualityScore) || 0" class="h-2 flex-1 min-w-12"
:indicator-class="qualityTone === 'ok-fast' ? 'bg-success' : qualityTone === 'ok-slow' ? 'bg-warning' : 'bg-destructive'" />
<span class="text-sm font-normal tabular-nums shrink-0">{{ data.qualityScore }}/100</span>
</template>
<!-- Score-details toggle -->
<JnTooltip v-if="hasScoreDetails" :text="t('ipInfos.scoreDetails.toggle')" side="top">
<Button variant="ghost" size="icon"
:class="['size-6 -my-1 shrink-0 cursor-pointer', isDetailActive('score') && 'bg-muted text-foreground hover:bg-muted']"
@click="toggleDetail('score')" :aria-expanded="isDetailActive('score')"
:aria-label="t('ipInfos.scoreDetails.toggle')">
<ChevronDown class="size-3.5 transition-transform duration-200"
:class="isDetailActive('score') && 'rotate-180'" />
</Button>
</JnTooltip>
</dd>
</div>
<div v-if="abuseLevel">
<dt class="flex items-center gap-1.5 text-xs text-muted-foreground mb-1">
<Flag class="size-3.5" />
<span>{{ t('ipInfos.abuseLevel.label') }}</span>
</dt>
<dd class="font-normal wrap-break-word">{{ t('ipInfos.abuseLevel.' + abuseLevel) }}</dd>
</div>
<!-- Scenario friction: one tone dot per scenario, low → high (deliberately not a score
bar); hidden when the answer carries no scenarios. -->
<div v-if="hasFriction">
<dt class="flex items-center gap-1.5 text-xs text-muted-foreground mb-1">
<Compass class="size-3.5" />
<span>{{ t('ipInfos.scenarioFriction.label') }}</span>
</dt>
<!-- min-h-5 matches the quality-score row's text line. Dots + chevron form one
left-aligned group: 8px dots at a 4px gap (10 → 116px) that close up rather
than overflow a narrow cell; free space trails, like the text cells. -->
<dd class="flex min-h-5 items-center gap-2">
<div role="img" :aria-label="frictionBreakdown" :title="frictionBreakdown"
class="flex min-w-0 flex-nowrap items-center justify-between"
:style="{ width: `${frictionDotList.length * 12 - 4}px` }">
<span v-for="dot in frictionDotList" :key="dot.id"
class="size-2 shrink-0 rounded-full" :class="dotClass(dot.tone)" />
</div>
<JnTooltip :text="t('ipInfos.scenarioFriction.toggle')" side="top">
<Button variant="ghost" size="icon"
:class="['size-6 -my-1 shrink-0 cursor-pointer', isDetailActive('friction') && 'bg-muted text-foreground hover:bg-muted']"
@click="toggleDetail('friction')" :aria-expanded="isDetailActive('friction')"
:aria-label="t('ipInfos.scenarioFriction.toggle')">
<ChevronDown class="size-3.5 transition-transform duration-200"
:class="isDetailActive('friction') && 'rotate-180'" />
</Button>
</JnTooltip>
</dd>
</div>
</dl>
<!-- Details frame, one at a time. Score: plain-language explanation (needs the
`dimensions` block), then every attribute tag. Friction: the scenario list. -->
<Collapsible :open="isDetailOpen" @update:open="isDetailOpen = $event">
<CollapsibleContent>
<div class="pt-3">
<div class="rounded-md border bg-muted/40 p-3 space-y-3">
<template v-if="openDetail === 'score'">
<ScoreDetailsPanel :explanation="scoreExplanation" :tags="scoreTagRows" />
<!-- Point to a blocklist check of this IP. -->
<p v-if="blocklistHref"
class="border-t pt-3 flex flex-wrap items-center gap-x-1.5 gap-y-1 text-xs leading-relaxed text-muted-foreground">
<span>{{ t('ipInfos.scoreDetails.blocklistHint') }}</span>
<a :href="blocklistHref" @click="openBlocklist"
class="inline-flex items-center gap-0.5 font-medium text-foreground underline-offset-2 hover:underline">
{{ t('ipInfos.scoreDetails.blocklistLink') }}<ArrowRight class="size-3" />
</a>
</p>
</template>
<template v-else-if="openDetail === 'friction' && hasFriction">
<ScenarioFrictionPanel :scenarios="data.frictionScenarios"
:country-name="data.country_name || ''" />
<!-- Point to a Persona Check of this browser. -->
<p v-if="personacheckHref"
class="border-t pt-3 flex flex-wrap items-center gap-x-1.5 gap-y-1 text-xs leading-relaxed text-muted-foreground">
<span>{{ t('ipInfos.scenarioFriction.personaHint') }}</span>
<a :href="personacheckHref" @click="openPersonacheck"
class="inline-flex items-center gap-0.5 font-medium text-foreground underline-offset-2 hover:underline">
{{ t('ipInfos.scenarioFriction.personaLink') }}<ArrowRight class="size-3" />
</a>
</p>
</template>
</div>
</div>
</CollapsibleContent>
</Collapsible>
</div>
</div>
</template>
<script setup>
import { ref, computed, watch } from 'vue';
import { useMainStore } from '@/store';
import { useI18n } from 'vue-i18n';
import { useRouter } from 'vue-router';
import { trackEvent } from '@/utils/analytics';
import { formatIsoDate } from '@/utils/time-utils.js';
import { buildScoreExplanation, listScoreTags } from '@/utils/ip/ip-score-details.js';
import { isToolAvailable } from '@/utils/tool-availability.js';
import { TOOL_BY_SLUG } from '@/data/tools.js';
import { isPlainClick } from '@/utils/nav-target.js';
import { useStatusTone } from '@/composables/use-status-tone.js';
import { frictionDots, frictionShares } from '@/utils/features/scenario-friction.js';
import ScenarioFrictionPanel from './ScenarioFrictionPanel.vue';
import ScoreDetailsPanel from './ScoreDetailsPanel.vue';
import { JnTooltip } from '@/components/ui/tooltip';
import { Collapsible, CollapsibleContent } from '@/components/ui/collapsible';
import { Progress } from '@/components/ui/progress';
import { Button } from '@/components/ui/button';
import {
ArrowRight,
ChevronDown,
CircleQuestionMark,
Compass,
Equal,
EqualNot,
Flag,
Gauge,
Hourglass,
House,
Lock,
ShieldCheck,
SignalHigh,
} from '@lucide/vue';
const { t, locale } = useI18n();
const store = useMainStore();
const props = defineProps({
data: { type: Object, required: true },
ipGeoSource: { type: Number, required: true },
configs: { type: Object, required: true },
collapsed: { type: Boolean, default: false },
});
// Re-emitted by IpDetailPanel to its consumer (see there).
const emit = defineEmits(['view-usage', 'open-tool']);
const openUsageDialog = () => {
emit('view-usage');
store.setTriggerUserBenefits(true);
};
// Advanced block only surfaces for the IPCheck.ing source (ipGeoSource === 0).
const showAdvancedBlock = computed(() => props.ipGeoSource === 0 && Boolean(props.data));
// Backend gating sentinels for the advanced fields (see transform-ip-data.js).
const isGatedValue = (value) => value === 'sign_in_required' || value === 'quota_exceeded';
// If every advanced field is masked → show the single CTA + preview grid instead
// of rendering four individual gated rows. The two sentinels pick different copy.
const allAdvancedLocked = computed(() =>
props.data.type === 'sign_in_required' &&
props.data.anonymity === 'sign_in_required' &&
props.data.isNativeIP === 'sign_in_required' &&
props.data.qualityScore === 'sign_in_required'
);
const allAdvancedQuotaExceeded = computed(() =>
props.data.type === 'quota_exceeded' &&
props.data.anonymity === 'quota_exceeded' &&
props.data.isNativeIP === 'quota_exceeded' &&
props.data.qualityScore === 'quota_exceeded'
);
const showTypeBadge = computed(() =>
props.data.type && !isGatedValue(props.data.type)
&& props.data.type !== t('ipInfos.advancedData.type.unknownType')
);
const showAnonymityBadge = computed(() =>
Boolean(props.data.anonymity) && !isGatedValue(props.data.anonymity)
);
// "Provider · protocol"; both are null unless the API named a service.
const anonymityService = computed(() =>
[props.data.anonymityProvider, props.data.anonymityProtocol].filter(Boolean).join(' · ')
);
const showNativeBadge = computed(() =>
props.data.isNativeIP !== undefined && !isGatedValue(props.data.isNativeIP)
);
const showQualityScore = computed(() =>
props.data.qualityScore !== undefined && !isGatedValue(props.data.qualityScore)
);
// Locked field preview: the 4 advanced fields shown as "label + ***" for signed-out users.
const lockedFieldList = computed(() => [
{ key: 'type', icon: SignalHigh, label: t('ipInfos.type') },
{ key: 'anonymity', icon: ShieldCheck, label: t('ipInfos.anonymity.label') },
{ key: 'native', icon: House, label: t('ipInfos.advancedData.Nativeness') },
{ key: 'quality', icon: Gauge, label: t('ipInfos.qualityScore') },
]);
// Quality Score color tiers — reuse the same 4-tone semantic as use-status-tone.
const qualityTone = computed(() => {
const n = Number(props.data.qualityScore);
if (isNaN(n)) return 'wait';
if (n >= 80) return 'ok-fast';
if (n >= 50) return 'ok-slow';
return 'fail';
});
// Score-details panel (IPCheck.ing source): explanation sentences (need
// `dimensions`) and attribute rows. Both are empty for gated data, and the
// toggle only shows when either has content.
const scoreExplanation = computed(() => buildScoreExplanation(props.data, {
t,
formatDate: (day) => formatIsoDate(day, locale.value),
}));
const scoreTagRows = computed(() => listScoreTags(props.data.scoreTags));
const hasScoreDetails = computed(() =>
showAdvancedBlock.value && (scoreExplanation.value.length > 0 || scoreTagRows.value.length > 0)
);
// Abuse level from the v3 reputation dimension (`ipInfos.abuseLevel.*`); anything else hides the cell.
const ABUSE_LEVELS = ['none', 'low', 'medium', 'high'];
const abuseLevel = computed(() => {
const level = props.data.scoreDimensions?.reputation?.level;
return ABUSE_LEVELS.includes(level) ? level : '';
});
// Scenario friction: normalized scenarios (transform-ip-data.js), one dot each.
const { dotClass } = useStatusTone();
const hasFriction = computed(() =>
Array.isArray(props.data.frictionScenarios) && props.data.frictionScenarios.length > 0
);
const frictionList = computed(() => (hasFriction.value ? props.data.frictionScenarios : []));
const frictionCounts = computed(() => frictionShares(frictionList.value));
const frictionDotList = computed(() => frictionDots(frictionList.value));
const frictionBreakdown = computed(() => t('ipInfos.scenarioFriction.breakdown', {
smooth: frictionCounts.value.smooth,
checks: frictionCounts.value.checks,
restricted: frictionCounts.value.restricted,
}));
// Single-select details frame ('score' | 'friction'). Content is kept separate
// from the open state, so the close animation keeps its content.
const openDetail = ref(null);
const isDetailOpen = ref(false);
const isDetailActive = (name) => isDetailOpen.value && openDetail.value === name;
const toggleDetail = (name) => {
if (isDetailActive(name)) {
isDetailOpen.value = false;
return;
}
if (name === 'score') trackEvent('IPCheck', 'ScoreDetailsClick', 'Show Score Details');
else trackEvent('IPCheck', 'ScenarioFrictionClick', 'Show Scenario Friction');
openDetail.value = name;
isDetailOpen.value = true;
};
// A different IP starts collapsed.
watch(() => props.data.ip, () => { isDetailOpen.value = false; });
// A refresh without scenarios closes their frame instead of leaving it empty.
watch(hasFriction, (has) => { if (!has && openDetail.value === 'friction') isDetailOpen.value = false; });
// Blocklist Check entry: hidden when the tool is gated off; `q` only prefills.
const router = useRouter();
const blocklistHref = computed(() => (
isToolAvailable(TOOL_BY_SLUG.get('blocklist'), props.configs) && props.data.ip
? `/tools/blocklist?q=${encodeURIComponent(props.data.ip)}`
: ''
));
const openBlocklist = (e) => {
if (!isPlainClick(e)) return;
e.preventDefault();
trackEvent('IPCheck', 'BlocklistCTAClick', 'Open Blocklist Check');
emit('open-tool');
router.push({ path: '/tools/blocklist', query: { q: props.data.ip } });
};
// Persona Check invitation closing the friction details: dropped when the tool is gated off.
const personacheckHref = computed(() => (
isToolAvailable(TOOL_BY_SLUG.get('personacheck'), props.configs) ? '/tools/personacheck' : ''
));
const openPersonacheck = (e) => {
if (!isPlainClick(e)) return;
e.preventDefault();
trackEvent('IPCheck', 'PersonaCheckCTAClick', 'Open Persona Check');
emit('open-tool');
router.push({ path: '/tools/personacheck' });
};
</script>
+156
View File
@@ -0,0 +1,156 @@
<!-- ASN block: the ASN row with its Info / History / Connectivity toggles over one single-select
Collapsible. One of IpDetailPanel's root siblings; the caches are the consumer's, passed down. -->
<template>
<div v-if="data.asn && !collapsed" class="px-4 py-3 border-t">
<div class="flex items-center justify-between gap-2">
<div class="flex items-center gap-2 min-w-0 text-sm">
<Building2 class="size-4 text-muted-foreground shrink-0" />
<span class="text-xs text-muted-foreground shrink-0">{{ t('ipInfos.ASN') }}</span>
<span class="font-mono font-normal truncate">{{ data.asn }}</span>
</div>
<div class="shrink-0 flex items-center gap-1">
<!-- ASN Info -->
<JnTooltip v-if="data.asnlink && configs.cloudFlare" :text="t('Tooltips.ShowASNInfo')" side="top">
<Button variant="ghost" size="icon"
:class="['size-7 cursor-pointer', isPanelActive('info') && 'bg-muted text-foreground hover:bg-muted']"
@click="togglePanel('info')" :aria-expanded="isPanelActive('info')"
:aria-label="'Display AS Info of ' + data.asn">
<Info />
</Button>
</JnTooltip>
<!-- ASN History -->
<JnTooltip v-if="ipPrefix" :text="t('Tooltips.ShowASNHistory')" side="top">
<Button variant="ghost" size="icon"
:class="['size-7 cursor-pointer', isPanelActive('history') && 'bg-muted text-foreground hover:bg-muted']"
@click="togglePanel('history')" :aria-expanded="isPanelActive('history')"
:aria-label="'Display ASN History of ' + data.ip">
<FolderClock />
</Button>
</JnTooltip>
<!-- ASN Connectivity -->
<JnTooltip v-if="asnNumeric" :text="t('Tooltips.ShowASNConnectivity')" side="top">
<Button variant="ghost" size="icon"
:class="['size-7 cursor-pointer', isPanelActive('connectivity') && 'bg-muted text-foreground hover:bg-muted']"
@click="togglePanel('connectivity')" :aria-expanded="isPanelActive('connectivity')"
:aria-label="'Display ASN Connectivity of ' + data.asn">
<Network />
</Button>
</JnTooltip>
</div>
</div>
<Collapsible :open="isPanelOpen" @update:open="onPanelOpenChange">
<CollapsibleContent>
<div class="pt-3">
<ASNInfo v-if="activePanel === 'info'" :index="index" :isDarkMode="isDarkMode" :asn="data.asn"
:asnInfos="asnInfos" @open-profile="emit('open-tool')" />
<ASNHistory v-else-if="activePanel === 'history'" :prefix="ipPrefix"
:asnHistoryInfos="asnHistoryInfos" />
<ASNConnectivity v-else-if="activePanel === 'connectivity'" :asn="asnNumeric"
:asnConnectivityInfos="asnConnectivityInfos" />
</div>
</CollapsibleContent>
</Collapsible>
</div>
</template>
<script setup>
import { ref, computed, defineAsyncComponent } from 'vue';
import { useI18n } from 'vue-i18n';
import { trackEvent } from '@/utils/analytics';
import { loadAsnInfoInto } from '@/composables/use-asn-info.js';
import { loadAsnHistoryInto } from '@/utils/ip/asn-history.js';
import { loadAsnConnectivityInto } from '@/utils/ip/asn-connectivity.js';
import { toBgpPrefix } from '@/utils/ip/bgp-prefix.js';
import ASNInfo from './ASNInfo.vue';
import ASNHistory from './ASNHistory.vue';
import { JnTooltip } from '@/components/ui/tooltip';
import { Collapsible, CollapsibleContent } from '@/components/ui/collapsible';
import { Button } from '@/components/ui/button';
import { Building2, FolderClock, Info, Network } from '@lucide/vue';
// ASNConnectivity is heavy (dagre + SVG render); async-import so it
// only enters the bundle when a user opens the Connectivity panel.
const ASNConnectivity = defineAsyncComponent(() => import('./ASNConnectivity.vue'));
const { t } = useI18n();
const props = defineProps({
data: { type: Object, required: true },
asnInfos: { type: Object, required: true },
asnHistoryInfos: { type: Object, default: () => ({}) },
asnConnectivityInfos: { type: Object, default: () => ({}) },
configs: { type: Object, required: true },
isDarkMode: { type: Boolean, required: true },
index: { type: Number, default: 0 },
collapsed: { type: Boolean, default: false },
});
// ASNInfo's ASN Profile link; re-emitted by IpDetailPanel to its consumer.
const emit = defineEmits(['open-tool']);
// Single-select panel content: 'info' | 'history' | 'connectivity' | null.
// Kept separate from the open state so close animations retain their content
// until Collapsible finishes measuring and animating the closing height.
const activePanel = ref(null);
const isPanelOpen = ref(false);
// BGP DFZ-floor prefix for the IP — /24 v4, /48 v6. Used both as the query
// param sent to /api/asn-history (so CF dedupes across every IP in the same
// prefix) and as the local session-cache key.
const ipPrefix = computed(() => toBgpPrefix(props.data.ip));
// Numeric ASN (no 'AS' prefix), used as the connectivity cache key and the
// /api/asn-connectivity query param. Null when the geo source didn't return
// an ASN.
const asnNumeric = computed(() => {
const raw = props.data.asn;
if (!raw) return null;
const m = String(raw).match(/^AS?(\d+)$/i);
return m ? m[1] : null;
});
// Toggle the panel for `name`. Clicking the already-active button collapses
// the panel entirely; clicking the inactive one switches view and lazily
// triggers its data fetch. Session caches (asnInfos / asnHistoryInfos) make
// the switch instant on the second visit.
const togglePanel = async (name) => {
if (isPanelOpen.value && activePanel.value === name) {
isPanelOpen.value = false;
return;
}
activePanel.value = name;
isPanelOpen.value = true;
if (name === 'info') {
await getASNInfo(props.data.asn);
} else if (name === 'history' && ipPrefix.value) {
await getASNHistory(ipPrefix.value);
} else if (name === 'connectivity' && asnNumeric.value) {
await getASNConnectivity(asnNumeric.value);
}
};
const isPanelActive = (name) => isPanelOpen.value && activePanel.value === name;
// Collapsible's controlled mode can emit open-state updates from its internals;
// mirror those without clearing the selected content before the close animation.
const onPanelOpenChange = (open) => {
isPanelOpen.value = open;
};
// Fetch + caching live in the loaders; each cache is the owner's (IpInfos /
// QueryIP), handed down as a prop.
const getASNInfo = async (asn) => {
trackEvent('IPCheck', 'ASNInfoClick', 'Show ASN Info');
await loadAsnInfoInto(props.asnInfos, asn);
};
const getASNHistory = async (prefix) => {
trackEvent('IPCheck', 'ASNHistoryClick', 'Show ASN History');
await loadAsnHistoryInto(props.asnHistoryInfos, prefix);
};
const getASNConnectivity = async (asn) => {
trackEvent('IPCheck', 'ASNConnectivityClick', 'Show ASN Connectivity');
await loadAsnConnectivityInto(props.asnConnectivityInfos, asn);
};
</script>
+20 -440
View File
@@ -1,6 +1,6 @@
<template>
<!-- Multi-root template on purpose: Metadata / Advanced / ASN render as direct siblings of
the consumer's Hero IP inside a flex-col, so ASN's `mt-auto` pushes to the card bottom.
the consumer's Hero IP (IPCard: inside its body's flex-col), with no wrapper of their own.
Side-effect: `class` / `style` don't auto-fall through — don't write
`<IpDetailPanel class="..."/>`, the class goes nowhere. Style via the children's own classes. -->
@@ -92,216 +92,14 @@
</CollapsibleContent>
</Collapsible>
<!-- Advanced block (IPCheck.ing source only): locked CTA for signed-out, label-value grid for signed-in. -->
<div v-if="!collapsed" v-show="showAdvancedBlock" class="px-4 pb-3 border-t pt-3 space-y-2.5">
<!-- Advanced block (IPCheck.ing source only): gated CTA or the advanced grid + details. -->
<IpAdvancedBlock :data="data" :ip-geo-source="ipGeoSource" :configs="configs" :collapsed="collapsed"
@view-usage="emit('view-usage')" @open-tool="emit('open-tool')" />
<!-- Gated: single CTA banner + 4-field preview grid with *** values.
Signed-out shows the sign-in copy; over-quota shows the monthly
quota copy + sponsor link instead. -->
<template v-if="allAdvancedLocked || allAdvancedQuotaExceeded">
<span
class="w-full flex items-center justify-between gap-2 text-xs px-2.5 py-1.5 rounded-md bg-muted/60 text-muted-foreground transition-colors group">
<span class="flex items-center gap-1.5 min-w-0">
<component :is="allAdvancedQuotaExceeded ? Hourglass : Lock" class="size-3.5 shrink-0" />
<span class="truncate">
{{ allAdvancedQuotaExceeded ? t('ipInfos.advancedQuotaCta') : t('ipInfos.advancedUnlockCta') }}
</span>
</span>
<!-- Opens the Benefits & Usage dialog (usage tab for signed-in
users) — the sponsor path lives there, not a direct jump. -->
<button v-if="allAdvancedQuotaExceeded" type="button"
class="shrink-0 underline underline-offset-2 hover:text-foreground cursor-pointer"
@click="openUsageDialog">
{{ t('user.ViewUsage') }}
</button>
</span>
<dl class="grid grid-cols-2 md:grid-cols-4 gap-x-3 gap-y-3 text-sm items-start">
<div v-for="f in lockedFieldList" :key="f.key">
<dt class="flex items-center gap-1.5 text-xs text-muted-foreground mb-1">
<component :is="f.icon" class="size-3.5" />
<span>{{ f.label }}</span>
</dt>
<dd class="font-normal text-muted-foreground/60">***</dd>
</div>
</dl>
</template>
<!-- Signed-in: same vertical "label on top, value below" rhythm as the metadata grid,
plus the collapsible score-details panel under it (one child for space-y). -->
<div v-else>
<dl class="grid grid-cols-2 md:grid-cols-2 gap-x-3 gap-y-3 text-sm items-start">
<div v-if="showTypeBadge">
<dt class="flex items-center gap-1.5 text-xs text-muted-foreground mb-1">
<SignalHigh class="size-3.5" />
<span>{{ t('ipInfos.type') }}</span>
</dt>
<dd class="font-normal wrap-break-word">{{ data.type }}</dd>
</div>
<div v-if="showAnonymityBadge">
<dt class="flex items-center gap-1.5 text-xs text-muted-foreground mb-1">
<ShieldCheck class="size-3.5" />
<span>{{ t('ipInfos.anonymity.label') }}</span>
</dt>
<dd class="font-normal wrap-break-word">
{{ data.anonymity }}
</dd>
<!-- Anonymizing service, when the API named one. -->
<dd v-if="anonymityService" class="font-normal wrap-break-word">
<span class="text-muted-foreground font-normal text-xs">{{ anonymityService }}</span>
</dd>
</div>
<div v-if="showNativeBadge">
<dt class="flex items-center gap-1.5 text-xs text-muted-foreground mb-1">
<House class="size-3.5" />
<span>{{ t('ipInfos.advancedData.Nativeness') }}</span>
<JnTooltip :text="t('ipInfos.advancedData.nativenessTooltip')" side="top" class="hidden md:block">
<CircleQuestionMark class="size-3 cursor-help opacity-70" />
</JnTooltip>
</dt>
<dd class="font-normal flex items-center gap-1 wrap-break-word">
<component :is="data.isNativeIP === true ? Equal : EqualNot" class="size-3.5 shrink-0" />
<span>{{ data.isNativeIP === true ? t('ipInfos.advancedData.NativeIPYes') :
t('ipInfos.advancedData.NativeIPNo') }}</span>
</dd>
</div>
<div v-if="showQualityScore">
<dt class="flex items-center gap-1.5 text-xs text-muted-foreground mb-1">
<Gauge class="size-3.5" />
<span>{{ t('ipInfos.qualityScore') }}</span>
</dt>
<dd class="flex items-center gap-2">
<span v-if="data.qualityScore === 'unknown'" class="font-normal text-muted-foreground">
{{ t('ipInfos.qualityScoreUnknown') }}
</span>
<template v-else>
<Progress :model-value="Number(data.qualityScore) || 0" class="h-2 flex-1 min-w-12"
:indicator-class="qualityTone === 'ok-fast' ? 'bg-success' : qualityTone === 'ok-slow' ? 'bg-warning' : 'bg-destructive'" />
<span class="text-sm font-normal tabular-nums shrink-0">{{ data.qualityScore }}/100</span>
</template>
<!-- Score-details toggle -->
<JnTooltip v-if="hasScoreDetails" :text="t('ipInfos.scoreDetails.toggle')" side="top">
<Button variant="ghost" size="icon"
:class="['size-6 -my-1 shrink-0 cursor-pointer', isScoreDetailsOpen && 'bg-muted text-foreground hover:bg-muted']"
@click="toggleScoreDetails" :aria-expanded="isScoreDetailsOpen"
:aria-label="t('ipInfos.scoreDetails.toggle')">
<ChevronDown class="size-3.5 transition-transform duration-200"
:class="isScoreDetailsOpen && 'rotate-180'" />
</Button>
</JnTooltip>
</dd>
</div>
</dl>
<!-- Score details: plain-language explanation (needs the `dimensions`
block), then every attribute tag. Gated responses have neither. -->
<Collapsible v-if="hasScoreDetails" :open="isScoreDetailsOpen" @update:open="isScoreDetailsOpen = $event">
<CollapsibleContent>
<div class="pt-3">
<div class="rounded-md border bg-muted/40 p-3 space-y-3">
<div v-if="scoreExplanation.length">
<p class="text-xs text-muted-foreground mb-1.5">{{ t('ipInfos.scoreDetails.explainTitle') }}</p>
<!-- One i18n template per sentence; slots keep the IP under the info-mask blur. -->
<p class="text-xs leading-relaxed text-muted-foreground">
<template v-for="(sentence, i) in scoreExplanation" :key="sentence.key">
<I18nT :keypath="sentence.key" tag="span" scope="global">
<template #ip><span data-mask="ip" class="font-medium text-foreground">{{ sentence.params.ip }}</span></template>
<template #operator><span class="text-foreground">{{ sentence.params.operator }}</span></template>
<template #score><span class="font-medium text-foreground tabular-nums">{{ sentence.params.score }}</span></template>
<template #date>{{ sentence.params.date }}</template>
</I18nT>{{ i === scoreExplanation.length - 1 ? '' : sentenceGap }}
</template>
</p>
</div>
<!-- All attributes: label + check / cross / question mark. -->
<div v-if="scoreTagRows.length" :class="scoreExplanation.length && 'border-t pt-3'">
<p class="text-xs text-muted-foreground mb-1.5">{{ t('ipInfos.scoreDetails.tagsTitle') }}</p>
<dl class="grid grid-cols-2 gap-x-4 gap-y-1.5 text-xs">
<div v-for="tag in scoreTagRows" :key="tag.key"
class="flex items-center justify-between gap-2 min-w-0">
<dt class="text-muted-foreground min-w-0 wrap-break-word">
{{ t('ipInfos.scoreDetails.tags.' + tag.key) }}
</dt>
<!-- One neutral tone for every state: a tag is a fact, not a verdict. -->
<dd class="shrink-0 text-foreground">
<component :is="TAG_STATE_ICONS[tag.state]" class="size-3.5" aria-hidden="true" />
<span class="sr-only">{{ t('ipInfos.scoreDetails.tagState.' + tag.state) }}</span>
</dd>
</div>
</dl>
</div>
<!-- Point to a blocklist check of this IP. -->
<p v-if="blocklistHref"
class="border-t pt-3 flex flex-wrap items-center gap-x-1.5 gap-y-1 text-xs leading-relaxed text-muted-foreground">
<span>{{ t('ipInfos.scoreDetails.blocklistHint') }}</span>
<a :href="blocklistHref" @click="openBlocklist"
class="inline-flex items-center gap-0.5 font-medium text-foreground underline-offset-2 hover:underline">
{{ t('ipInfos.scoreDetails.blocklistLink') }}<ArrowRight class="size-3" />
</a>
</p>
</div>
</div>
</CollapsibleContent>
</Collapsible>
</div>
</div>
<!-- ASN block -->
<div v-if="data.asn && !collapsed" class="px-4 py-3 border-t">
<div class="flex items-center justify-between gap-2">
<div class="flex items-center gap-2 min-w-0 text-sm">
<Building2 class="size-4 text-muted-foreground shrink-0" />
<span class="text-xs text-muted-foreground shrink-0">{{ t('ipInfos.ASN') }}</span>
<span class="font-mono font-normal truncate">{{ data.asn }}</span>
</div>
<div class="shrink-0 flex items-center gap-1">
<!-- ASN Info -->
<JnTooltip v-if="data.asnlink && configs.cloudFlare" :text="t('Tooltips.ShowASNInfo')" side="top">
<Button variant="ghost" size="icon"
:class="['size-7 cursor-pointer', isPanelActive('info') && 'bg-muted text-foreground hover:bg-muted']"
@click="togglePanel('info')" :aria-expanded="isPanelActive('info')"
:aria-label="'Display AS Info of ' + data.asn">
<Info />
</Button>
</JnTooltip>
<!-- ASN History -->
<JnTooltip v-if="ipPrefix" :text="t('Tooltips.ShowASNHistory')" side="top">
<Button variant="ghost" size="icon"
:class="['size-7 cursor-pointer', isPanelActive('history') && 'bg-muted text-foreground hover:bg-muted']"
@click="togglePanel('history')" :aria-expanded="isPanelActive('history')"
:aria-label="'Display ASN History of ' + data.ip">
<FolderClock />
</Button>
</JnTooltip>
<!-- ASN Connectivity -->
<JnTooltip v-if="asnNumeric" :text="t('Tooltips.ShowASNConnectivity')" side="top">
<Button variant="ghost" size="icon"
:class="['size-7 cursor-pointer', isPanelActive('connectivity') && 'bg-muted text-foreground hover:bg-muted']"
@click="togglePanel('connectivity')" :aria-expanded="isPanelActive('connectivity')"
:aria-label="'Display ASN Connectivity of ' + data.asn">
<Network />
</Button>
</JnTooltip>
</div>
</div>
<Collapsible :open="isPanelOpen" @update:open="onPanelOpenChange">
<CollapsibleContent>
<div class="pt-3">
<ASNInfo v-if="activePanel === 'info'" :index="index" :isDarkMode="isDarkMode" :asn="data.asn"
:asnInfos="asnInfos" @open-profile="emit('open-tool')" />
<ASNHistory v-else-if="activePanel === 'history'" :prefix="ipPrefix"
:asnHistoryInfos="asnHistoryInfos" />
<ASNConnectivity v-else-if="activePanel === 'connectivity'" :asn="asnNumeric"
:asnConnectivityInfos="asnConnectivityInfos" />
</div>
</CollapsibleContent>
</Collapsible>
</div>
<!-- ASN block: ASN row + Info / History / Connectivity panels. -->
<IpAsnBlock :data="data" :index="index" :asn-infos="asnInfos" :asn-history-infos="asnHistoryInfos"
:asn-connectivity-infos="asnConnectivityInfos" :configs="configs" :is-dark-mode="isDarkMode"
:collapsed="collapsed" @open-tool="emit('open-tool')" />
<!-- Dialog-mode shells for the same two panels (IPCard). -->
<CountryTraffic v-if="countryTrafficMode === 'dialog'" :open="isTrafficDialogOpen"
@@ -313,68 +111,35 @@
</template>
<script setup>
// Shared display panel for IP info: Metadata grid + Advanced block + ASN row, plus the Map and
// Country-traffic panels (per-consumer 'dialog' / 'inline' / 'off' via mapMode / countryTrafficMode).
// Used by IPCard (homepage card grid) and QueryIP (manual IP lookup dialog).
// Hero IP is NOT part of this panel — consumers render their own hero row since affordances
// (copy button, etc.) differ.
import { ref, computed, watch } from 'vue';
import { useMainStore } from '@/store';
import { useI18n, I18nT } from 'vue-i18n';
import { useRouter } from 'vue-router';
// Shared display panel for IP info: Metadata grid + Advanced block (IpAdvancedBlock) + ASN row
// (IpAsnBlock), plus the Map and Country-traffic panels (per-consumer 'dialog' / 'inline' / 'off'
// via mapMode / countryTrafficMode). Used by IPCard (homepage card grid) and QueryIP (manual IP
// lookup dialog). Hero IP is NOT part of this panel — consumers render their own hero row since
// affordances (copy button, etc.) differ.
import { ref, computed } from 'vue';
import { useI18n } from 'vue-i18n';
import { trackEvent } from '@/utils/analytics';
import { fetchWithTimeout } from '@/utils/fetch-with-timeout.js';
import { loadAsnInfoInto } from '@/composables/use-asn-info.js';
import { loadAsnConnectivityInto } from '@/utils/ip/asn-connectivity.js';
import { toBgpPrefix } from '@/utils/ip/bgp-prefix.js';
import { getZoneUtcOffset, getZoneLocalTime, formatIsoDate } from '@/utils/time-utils.js';
import { buildScoreExplanation, listScoreTags } from '@/utils/ip/ip-score-details.js';
import { isToolAvailable } from '@/utils/tool-availability.js';
import { TOOL_BY_SLUG } from '@/data/tools.js';
import { isPlainClick } from '@/utils/nav-target.js';
import ASNInfo from './ASNInfo.vue';
import ASNHistory from './ASNHistory.vue';
import { getZoneUtcOffset, getZoneLocalTime } from '@/utils/time-utils.js';
import CountryTraffic from './CountryTraffic.vue';
import CountryTrafficPanel from './CountryTrafficPanel.vue';
import LocationMap from './LocationMap.vue';
import LocationMapPanel from './LocationMapPanel.vue';
// ASNConnectivity is heavy (dagre + SVG render); async-import so it
// only enters the bundle when a user opens the Connectivity panel.
import { defineAsyncComponent } from 'vue';
const ASNConnectivity = defineAsyncComponent(() => import('./ASNConnectivity.vue'));
import IpAdvancedBlock from './IpAdvancedBlock.vue';
import IpAsnBlock from './IpAsnBlock.vue';
import { JnTooltip } from '@/components/ui/tooltip';
import { Collapsible, CollapsibleContent } from '@/components/ui/collapsible';
import { Progress } from '@/components/ui/progress';
import { Button } from '@/components/ui/button';
import { Icon } from '@iconify/vue';
import {
Activity,
ArrowRight,
Building2,
Check,
ChevronDown,
CornerUpRight,
Equal,
EqualNot,
EthernetPort,
Gauge,
Hourglass,
House,
Info,
Network,
Lock,
Map,
MapPin,
ShieldCheck,
SignalHigh,
X,
CircleQuestionMark,
Clock,
FolderClock,
} from '@lucide/vue';
const { t, locale } = useI18n();
const store = useMainStore();
const props = defineProps({
data: { type: Object, required: true },
@@ -399,19 +164,9 @@ const props = defineProps({
});
// A host dialog listens to close itself first: before the Benefits & Usage
// dialog stacks on it (`view-usage`) or a tool link (ASN Profile, Blocklist Check) changes page (`open-tool`).
// dialog stacks on it (`view-usage`) or a tool link (ASN Profile, Blocklist Check, Persona Check) changes page (`open-tool`).
const emit = defineEmits(['view-usage', 'open-tool']);
const openUsageDialog = () => {
emit('view-usage');
store.setTriggerUserBenefits(true);
};
// Single-select panel content for the ASN block: 'info' | 'history' | null.
// Kept separate from the open state so close animations retain their content
// until Collapsible finishes measuring and animating the closing height.
const activePanel = ref(null);
const isPanelOpen = ref(false);
const isMapDialogOpen = ref(false);
const isTrafficDialogOpen = ref(false);
@@ -425,106 +180,11 @@ const refreshZoneLocalTime = () => {
zoneLocalTime.value = getZoneLocalTime(props.data.timezone, locale.value);
};
// Advanced block only surfaces for the IPCheck.ing source (ipGeoSource === 0).
const showAdvancedBlock = computed(() => props.ipGeoSource === 0 && Boolean(props.data));
// Map button is gated on the deployment having a Google Maps key (configs.map) + location data.
const canShowMap = computed(() =>
props.mapMode !== 'off' && Boolean(props.configs.map) && Boolean(props.data.country_name)
);
// Backend gating sentinels for the advanced fields (see transform-ip-data.js).
const isGatedValue = (value) => value === 'sign_in_required' || value === 'quota_exceeded';
// If every advanced field is masked → show the single CTA + preview grid instead
// of rendering four individual gated rows. The two sentinels pick different copy.
const allAdvancedLocked = computed(() =>
props.data.type === 'sign_in_required' &&
props.data.anonymity === 'sign_in_required' &&
props.data.isNativeIP === 'sign_in_required' &&
props.data.qualityScore === 'sign_in_required'
);
const allAdvancedQuotaExceeded = computed(() =>
props.data.type === 'quota_exceeded' &&
props.data.anonymity === 'quota_exceeded' &&
props.data.isNativeIP === 'quota_exceeded' &&
props.data.qualityScore === 'quota_exceeded'
);
const showTypeBadge = computed(() =>
props.data.type && !isGatedValue(props.data.type)
&& props.data.type !== t('ipInfos.advancedData.type.unknownType')
);
const showAnonymityBadge = computed(() =>
Boolean(props.data.anonymity) && !isGatedValue(props.data.anonymity)
);
// "Provider · protocol"; both are null unless the API named a service.
const anonymityService = computed(() =>
[props.data.anonymityProvider, props.data.anonymityProtocol].filter(Boolean).join(' · ')
);
const showNativeBadge = computed(() =>
props.data.isNativeIP !== undefined && !isGatedValue(props.data.isNativeIP)
);
const showQualityScore = computed(() =>
props.data.qualityScore !== undefined && !isGatedValue(props.data.qualityScore)
);
// Locked field preview: the 4 advanced fields shown as "label + ***" for signed-out users.
const lockedFieldList = computed(() => [
{ key: 'type', icon: SignalHigh, label: t('ipInfos.type') },
{ key: 'anonymity', icon: ShieldCheck, label: t('ipInfos.anonymity.label') },
{ key: 'native', icon: House, label: t('ipInfos.advancedData.Nativeness') },
{ key: 'quality', icon: Gauge, label: t('ipInfos.qualityScore') },
]);
// Quality Score color tiers — reuse the same 4-tone semantic as use-status-tone.
const qualityTone = computed(() => {
const n = Number(props.data.qualityScore);
if (isNaN(n)) return 'wait';
if (n >= 80) return 'ok-fast';
if (n >= 50) return 'ok-slow';
return 'fail';
});
// Score-details panel (IPCheck.ing source): explanation sentences (need
// `dimensions`) and attribute rows. Both are empty for gated data, and the
// toggle only shows when either has content.
const scoreExplanation = computed(() => buildScoreExplanation(props.data, {
t,
formatDate: (day) => formatIsoDate(day, locale.value),
}));
const scoreTagRows = computed(() => listScoreTags(props.data.scoreTags));
// Row state → icon; the question mark marks a suspected residential proxy.
const TAG_STATE_ICONS = { yes: Check, no: X, suspected: CircleQuestionMark };
const hasScoreDetails = computed(() =>
showAdvancedBlock.value && (scoreExplanation.value.length > 0 || scoreTagRows.value.length > 0)
);
// CJK sentences run together; others take a space.
const sentenceGap = computed(() => (/^(zh|ja|ko)/.test(locale.value) ? '' : ' '));
const isScoreDetailsOpen = ref(false);
const toggleScoreDetails = () => {
if (!isScoreDetailsOpen.value) trackEvent('IPCheck', 'ScoreDetailsClick', 'Show Score Details');
isScoreDetailsOpen.value = !isScoreDetailsOpen.value;
};
// A different IP starts collapsed.
watch(() => props.data.ip, () => { isScoreDetailsOpen.value = false; });
// Blocklist Check entry: hidden when the tool is gated off; `q` only prefills.
const router = useRouter();
const blocklistHref = computed(() => (
isToolAvailable(TOOL_BY_SLUG.get('blocklist'), props.configs) && props.data.ip
? `/tools/blocklist?q=${encodeURIComponent(props.data.ip)}`
: ''
));
const openBlocklist = (e) => {
if (!isPlainClick(e)) return;
e.preventDefault();
trackEvent('IPCheck', 'BlocklistCTAClick', 'Open Blocklist Check');
emit('open-tool');
router.push({ path: '/tools/blocklist', query: { q: props.data.ip } });
};
// Consumer opt-in + a Cloudflare key on the deployment + a country to query.
const canShowCountryTraffic = computed(() =>
props.countryTrafficMode !== 'off' && !props.collapsed
@@ -532,7 +192,7 @@ const canShowCountryTraffic = computed(() =>
);
// Single-select inline expansion under the metadata grid ('inline' mode) —
// same open/content split as the ASN block below, so close animations keep
// same open/content split as IpAsnBlock's panels, so close animations keep
// their content.
const activeMetaPanel = ref(null);
const isMetaPanelOpen = ref(false);
@@ -560,84 +220,4 @@ const onTrafficClick = () => {
if (props.countryTrafficMode === 'inline') toggleMetaPanel('traffic');
else isTrafficDialogOpen.value = true;
};
// BGP DFZ-floor prefix for the IP — /24 v4, /48 v6. Used both as the query
// param sent to /api/asn-history (so CF dedupes across every IP in the same
// prefix) and as the local session-cache key.
const ipPrefix = computed(() => toBgpPrefix(props.data.ip));
// Numeric ASN (no 'AS' prefix), used as the connectivity cache key and the
// /api/asn-connectivity query param. Null when the geo source didn't return
// an ASN.
const asnNumeric = computed(() => {
const raw = props.data.asn;
if (!raw) return null;
const m = String(raw).match(/^AS?(\d+)$/i);
return m ? m[1] : null;
});
// Toggle the panel for `name`. Clicking the already-active button collapses
// the panel entirely; clicking the inactive one switches view and lazily
// triggers its data fetch. Session caches (asnInfos / asnHistoryInfos) make
// the switch instant on the second visit.
const togglePanel = async (name) => {
if (isPanelOpen.value && activePanel.value === name) {
isPanelOpen.value = false;
return;
}
activePanel.value = name;
isPanelOpen.value = true;
if (name === 'info') {
await getASNInfo(props.data.asn);
} else if (name === 'history' && ipPrefix.value) {
await getASNHistory(ipPrefix.value);
} else if (name === 'connectivity' && asnNumeric.value) {
await getASNConnectivity(asnNumeric.value);
}
};
const isPanelActive = (name) => isPanelOpen.value && activePanel.value === name;
// Collapsible's controlled mode can emit open-state updates from its internals;
// mirror those without clearing the selected content before the close animation.
const onPanelOpenChange = (open) => {
isPanelOpen.value = open;
};
// Fetch + versioning live in composables/use-asn-info.js; the cache is the
// owner's (IpInfos / QueryIP), handed down as the asnInfos prop.
const getASNInfo = async (asn) => {
trackEvent('IPCheck', 'ASNInfoClick', 'Show ASN Info');
await loadAsnInfoInto(props.asnInfos, asn);
};
const getASNHistory = async (prefix) => {
trackEvent('IPCheck', 'ASNHistoryClick', 'Show ASN History');
try {
if (props.asnHistoryInfos[prefix]) return;
// RIPEstat routing-history is a slow analytical endpoint (10–20s on
// cold prefixes). Backend caps it at 25s; browser waits 26s so the
// server's 504 surfaces instead of the browser aborting first.
const response = await fetchWithTimeout(
`/api/asn-history?prefix=${encodeURIComponent(prefix)}`,
{ timeoutMs: 26000 }
);
if (!response.ok) {
props.asnHistoryInfos[prefix] = { error: true };
return;
}
const data = await response.json();
props.asnHistoryInfos[prefix] = data;
} catch (error) {
console.error('Error fetching ASN history:', error);
props.asnHistoryInfos[prefix] = { error: true };
}
};
// Fetch + versioning live in utils/ip/asn-connectivity.js; the cache is the
// owner's, handed down as asnConnectivityInfos.
const getASNConnectivity = async (asn) => {
trackEvent('IPCheck', 'ASNConnectivityClick', 'Show ASN Connectivity');
await loadAsnConnectivityInto(props.asnConnectivityInfos, asn);
};
</script>
@@ -0,0 +1,41 @@
<!-- Scenario friction details: how it was estimated, then one row per scenario in the card
dots' order, smoothest first (name + tone dot + verdict). Root blocks sit directly in the
IpAdvancedBlock details frame, which spaces them like the score details and draws the border
and the closing Persona Check line. -->
<template>
<div>
<p class="text-xs text-muted-foreground mb-1.5">{{ t('ipInfos.scenarioFriction.introTitle') }}</p>
<p class="text-xs leading-relaxed text-muted-foreground">{{ t('ipInfos.scenarioFriction.intro') }}</p>
</div>
<p class="text-xs text-muted-foreground mb-1.5">{{ t('ipInfos.scenarioFriction.listTitle') }}</p>
<div class="border-t pt-3">
<dl class="grid grid-cols-1 gap-y-1.5 text-xs">
<div v-for="s in sorted" :key="s.id" class="flex items-center justify-between gap-2 min-w-0">
<dt class="text-muted-foreground min-w-0 wrap-break-word">
{{ t(scenarioNameKey(s, countryName), { country: countryName }) }}
</dt>
<dd class="shrink-0 flex items-center gap-1.5 text-foreground">
<span class="size-1.5 rounded-full" :class="dotClass(scenarioTone(s))" />
{{ t(verdictKey(s)) }}
</dd>
</div>
</dl>
</div>
</template>
<script setup>
import { computed } from 'vue';
import { useI18n } from 'vue-i18n';
import { useStatusTone } from '@/composables/use-status-tone.js';
import { scenarioNameKey, scenarioTone, sortByLevel, verdictKey } from '@/utils/features/scenario-friction.js';
const props = defineProps({
scenarios: { type: Array, required: true },
countryName: { type: String, default: '' },
});
const { t } = useI18n();
const { dotClass } = useStatusTone();
const sorted = computed(() => sortByLevel(props.scenarios));
</script>
@@ -0,0 +1,56 @@
<!-- Quality-score details: the plain-language explanation (needs the `dimensions` block), then
every attribute tag. Root blocks sit directly in the IpAdvancedBlock details frame, which
spaces them like the friction details and draws the closing Blocklist Check line. -->
<template>
<div v-if="explanation.length">
<p class="text-xs text-muted-foreground mb-1.5">{{ t('ipInfos.scoreDetails.explainTitle') }}</p>
<!-- One i18n template per sentence; slots keep the IP under the info-mask blur. -->
<p class="text-xs leading-relaxed text-muted-foreground">
<template v-for="(sentence, i) in explanation" :key="sentence.key">
<I18nT :keypath="sentence.key" tag="span" scope="global">
<template #ip><span data-mask="ip" class="font-medium text-foreground">{{ sentence.params.ip }}</span></template>
<template #operator><span class="text-foreground">{{ sentence.params.operator }}</span></template>
<template #score><span class="font-medium text-foreground tabular-nums">{{ sentence.params.score }}</span></template>
<template #date>{{ sentence.params.date }}</template>
</I18nT>{{ i === explanation.length - 1 ? '' : sentenceGap }}
</template>
</p>
</div>
<!-- All attributes: label + check / cross / question mark. -->
<div v-if="tags.length" :class="explanation.length && 'border-t pt-3'">
<p class="text-xs text-muted-foreground mb-1.5">{{ t('ipInfos.scoreDetails.tagsTitle') }}</p>
<dl class="grid grid-cols-2 gap-x-4 gap-y-1.5 text-xs">
<div v-for="tag in tags" :key="tag.key"
class="flex items-center justify-between gap-2 min-w-0">
<dt class="text-muted-foreground min-w-0 wrap-break-word">
{{ t('ipInfos.scoreDetails.tags.' + tag.key) }}
</dt>
<!-- One neutral tone for every state: a tag is a fact, not a verdict. -->
<dd class="shrink-0 text-foreground">
<component :is="TAG_STATE_ICONS[tag.state]" class="size-3.5" aria-hidden="true" />
<span class="sr-only">{{ t('ipInfos.scoreDetails.tagState.' + tag.state) }}</span>
</dd>
</div>
</dl>
</div>
</template>
<script setup>
import { computed } from 'vue';
import { useI18n, I18nT } from 'vue-i18n';
import { Check, CircleQuestionMark, X } from '@lucide/vue';
defineProps({
// buildScoreExplanation() sentences and listScoreTags() rows (utils/ip/ip-score-details.js).
explanation: { type: Array, required: true },
tags: { type: Array, required: true },
});
const { t, locale } = useI18n();
// Row state → icon; the question mark marks a suspected residential proxy.
const TAG_STATE_ICONS = { yes: Check, no: X, suspected: CircleQuestionMark };
// CJK sentences run together; others take a space.
const sentenceGap = computed(() => (/^(zh|ja|ko)/.test(locale.value) ? '' : ' '));
</script>
@@ -59,6 +59,16 @@
</DropdownMenuContent>
</DropdownMenu>
</li>
<!-- Closing invite to contribute a country list; scrolls with the grid. -->
<li class="md:col-span-2 px-1 py-1 text-xs text-muted-foreground leading-relaxed">
<i18n-t keypath="connectivity.importDialog.MissingCountry" tag="p" scope="global" class="m-0">
<template #link>
<a href="https://github.com/jason5ng32/MyIP/issues/452" target="_blank" rel="noopener noreferrer"
class="underline underline-offset-4 decoration-current/40 hover:text-foreground hover:decoration-current">
{{ t('connectivity.importDialog.MissingCountryLink') }}</a>
</template>
</i18n-t>
</li>
</ul>
<!-- Success stays quiet; only cap / list-limit errors show here. -->
<div class="flex items-center justify-end min-h-4 text-xs">
+1 -1
View File
@@ -35,7 +35,7 @@
<!-- Query result: Hero IP (no Copy / Map) + shared IpDetailPanel -->
<div v-if="modalQueryResult" class="rounded-lg border bg-card overflow-hidden">
<div class="px-4 py-3 flex items-start gap-2 min-w-0 border-b mb-4">
<FitText :text="inputIP" :tiers="HERO_TIERS" :title="inputIP" :max-lines="2"
<FitText :text="modalQueryResult.ip" :tiers="HERO_TIERS" :title="modalQueryResult.ip" :max-lines="2"
class="font-mono font-semibold min-w-0">
<template #prefix>
<Monitor class="inline size-5 align-middle text-muted-foreground mr-2 mb-1" />
+1 -1
View File
@@ -1,6 +1,6 @@
// ASN summary from Cloudflare Radar (`/api/cfradar?view=asn`) with a
// per-owner session cache keyed 'AS<n>'. Owners (IpInfos, QueryIP) each
// create their own cache with useAsnInfo(); IpDetailPanel fills whichever
// create their own cache with useAsnInfo(); IpAsnBlock fills whichever
// cache it is handed through loadAsnInfoInto().
//
// Relative imports keep this file importable from the Node test runner.
+5 -2
View File
@@ -1,17 +1,19 @@
// Unified "state → visual" mapping: 4 tone levels share the same color scheme
// Unified "state → visual" mapping: 5 tone levels share the same color scheme
//
// wait waiting/not executed sky
// ok-fast success + fast green
// ok-mild between fast and slow light amber (half-strength --warning)
// ok-slow success + slow amber
// fail failure/timeout red
//
// Each module maps its business status (e.g. test.status === 'Available' && test.time < 200)
// to these 4 tone levels, then calls dotClass(tone) / textClass(tone) to get the corresponding
// to these tone levels, then calls dotClass(tone) / textClass(tone) to get the corresponding
// Tailwind class. This way Connectivity / WebRTC / DnsLeak / future similar modules
// all use the same visual language, and the color scheme is applied throughout the site.
const dotColorMap = {
'wait': 'bg-info',
'ok-fast': 'bg-success',
'ok-mild': 'bg-warning/50',
'ok-slow': 'bg-warning',
'fail': 'bg-destructive',
};
@@ -19,6 +21,7 @@ const dotColorMap = {
const textColorMap = {
'wait': 'text-muted-foreground',
'ok-fast': 'text-success',
'ok-mild': 'text-warning/75',
'ok-slow': 'text-warning',
'fail': 'text-destructive',
};
+1
View File
@@ -58,6 +58,7 @@ export const ADBLOCK_PROBE_GROUPS = [
{ id: 'plausible', name: 'Plausible', targets: ['plausible.io'] },
{ id: 'cloudflare-analytics', name: 'Cloudflare Web Analytics', targets: ['cloudflareinsights.com'] },
{ id: 'yandex-metrica', name: 'Yandex Metrica', targets: ['mc.yandex.ru', 'mc.yandex.com'] },
{ id: 'truehits', name: 'Truehits', targets: ['lvs.truehits.in.th', 'lvs2.truehits.in.th'] },
{ id: 'comscore', name: 'Comscore', targets: ['sb.scorecardresearch.com', 'b.scorecardresearch.com'] },
{ id: 'adjust', name: 'Adjust', targets: ['app.adjust.com'] },
{ id: 'appsflyer', name: 'AppsFlyer', targets: ['t.appsflyer.com', 'events.appsflyer.com'] },
+28
View File
@@ -2313,5 +2313,33 @@
}
}
]
},
{
"version": "v8.1.0",
"date": "Beta",
"content": [
{
"type": "add",
"change": {
"en": "IP cards add Scenario friction: an estimate of the extra checks or restrictions this IP may meet across 10 scenarios such as sign-up, payments and streaming",
"zh": "IP 卡片新增「场景摩擦」:估算这个 IP 在注册、支付、流媒体等 10 类场景中可能遇到的额外验证或限制",
"zh-TW": "IP 卡片新增「場景摩擦」:估算這個 IP 在註冊、支付、串流媒體等 10 類場景中可能遇到的額外驗證或限制",
"fr": "Les cartes IP ajoutent la Friction par scénario : une estimation des vérifications ou restrictions supplémentaires que cette IP peut rencontrer dans 10 scénarios, comme l'inscription, les paiements et le streaming",
"ru": "В карточках IP появились «Сложности по сценариям»: оценка дополнительных проверок или ограничений, с которыми этот IP может столкнуться в 10 сценариях, например при регистрации, оплате и стриминге",
"pt-BR": "Os cartões de IP ganham o Atrito por cenário: uma estimativa das verificações extras ou restrições que este IP pode encontrar em 10 cenários, como cadastro, pagamentos e streaming"
}
},
{
"type": "fix",
"change": {
"en": "Fixed some issues",
"zh": "修复了一些问题",
"zh-TW": "修正了一些問題",
"fr": "Correction de divers problèmes",
"ru": "Исправлены некоторые проблемы",
"pt-BR": "Corrigidos alguns problemas"
}
}
]
}
]
@@ -157,6 +157,12 @@ export const IMPORT_LISTS = [
{ id: 'nykaa', name: 'Nykaa', url: 'https://www.nykaa.com/favicon.ico' },
{ id: 'justdial', name: 'Justdial', url: 'https://www.justdial.com/favicon.ico' },
{ id: 'groww', name: 'Groww', url: 'https://groww.in/favicon.ico' },
{ id: 'airtel', name: 'Airtel', url: 'https://www.airtel.in/favicon.ico' },
{ id: 'naukri', name: 'Naukri', url: 'https://www.naukri.com/favicon.ico' },
{ id: 'indigo', name: 'IndiGo', url: 'https://www.goindigo.in/favicon.ico' },
{ id: 'redbus', name: 'RedBus', url: 'https://www.redbus.in/favicon.ico' },
{ id: 'hotstar', name: 'JioHotstar', url: 'https://www.hotstar.com/favicon.ico' },
{ id: 'physicswallah', name: 'Physics Wallah', url: 'https://www.pw.live/favicon.ico' },
],
},
{
@@ -257,6 +263,27 @@ export const IMPORT_LISTS = [
{ id: 'pea', name: 'PEA', url: 'https://www.pea.co.th/favicon.ico' },
],
},
{
id: 'mexico',
emoji: '🇲🇽',
members: [
{ id: 'google-mx', name: 'Google México', url: 'https://www.google.com.mx/favicon.ico' },
{ id: 'amazon-mx', name: 'Amazon México', url: 'https://www.amazon.com.mx/favicon.ico' },
{ id: 'mercadolibre-mx', name: 'Mercado Libre', url: 'https://www.mercadolibre.com.mx/favicon.ico' },
{ id: 'walmart-mx', name: 'Walmart México', url: 'https://www.walmart.com.mx/favicon.ico' },
{ id: 'gob-mx', name: 'Gob.mx', url: 'https://framework-gb.cdn.gob.mx/gm/v3/assets/images/favicon.ico', iconDomain: 'www.gob.mx', siteUrl: 'https://www.gob.mx' },
{ id: 'imss', name: 'IMSS', url: 'https://www.imss.gob.mx/favicon.ico' },
{ id: 'telcel', name: 'Telcel', url: 'https://www.telcel.com/favicon.ico' },
{ id: 'telmex', name: 'Telmex', url: 'https://telmex.com/favicon.ico' },
{ id: 'totalplay', name: 'Totalplay', url: 'https://www.totalplay.com.mx/favicon.ico' },
{ id: 'bbva-mx', name: 'BBVA México', url: 'https://www.bbva.mx/favicon.ico' },
{ id: 'banorte', name: 'Banorte', url: 'https://www.banorte.com/favicon.ico' },
{ id: 'el-universal', name: 'El Universal', url: 'https://www.eluniversal.com.mx/favicon.ico' },
{ id: 'milenio', name: 'Milenio', url: 'https://www.milenio.com/favicon.ico' },
{ id: 'liverpool-mx', name: 'Liverpool', url: 'https://www.liverpool.com.mx/favicon.ico' },
{ id: 'unam', name: 'UNAM', url: 'https://www.unam.mx/favicon.ico' },
],
},
{
id: 'ai',
emoji: '🤖',
@@ -506,6 +533,7 @@ export const IMPORT_LISTS = [
{ id: 'shopify', name: 'Shopify', url: 'https://www.shopify.com/favicon.ico' },
{ id: 'walmart', name: 'Walmart', url: 'https://www.walmart.com/favicon.ico' },
{ id: 'shopee', name: 'Shopee', url: 'https://shopee.com/favicon.ico' },
{ id: 'lazada', name: 'Lazada', url: 'https://www.lazada.sg/favicon.ico' },
{ id: 'mercadolibre', name: 'Mercado Libre', url: 'https://www.mercadolibre.com/favicon.ico' },
{ id: 'rakuten', name: 'Rakuten', url: 'https://www.rakuten.co.jp/favicon.ico' },
],
+49 -2
View File
@@ -1751,6 +1751,48 @@
"isNative": "ASN-Geo match"
}
},
"abuseLevel": {
"label": "Abuse activity",
"none": "Not detected",
"low": "Occasional",
"medium": "Moderate",
"high": "Frequent"
},
"scenarioFriction": {
"label": "Scenario friction",
"toggle": "Friction details",
"breakdown": "{smooth} smooth · {checks} extra checks · {restricted} may be restricted",
"introTitle": "Scenario friction explained",
"intro": "You may use this IP for all kinds of browsing and work, and the friction between this IP and platforms can differ from one scenario to the next. We combine this IP's network type, anonymity, abuse history and location to estimate how platforms are likely to treat it.",
"listTitle": "By scenario",
"scenarios": {
"signup": "Account sign-up & login",
"payments": "Shopping & payments",
"finance": "Banking & finance",
"streaming": "Streaming & regional content",
"availability": "International service availability",
"browsing": "Everyday browsing",
"posting": "Posting & comments",
"localSocial": "Social media as a local user",
"localSocialIn": "Social media as a local in {country}",
"automation": "Automation & scraping",
"email": "Self-hosted email sending"
},
"verdict": {
"default": {
"low": "Smooth",
"medium": "Extra checks",
"high": "May be restricted"
},
"availability": {
"low": "Available",
"medium": "Limited",
"high": "May be blocked"
}
},
"personaHint": "Besides the IP, platforms weigh several other factors when deciding which limits to apply. Want to know whether your overall profile matches what you expect?",
"personaLink": "Run Persona Check"
},
"countryTraffic": {
"subtitle": "Typical weekly online activity in this country/region — view human-generated traffic only, or all traffic (including bot/automated traffic).",
"human": "Human Only",
@@ -1837,7 +1879,9 @@
"Import": "Import",
"NotEnoughCapacity": "Not enough capacity — this list needs {need} slots, only {free} left.",
"Destination": "Add to",
"ImportAsNew": "Import as a new list"
"ImportAsNew": "Import as a new list",
"MissingCountry": "Don't see your country? {link}",
"MissingCountryLink": "Add a list for it"
},
"lists": {
"Tab": "Lists",
@@ -1868,6 +1912,7 @@
"albania": "Albania Essentials",
"kosovo": "Kosovo Essentials",
"thailand": "Thailand Essentials",
"mexico": "Mexico Essentials",
"ai": "AI Services",
"social": "Social & Messaging",
"productivity": "Work & Productivity",
@@ -2088,7 +2133,9 @@
"DeveloperDocs": "Developer Docs",
"SelfHosting": "Self-hosting Guide",
"ReportIssue": "Report an Issue",
"License": "MIT License",
"FeatureRequest": "Request a Feature",
"License": "AGPL-3.0 License",
"Contribute": "Contribute",
"Clients": "Clients",
"Raycast": "Raycast Extension",
"Lite": "Lite Edition"
+49 -2
View File
@@ -1751,6 +1751,48 @@
"isNative": "Correspondance ASN-Geo"
}
},
"abuseLevel": {
"label": "Activité abusive",
"none": "Non détectée",
"low": "Occasionnelle",
"medium": "Modérée",
"high": "Fréquente"
},
"scenarioFriction": {
"label": "Friction par scénario",
"toggle": "Détails de la friction",
"breakdown": "Fluide : {smooth} · Vérifications en plus : {checks} · Peut être restreint : {restricted}",
"introTitle": "Friction par scénario, en détail",
"intro": "Vous utilisez peut-être cette IP pour toutes sortes de navigation et de travail ; selon le scénario, la friction entre cette IP et les plateformes peut varier. Nous combinons le type de réseau, l'anonymisation, l'historique d'abus et la localisation de cette IP pour estimer comment les plateformes sont susceptibles de la traiter.",
"listTitle": "Par scénario",
"scenarios": {
"signup": "Inscription et connexion",
"payments": "Achats et paiements",
"finance": "Banque et finance",
"streaming": "Streaming et contenus régionaux",
"availability": "Disponibilité des services internationaux",
"browsing": "Navigation courante",
"posting": "Publications et commentaires",
"localSocial": "Réseaux sociaux en tant qu'utilisateur local",
"localSocialIn": "Réseaux sociaux en tant qu'utilisateur local ({country})",
"automation": "Automatisation et scraping",
"email": "Envoi d'e-mails auto-hébergé"
},
"verdict": {
"default": {
"low": "Fluide",
"medium": "Vérifications en plus",
"high": "Peut être restreint"
},
"availability": {
"low": "Disponible",
"medium": "Limité",
"high": "Peut être bloqué"
}
},
"personaHint": "Au-delà de l'IP, les plateformes tiennent compte de plusieurs facteurs pour décider des restrictions à appliquer. Vous voulez savoir si votre profil global correspond à ce que vous attendez ?",
"personaLink": "Lancer la vérification de persona"
},
"countryTraffic": {
"subtitle": "Répartition hebdomadaire de l'activité en ligne de ce pays/région — affichez uniquement le trafic généré par des humains, ou tout le trafic (bots et trafic automatisé inclus).",
"human": "Humains uniquement",
@@ -1837,7 +1879,9 @@
"Import": "Importer",
"NotEnoughCapacity": "Capacité insuffisante — cette liste nécessite {need} emplacements, seulement {free} restants.",
"Destination": "Ajouter à",
"ImportAsNew": "Importer comme nouvelle liste"
"ImportAsNew": "Importer comme nouvelle liste",
"MissingCountry": "Votre pays n'y figure pas ? {link}",
"MissingCountryLink": "Ajoutez une liste pour lui"
},
"lists": {
"Tab": "Listes",
@@ -1868,6 +1912,7 @@
"albania": "Essentiels Albanie",
"kosovo": "Essentiels Kosovo",
"thailand": "Essentiels Thaïlande",
"mexico": "Essentiels Mexique",
"ai": "Services IA",
"social": "Réseaux sociaux",
"productivity": "Travail et productivité",
@@ -2088,7 +2133,9 @@
"DeveloperDocs": "Documentation développeur",
"SelfHosting": "Guide d'auto-hébergement",
"ReportIssue": "Signaler un problème",
"License": "Licence MIT",
"FeatureRequest": "Suggérer une fonctionnalité",
"License": "Licence AGPL-3.0",
"Contribute": "Contribuer",
"Clients": "Clients",
"Raycast": "Extension Raycast",
"Lite": "Édition Lite"
+49 -2
View File
@@ -1751,6 +1751,48 @@
"isNative": "Alinhamento ASN-Geo"
}
},
"abuseLevel": {
"label": "Atividade abusiva",
"none": "Não detectada",
"low": "Ocasional",
"medium": "Moderada",
"high": "Frequente"
},
"scenarioFriction": {
"label": "Atrito por cenário",
"toggle": "Detalhes do atrito",
"breakdown": "Sem problemas: {smooth} · Verificações extras: {checks} · Pode ser restrito: {restricted}",
"introTitle": "Atrito por cenário, em detalhe",
"intro": "Você pode usar este IP para todo tipo de navegação ou trabalho, e o atrito entre ele e as plataformas pode variar de um cenário para outro. Combinamos o tipo de rede, o anonimato, o histórico de abuso e a localização deste IP para estimar como as plataformas devem tratá-lo.",
"listTitle": "Por cenário",
"scenarios": {
"signup": "Cadastro e login",
"payments": "Compras e pagamentos",
"finance": "Bancos e finanças",
"streaming": "Streaming e conteúdo regional",
"availability": "Disponibilidade de serviços internacionais",
"browsing": "Navegação no dia a dia",
"posting": "Publicações e comentários",
"localSocial": "Redes sociais como usuário local",
"localSocialIn": "Redes sociais como usuário local ({country})",
"automation": "Automação e scraping",
"email": "Envio de e-mail auto-hospedado"
},
"verdict": {
"default": {
"low": "Sem problemas",
"medium": "Verificações extras",
"high": "Pode ser restrito"
},
"availability": {
"low": "Disponível",
"medium": "Limitado",
"high": "Pode ser bloqueado"
}
},
"personaHint": "Além do IP, as plataformas consideram vários outros fatores para decidir quais limites aplicar. Quer saber se o seu perfil geral corresponde ao que você espera?",
"personaLink": "Fazer a verificação de persona"
},
"countryTraffic": {
"subtitle": "Distribuição semanal da atividade online deste país/região — veja apenas o tráfego gerado por humanos ou todo o tráfego (incluindo bots/tráfego automatizado).",
"human": "Somente humanos",
@@ -1837,7 +1879,9 @@
"Import": "Importar",
"NotEnoughCapacity": "Capacidade insuficiente — esta lista precisa de {need} vagas, mas só restam {free}.",
"Destination": "Adicionar a",
"ImportAsNew": "Importar como nova lista"
"ImportAsNew": "Importar como nova lista",
"MissingCountry": "Não encontrou seu país? {link}",
"MissingCountryLink": "Adicione uma lista para ele"
},
"lists": {
"Tab": "Listas",
@@ -1868,6 +1912,7 @@
"albania": "Essenciais da Albânia",
"kosovo": "Essenciais do Kosovo",
"thailand": "Essenciais da Tailândia",
"mexico": "Essenciais do México",
"ai": "Serviços de IA",
"social": "Redes sociais e mensagens",
"productivity": "Trabalho e produtividade",
@@ -2088,7 +2133,9 @@
"DeveloperDocs": "Documentação para desenvolvedores",
"SelfHosting": "Guia de auto-hospedagem",
"ReportIssue": "Relatar um problema",
"License": "Licença MIT",
"FeatureRequest": "Sugerir um recurso",
"License": "Licença AGPL-3.0",
"Contribute": "Contribuir",
"Clients": "Clientes",
"Raycast": "Extensão para Raycast",
"Lite": "Edição Lite"
+49 -2
View File
@@ -1751,6 +1751,48 @@
"isNative": "Совпадение ASN и геолокации"
}
},
"abuseLevel": {
"label": "Злоупотребления",
"none": "Не обнаружены",
"low": "Редкие",
"medium": "Умеренные",
"high": "Частые"
},
"scenarioFriction": {
"label": "Сложности по сценариям",
"toggle": "Подробнее о сложностях",
"breakdown": "Без проблем: {smooth} · Доп. проверки: {checks} · Возможны ограничения: {restricted}",
"introTitle": "Сложности по сценариям: разбор",
"intro": "Вы можете использовать этот IP для самых разных задач, от сёрфинга до работы, и в разных сценариях сложности с платформами могут различаться. Мы учитываем тип сети, анонимность, историю злоупотреблений и местоположение этого IP, чтобы оценить, как к нему, вероятно, отнесутся платформы.",
"listTitle": "По сценариям",
"scenarios": {
"signup": "Регистрация и вход",
"payments": "Покупки и платежи",
"finance": "Банки и финансы",
"streaming": "Стриминг и региональный контент",
"availability": "Доступность зарубежных сервисов",
"browsing": "Повседневный сёрфинг",
"posting": "Публикации и комментарии",
"localSocial": "Соцсети от имени местного пользователя",
"localSocialIn": "Соцсети от имени местного пользователя ({country})",
"automation": "Автоматизация и парсинг",
"email": "Отправка почты со своего сервера"
},
"verdict": {
"default": {
"low": "Без проблем",
"medium": "Доп. проверки",
"high": "Возможны ограничения"
},
"availability": {
"low": "Доступно",
"medium": "Ограничено",
"high": "Возможна блокировка"
}
},
"personaHint": "Помимо IP, платформы учитывают и другие факторы, решая, какие ограничения применить. Хотите узнать, совпадает ли ваш общий профиль с вашими ожиданиями?",
"personaLink": "Запустить проверку портрета"
},
"countryTraffic": {
"subtitle": "Недельное распределение онлайн-активности в этой стране/регионе — можно смотреть только трафик, создаваемый людьми, или весь трафик (включая ботов и автоматизированный трафик).",
"human": "Только люди",
@@ -1837,7 +1879,9 @@
"Import": "Импорт",
"NotEnoughCapacity": "Недостаточно места — для списка нужно слотов: {need}, свободно: {free}.",
"Destination": "Добавить в",
"ImportAsNew": "Импортировать как новый список"
"ImportAsNew": "Импортировать как новый список",
"MissingCountry": "Нет вашей страны? {link}",
"MissingCountryLink": "Добавьте для неё список"
},
"lists": {
"Tab": "Списки",
@@ -1868,6 +1912,7 @@
"albania": "Албания: основные",
"kosovo": "Косово: основные",
"thailand": "Таиланд: основные",
"mexico": "Мексика: основные",
"ai": "ИИ-сервисы",
"social": "Соцсети",
"productivity": "Работа и продуктивность",
@@ -2088,7 +2133,9 @@
"DeveloperDocs": "Документация для разработчиков",
"SelfHosting": "Руководство по самостоятельному размещению",
"ReportIssue": "Сообщить о проблеме",
"License": "Лицензия MIT",
"FeatureRequest": "Предложить функцию",
"License": "Лицензия AGPL-3.0",
"Contribute": "Внести вклад",
"Clients": "Клиенты",
"Raycast": "Расширение для Raycast",
"Lite": "Версия Lite"
+49 -2
View File
@@ -1751,6 +1751,48 @@
"isNative": "ASN 與地理位置一致性"
}
},
"abuseLevel": {
"label": "濫用行為",
"none": "未偵測到",
"low": "較少",
"medium": "中等",
"high": "較多"
},
"scenarioFriction": {
"label": "場景摩擦",
"toggle": "場景摩擦詳情",
"breakdown": "{smooth} 項順暢 · {checks} 項需額外驗證 · {restricted} 項可能被限制",
"introTitle": "場景摩擦解析",
"intro": "你可能會用這個 IP 進行各種瀏覽或工作,不同場景下,它與平台之間的摩擦程度可能不同。我們綜合這個 IP 的網路類型、匿名性、濫用紀錄和所在地,估算各類平台可能會如何對待它。",
"listTitle": "各場景",
"scenarios": {
"signup": "帳號註冊與登入",
"payments": "購物與支付",
"finance": "銀行與金融",
"streaming": "串流與區域內容",
"availability": "國際服務可用性",
"browsing": "日常瀏覽",
"posting": "發文與留言",
"localSocial": "以在地身分經營社群媒體",
"localSocialIn": "以{country}在地身分經營社群媒體",
"automation": "自動化與爬蟲",
"email": "自架郵件寄信"
},
"verdict": {
"default": {
"low": "順暢",
"medium": "需額外驗證",
"high": "可能被限制"
},
"availability": {
"low": "可用",
"medium": "受限",
"high": "可能被封鎖"
}
},
"personaHint": "除了 IP,平台還會參考多個因素來判斷觸發何種限制。想知道你目前的綜合畫像是否與你的預期一致?",
"personaLink": "執行深度畫像檢測"
},
"countryTraffic": {
"subtitle": "該國家/地區的每週網路活躍分布——你可以選擇僅看人類所產生的流量或全部流量(包含機器人/自動化流量)。",
"human": "僅人類流量",
@@ -1837,7 +1879,9 @@
"Import": "匯入",
"NotEnoughCapacity": "容量不足——該清單需要 {need} 個空位,僅剩 {free} 個",
"Destination": "加入到",
"ImportAsNew": "匯入為新清單"
"ImportAsNew": "匯入為新清單",
"MissingCountry": "沒有你所在國家的清單?{link}",
"MissingCountryLink": "來新增一個"
},
"lists": {
"Tab": "清單",
@@ -1868,6 +1912,7 @@
"albania": "阿爾巴尼亞常用",
"kosovo": "科索沃常用",
"thailand": "泰國常用",
"mexico": "墨西哥常用",
"ai": "AI 服務",
"social": "社交通訊",
"productivity": "工作與生產力",
@@ -2088,7 +2133,9 @@
"DeveloperDocs": "開發者文件",
"SelfHosting": "自行架設指南",
"ReportIssue": "回報問題",
"License": "MIT 授權條款",
"FeatureRequest": "功能請求",
"License": "AGPL-3.0 授權條款",
"Contribute": "貢獻程式碼",
"Clients": "用戶端",
"Raycast": "Raycast 擴充功能",
"Lite": "Lite 版"
+49 -2
View File
@@ -1751,6 +1751,48 @@
"isNative": "原生性"
}
},
"abuseLevel": {
"label": "滥用行为",
"none": "未检测到",
"low": "较少",
"medium": "中等",
"high": "较多"
},
"scenarioFriction": {
"label": "场景摩擦",
"toggle": "场景摩擦详情",
"breakdown": "{smooth} 项顺畅 · {checks} 项需额外验证 · {restricted} 项可能被限制",
"introTitle": "场景摩擦解析",
"intro": "你可能会用这个 IP 进行各种浏览或工作,不同场景下,它与平台之间的摩擦程度可能不同。我们综合这个 IP 的网络类型、匿名性、滥用记录和所在地,估算各类平台可能会如何对待它。",
"listTitle": "各场景",
"scenarios": {
"signup": "账号注册与登录",
"payments": "购物与支付",
"finance": "银行与金融",
"streaming": "流媒体与区域内容",
"availability": "国际服务可用性",
"browsing": "日常浏览",
"posting": "发帖与评论",
"localSocial": "以本地身份运营社交媒体",
"localSocialIn": "以{country}本地身份运营社交媒体",
"automation": "自动化与爬虫",
"email": "自建邮件发信服务"
},
"verdict": {
"default": {
"low": "顺畅",
"medium": "需额外验证",
"high": "可能被限制"
},
"availability": {
"low": "可用",
"medium": "受限",
"high": "可能被封锁"
}
},
"personaHint": "除了 IP,平台还会参考多个因素来判断触发何种限制。想知道你当前综合画像和你预期的是否一致?",
"personaLink": "运行深度画像检测"
},
"countryTraffic": {
"subtitle": "该国家/地区的每周网络活跃分布—— 你可以选择仅看人类所产生的流量或全部流量(包含机器人/自动化流量)。",
"human": "仅人类流量",
@@ -1837,7 +1879,9 @@
"Import": "导入",
"NotEnoughCapacity": "容量不足——该列表需要 {need} 个空位,仅剩 {free} 个",
"Destination": "添加到",
"ImportAsNew": "导入为新列表"
"ImportAsNew": "导入为新列表",
"MissingCountry": "没有你所在国家的列表?{link}",
"MissingCountryLink": "来添加一个"
},
"lists": {
"Tab": "列表",
@@ -1868,6 +1912,7 @@
"albania": "阿尔巴尼亚常用",
"kosovo": "科索沃常用",
"thailand": "泰国常用",
"mexico": "墨西哥常用",
"ai": "AI 服务",
"social": "社交通讯",
"productivity": "工作与生产力",
@@ -2088,7 +2133,9 @@
"DeveloperDocs": "开发者文档",
"SelfHosting": "自托管指南",
"ReportIssue": "报告问题",
"License": "MIT 许可证",
"FeatureRequest": "功能请求",
"License": "AGPL-3.0 许可证",
"Contribute": "贡献代码",
"Clients": "客户端",
"Raycast": "Raycast 扩展",
"Lite": "Lite 版"
@@ -0,0 +1,71 @@
// Scenario friction: validates the IPCheck.ing `advancedData.scenarios` block and maps
// it onto display order, tones and locale keys (`ipInfos.scenarioFriction.*`).
// Display order; `kind` picks the verdict wording.
export const SCENARIOS = Object.freeze([
{ id: 'signup' },
{ id: 'payments' },
{ id: 'finance' },
{ id: 'streaming' },
{ id: 'availability', kind: 'availability' },
{ id: 'browsing' },
{ id: 'posting' },
{ id: 'crossBorderSocial' },
{ id: 'automation' },
{ id: 'email' },
].map((s) => Object.freeze(s)));
const LEVELS = ['low', 'medium', 'high'];
// Green and yellow only, never red: medium is the light yellow, high the full one.
export const LEVEL_TONE = Object.freeze({ low: 'ok-fast', medium: 'ok-mild', high: 'ok-slow' });
const isPlainObject = (value) => Boolean(value) && typeof value === 'object' && !Array.isArray(value);
// `{ id, kind?, level }` in display order, or null when nothing usable arrived.
// Any positive integer `version` is accepted; only the shape is checked.
export const normalizeScenarios = (raw) => {
if (!isPlainObject(raw) || !Number.isInteger(raw.version) || raw.version < 1 || !Array.isArray(raw.items)) return null;
const levelById = new Map();
for (const item of raw.items) {
if (!isPlainObject(item) || !LEVELS.includes(item.level) || levelById.has(item.id)) continue;
levelById.set(item.id, item.level);
}
const out = SCENARIOS.filter((meta) => levelById.has(meta.id))
.map((meta) => ({ ...meta, level: levelById.get(meta.id) }));
return out.length ? out : null;
};
// An unknown level counts as low.
const levelOf = (s) => (LEVELS.includes(s?.level) ? s.level : 'low');
export const scenarioTone = (scenario) => LEVEL_TONE[levelOf(scenario)];
// Shared by the card dots and the details list: low, then medium, then high;
// display order kept within a level (stable sort).
const LEVEL_RANK = { low: 0, medium: 1, high: 2 };
export const sortByLevel = (scenarios = []) =>
[...scenarios].sort((a, b) => LEVEL_RANK[levelOf(a)] - LEVEL_RANK[levelOf(b)]);
// Card dots: one tone per scenario, in `sortByLevel` order.
export const frictionDots = (scenarios = []) =>
sortByLevel(scenarios).map((s) => ({ id: s.id, tone: scenarioTone(s) }));
// Locale key per API id where the two differ.
const NAME_KEYS = Object.freeze({ crossBorderSocial: 'localSocial' });
// Social-as-a-local names the card's country when there is one (`{country}` param).
export const scenarioNameKey = (scenario, countryName = '') => {
const name = NAME_KEYS[scenario.id] ?? scenario.id;
const withCountry = scenario.id === 'crossBorderSocial' && countryName;
return `ipInfos.scenarioFriction.scenarios.${name}${withCountry ? 'In' : ''}`;
};
export const verdictKey = (scenario) =>
`ipInfos.scenarioFriction.verdict.${scenario?.kind === 'availability' ? 'availability' : 'default'}.${levelOf(scenario)}`;
// Card breakdown: count per level (low = smooth, medium = checks, high = restricted).
export const frictionShares = (scenarios = []) => {
const count = (level) => scenarios.filter((s) => levelOf(s) === level).length;
return { total: scenarios.length, smooth: count('low'), checks: count('medium'), restricted: count('high') };
};
+1 -1
View File
@@ -1,5 +1,5 @@
// Client for `/api/asn-connectivity` (CAIDA topology + neighbour lists),
// used by IpDetailPanel. Fills an owner's session cache keyed by the numeric ASN
// used by IpAsnBlock. Fills an owner's session cache keyed by the numeric ASN
// string: `{ graph }` on success, `{ error: true }` on failure — the shape
// ASNConnectivity.vue reads.
//
+27
View File
@@ -0,0 +1,27 @@
// Client for `/api/asn-history` (RIPEstat routing history per BGP prefix),
// used by IpAsnBlock. Fills an owner's session cache keyed by the prefix:
// the response body on success, `{ error: true }` on failure — the shape
// ASNHistory.vue reads.
//
// Relative imports keep this file importable from the Node test runner.
import { fetchWithTimeout } from '../fetch-with-timeout.js';
export const asnHistoryUrl = (prefix) => `/api/asn-history?prefix=${encodeURIComponent(prefix)}`;
// Fetch `prefix` ('1.1.1.0/24') into `cache` unless already there; resolves
// to the cache entry. Non-2xx answers and network failures are cached as
// `{ error: true }`.
export const loadAsnHistoryInto = async (cache, prefix) => {
try {
if (cache[prefix]) return cache[prefix];
// RIPEstat routing-history is a slow analytical endpoint (10–20s on
// cold prefixes). Backend caps it at 25s; browser waits 26s so the
// server's 504 surfaces instead of the browser aborting first.
const response = await fetchWithTimeout(asnHistoryUrl(prefix), { timeoutMs: 26000 });
cache[prefix] = response.ok ? await response.json() : { error: true };
} catch (error) {
console.error('Error fetching ASN history:', error);
cache[prefix] = { error: true };
}
return cache[prefix];
};
+1 -1
View File
@@ -1,4 +1,4 @@
// Score-details panel for IPCheck.ing results (IpDetailPanel): a plain-
// Score-details panel for IPCheck.ing results (ScoreDetailsPanel): a plain-
// language explanation of the quality score, built as a list of i18n
// sentences, and the attribute rows below it. Pure — no Vue, no fetch.
//
+4 -1
View File
@@ -1,4 +1,5 @@
import getCountryName from '../../data/country-name.js';
import { normalizeScenarios } from '../features/scenario-friction.js';
// The static map renders at zoom 3 (continent scale), where ~0.176° spans a
// single pixel. Quantizing the request coords to 1 decimal (~0.1°, sub-pixel)
@@ -96,11 +97,13 @@ function extractAdvancedData(advancedData = {}, t) {
const scoreTags = isPlainObject(advancedData.tags) ? advancedData.tags : undefined;
const scoreDimensions = isPlainObject(advancedData.dimensions) ? advancedData.dimensions : undefined;
const scoreVersion = Number.isFinite(advancedData.scoreVersion) ? advancedData.scoreVersion : undefined;
// Scenario friction items; null when the answer carries none.
const frictionScenarios = normalizeScenarios(advancedData.scenarios);
return {
anonymity, anonymityCode, anonymityProvider, anonymityProtocol,
type, qualityScore, isNativeIP, ipTypeCode,
scoreTags, scoreDimensions, scoreVersion,
scoreTags, scoreDimensions, scoreVersion, frictionScenarios,
};
}
+2 -1
View File
@@ -1,7 +1,8 @@
{
"name": "myip",
"private": true,
"version": "8.0.0",
"version": "8.1.0",
"license": "AGPL-3.0-only",
"type": "module",
"packageManager": "pnpm@12.14.0",
"engines": {
Binary file not shown.

After

Width:  |  Height:  |  Size: 752 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 658 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 546 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 875 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 328 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 537 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 802 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 983 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 579 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 546 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 849 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 340 B

+3
View File
@@ -66,6 +66,9 @@ export const STATUS_PROVIDERS = [
{ id: 'perplexity', name: 'Perplexity', api: 'https://status.perplexity.com', page: 'https://status.perplexity.com', platform: 'incident.io' },
{ id: 'canva', name: 'Canva', api: 'https://www.canvastatus.com', page: 'https://www.canvastatus.com' },
{ id: 'docker', name: 'Docker', api: 'https://www.dockerstatus.com', page: 'https://www.dockerstatus.com', platform: 'incident.io' },
{ id: 'bitbucket', name: 'Bitbucket', api: 'https://bitbucket.status.atlassian.com', page: 'https://bitbucket.status.atlassian.com' },
{ id: 'digitalocean', name: 'DigitalOcean', api: 'https://status.digitalocean.com', page: 'https://status.digitalocean.com' },
{ id: 'reddit', name: 'Reddit', api: 'https://www.redditstatus.com', page: 'https://www.redditstatus.com' },
];
// Whitelist used by requireValidProviderId() — the per-provider detail
+68
View File
@@ -0,0 +1,68 @@
// Tests for frontend/utils/ip/asn-history.js: the request URL, cache hits
// skipping the network, and the body / `{ error: true }` entry shapes
// ASNHistory.vue reads. globalThis.fetch is stubbed per test.
import assert from 'node:assert/strict';
import { describe, it, beforeEach, afterEach } from 'node:test';
import { asnHistoryUrl, loadAsnHistoryInto } from '../frontend/utils/ip/asn-history.js';
const realFetch = globalThis.fetch;
const realConsoleError = console.error;
let calls;
const stubFetch = (impl) => {
globalThis.fetch = async (url, init) => {
calls.push(url);
return impl(url, init);
};
};
const jsonResponse = (body, status = 200) => ({ ok: status < 400, status, json: async () => body });
beforeEach(() => {
calls = [];
console.error = () => {};
});
afterEach(() => {
globalThis.fetch = realFetch;
console.error = realConsoleError;
});
describe('asnHistoryUrl', () => {
it('encodes the prefix', () => {
assert.equal(asnHistoryUrl('1.1.1.0/24'), '/api/asn-history?prefix=1.1.1.0%2F24');
});
});
describe('loadAsnHistoryInto', () => {
it('caches the body under the prefix', async () => {
const body = { prefix: '1.1.1.0/24', asns: [] };
stubFetch(() => jsonResponse(body));
const cache = {};
const entry = await loadAsnHistoryInto(cache, '1.1.1.0/24');
assert.deepEqual(calls, [asnHistoryUrl('1.1.1.0/24')]);
assert.deepEqual(cache, { '1.1.1.0/24': body });
assert.equal(entry, cache['1.1.1.0/24']);
});
it('a cached prefix resolves without a request', async () => {
stubFetch(() => jsonResponse({}));
const cache = { '2001:db8::/48': { asns: [{ asn: 64500 }] } };
const entry = await loadAsnHistoryInto(cache, '2001:db8::/48');
assert.equal(calls.length, 0);
assert.deepEqual(entry, { asns: [{ asn: 64500 }] });
});
it('a non-2xx answer is cached as { error: true }', async () => {
stubFetch(() => jsonResponse({ error: 'Gateway Timeout' }, 504));
const cache = {};
assert.deepEqual(await loadAsnHistoryInto(cache, '192.0.2.0/24'), { error: true });
assert.deepEqual(cache, { '192.0.2.0/24': { error: true } });
});
it('a network failure is cached as { error: true }', async () => {
stubFetch(() => { throw new TypeError('offline'); });
const cache = {};
assert.deepEqual(await loadAsnHistoryInto(cache, '198.51.100.0/24'), { error: true });
assert.deepEqual(cache, { '198.51.100.0/24': { error: true } });
});
});
+7
View File
@@ -72,9 +72,16 @@ describe('useStatusTone() (existing contract still holds)', () => {
const { dotClass } = useStatusTone();
assert.equal(dotClass('wait'), 'bg-info');
assert.equal(dotClass('ok-fast'), 'bg-success');
assert.equal(dotClass('ok-mild'), 'bg-warning/50');
assert.equal(dotClass('ok-slow'), 'bg-warning');
assert.equal(dotClass('fail'), 'bg-destructive');
// unknown tone falls back to wait
assert.equal(dotClass('bogus'), 'bg-info');
});
it('textClass maps ok-mild to a lighter text-warning', () => {
const { textClass } = useStatusTone();
assert.equal(textClass('ok-mild'), 'text-warning/75');
assert.equal(textClass('ok-slow'), 'text-warning');
});
});
+205
View File
@@ -0,0 +1,205 @@
// Tests for frontend/utils/features/scenario-friction.js — scenario normalization,
// display order, level sorting, card dot order, tones, locale keys and level shares.
import assert from 'node:assert/strict';
import { describe, it } from 'node:test';
import { readFileSync } from 'node:fs';
import {
SCENARIOS,
LEVEL_TONE,
normalizeScenarios,
scenarioTone,
sortByLevel,
scenarioNameKey,
verdictKey,
frictionShares,
frictionDots,
} from '../frontend/utils/features/scenario-friction.js';
const ORDER = ['signup', 'payments', 'finance', 'streaming', 'availability',
'browsing', 'posting', 'crossBorderSocial', 'automation', 'email'];
const en = JSON.parse(readFileSync(new URL('../frontend/locales/en.json', import.meta.url), 'utf8'));
const lookup = (key) => key.split('.').reduce((node, part) => node?.[part], en);
const item = (id, level = 'low') => ({ id, level });
const full = (level = 'low') => ({ version: 1, items: ORDER.map((id) => item(id, level)) });
describe('scenario-friction', () => {
describe('SCENARIOS', () => {
it('lists the ten ids in display order with one availability kind', () => {
assert.deepEqual(SCENARIOS.map((s) => s.id), ORDER);
assert.deepEqual(SCENARIOS.filter((s) => s.kind === 'availability').map((s) => s.id), ['availability']);
});
it('has an English name for every scenario', () => {
for (const s of SCENARIOS) assert.ok(typeof lookup(scenarioNameKey(s)) === 'string' && lookup(scenarioNameKey(s)), s.id);
});
it('names the country in social-as-a-local only when one is given', () => {
const social = { id: 'crossBorderSocial' };
assert.equal(scenarioNameKey(social), 'ipInfos.scenarioFriction.scenarios.localSocial');
assert.equal(scenarioNameKey(social, 'Japan'), 'ipInfos.scenarioFriction.scenarios.localSocialIn');
assert.match(lookup(scenarioNameKey(social, 'Japan')), /\{country\}/);
assert.equal(scenarioNameKey({ id: 'email' }, 'Japan'), 'ipInfos.scenarioFriction.scenarios.email');
});
});
describe('tones', () => {
it('maps low to green, medium to light yellow, high to full yellow, never red', () => {
assert.deepEqual({ ...LEVEL_TONE }, { low: 'ok-fast', medium: 'ok-mild', high: 'ok-slow' });
assert.equal(scenarioTone(item('a', 'medium')), 'ok-mild');
assert.equal(scenarioTone(item('a', 'high')), 'ok-slow');
assert.equal(scenarioTone(item('a', 'weird')), 'ok-fast');
assert.ok(!Object.values(LEVEL_TONE).includes('fail'));
});
});
describe('sortByLevel()', () => {
it('puts low first, then medium, then high', () => {
const out = sortByLevel([item('a', 'high'), item('b', 'low'), item('c', 'medium'), item('d', 'low')]);
assert.deepEqual(out.map((s) => s.level), ['low', 'low', 'medium', 'high']);
});
it('keeps display order within a level, unknown levels as low', () => {
const raw = { version: 1, items: ORDER.map((id, i) => item(id, ['low', 'medium', 'high'][i % 3])) };
const out = sortByLevel(normalizeScenarios(raw));
assert.deepEqual(out.map((s) => s.id), [
'signup', 'streaming', 'posting', 'email',
'payments', 'availability', 'crossBorderSocial',
'finance', 'browsing', 'automation',
]);
assert.deepEqual(sortByLevel([item('z', 'medium'), item('x', 'weird'), item('y', 'low')]).map((s) => s.id),
['x', 'y', 'z']);
});
it('returns a new array without mutating its input', () => {
const input = Object.freeze([item('a', 'high'), item('b', 'low')]);
const out = sortByLevel(input);
assert.notEqual(out, input);
assert.deepEqual(input.map((s) => s.id), ['a', 'b']);
assert.deepEqual(out.map((s) => s.id), ['b', 'a']);
assert.deepEqual(sortByLevel(), []);
});
});
describe('normalizeScenarios()', () => {
it('returns null for missing, gated or malformed blocks', () => {
for (const raw of [undefined, null, 'sign_in_required', 'quota_exceeded', 42, [], {},
{ version: 1 }, { version: 1, items: {} }, { version: 1, items: [] }]) {
assert.equal(normalizeScenarios(raw), null, JSON.stringify(raw));
}
});
it('accepts any positive integer version', () => {
for (const version of [1, 2, 17]) {
assert.equal(normalizeScenarios({ ...full('high'), version })?.length, 10, String(version));
}
});
it('returns null for a missing or non-integer version', () => {
for (const version of ['1', 1.5, 0, -1, null, NaN]) {
assert.equal(normalizeScenarios({ ...full(), version }), null, String(version));
}
const { version, ...noVersion } = full();
assert.equal(normalizeScenarios(noVersion), null);
});
it('returns { id, kind?, level } in display order regardless of input order', () => {
const out = normalizeScenarios({ version: 1, items: [...ORDER].reverse().map((id) => item(id, 'medium')) });
assert.deepEqual(out.map((s) => s.id), ORDER);
assert.deepEqual(out[0], { id: 'signup', level: 'medium' });
assert.deepEqual(out.find((s) => s.id === 'availability'), { id: 'availability', kind: 'availability', level: 'medium' });
});
it('ignores extra fields such as reasons', () => {
const out = normalizeScenarios({ version: 1, items: [{ id: 'email', level: 'high', reasons: ['home_line'], score: 3 }] });
assert.deepEqual(out, [{ id: 'email', level: 'high' }]);
});
it('keeps a partial list, dropping unknown ids and items with unknown levels', () => {
const out = normalizeScenarios({
version: 1,
items: [
item('email', 'high'),
item('teleport', 'high'),
item('signup', 'severe'),
item('finance', null),
{ id: 'payments' },
null,
'browsing',
item('posting', 'low'),
],
});
assert.deepEqual(out.map((s) => [s.id, s.level]), [['posting', 'low'], ['email', 'high']]);
});
it('returns null when no valid item survives', () => {
assert.equal(normalizeScenarios({ version: 1, items: [item('teleport'), item('signup', 'weird'), null] }), null);
});
it('keeps the first of duplicate ids', () => {
const out = normalizeScenarios({ version: 1, items: [item('signup', 'high'), item('signup', 'low')] });
assert.deepEqual(out.map((s) => s.level), ['high']);
});
it('never throws on hostile input', () => {
assert.doesNotThrow(() => normalizeScenarios({ version: 1, items: [Object.create(null), [], () => {}] }));
});
});
it('keys verdicts per kind, unknown levels as low', () => {
const words = (s) => lookup(verdictKey(s));
assert.equal(words(item('a', 'low')), 'Smooth');
assert.equal(words(item('a', 'medium')), 'Extra checks');
assert.equal(words(item('a', 'high')), 'May be restricted');
assert.equal(words(item('a', 'weird')), 'Smooth');
const avail = (level) => ({ id: 'availability', kind: 'availability', level });
assert.equal(words(avail('low')), 'Available');
assert.equal(words(avail('medium')), 'Limited');
assert.equal(words(avail('high')), 'May be blocked');
});
it('counts scenarios per level, unknown levels as smooth', () => {
assert.deepEqual(frictionShares([item('a', 'low'), item('b', 'medium'), item('c', 'high'), item('d', 'weird')]),
{ total: 4, smooth: 2, checks: 1, restricted: 1 });
assert.deepEqual(frictionShares(normalizeScenarios(full('high'))), { total: 10, smooth: 0, checks: 0, restricted: 10 });
assert.deepEqual(frictionShares(normalizeScenarios(full())), { total: 10, smooth: 10, checks: 0, restricted: 0 });
assert.deepEqual(frictionShares([]), { total: 0, smooth: 0, checks: 0, restricted: 0 });
assert.deepEqual(frictionShares(), { total: 0, smooth: 0, checks: 0, restricted: 0 });
});
describe('frictionDots()', () => {
it('follows the details list order (sortByLevel)', () => {
const raw = { version: 1, items: ORDER.map((id, i) => item(id, ['low', 'medium', 'high'][i % 3])) };
const scenarios = normalizeScenarios(raw);
assert.deepEqual(frictionDots(scenarios).map((d) => d.id), sortByLevel(scenarios).map((s) => s.id));
});
it('carries one level tone per scenario, unknown levels as low', () => {
const out = frictionDots([item('a', 'high'), item('b', 'weird'), item('c', 'medium'), item('d', 'low')]);
assert.deepEqual(out, [
{ id: 'b', tone: 'ok-fast' }, { id: 'd', tone: 'ok-fast' },
{ id: 'c', tone: 'ok-mild' }, { id: 'a', tone: 'ok-slow' },
]);
assert.equal(frictionDots(normalizeScenarios(full('high'))).length, 10);
});
it('does not mutate its input and handles empty lists', () => {
const input = Object.freeze([item('a', 'high'), item('b', 'low')]);
assert.deepEqual(frictionDots(input).map((d) => d.id), ['b', 'a']);
assert.deepEqual(input.map((s) => s.id), ['a', 'b']);
assert.deepEqual(frictionDots([]), []);
assert.deepEqual(frictionDots(), []);
});
});
it('has a breakdown string in every full locale naming the three counts', () => {
for (const locale of ['en', 'zh', 'zh-TW', 'fr', 'ru', 'pt-BR']) {
const pack = JSON.parse(readFileSync(new URL(`../frontend/locales/${locale}.json`, import.meta.url), 'utf8'));
const params = [...pack.ipInfos.scenarioFriction.breakdown.matchAll(/\{(\w+)\}/g)].map((m) => m[1]).sort();
assert.deepEqual(params, ['checks', 'restricted', 'smooth'], locale);
}
});
});
+21
View File
@@ -245,4 +245,25 @@ describe('extractAdvancedData()', () => {
assert.equal(gated.scoreDimensions, undefined);
assert.equal(gated.scoreVersion, undefined);
});
it('carries normalized friction scenarios when the API sent them', () => {
const scenarios = {
version: 1,
items: [
{ id: 'email', level: 'high' },
{ id: 'signup', level: 'low' },
],
};
const out = extractAdvancedData({ tags: { ...cleanTags }, operatorType: 'Residential', score: 90, scenarios }, t);
assert.deepEqual(out.frictionScenarios, [{ id: 'signup', level: 'low' }, { id: 'email', level: 'high' }]);
});
it('leaves friction scenarios null without them, gated or malformed', () => {
const none = extractAdvancedData({ tags: { ...cleanTags }, operatorType: 'Residential', score: 90 }, t);
assert.equal(none.frictionScenarios, null);
const gated = extractAdvancedData({ tags: 'sign_in_required', score: 'sign_in_required', operatorType: 'sign_in_required', scenarios: 'sign_in_required' }, t);
assert.equal(gated.frictionScenarios, null);
const malformed = extractAdvancedData({ tags: { ...cleanTags }, operatorType: 'Residential', score: 90, scenarios: { version: '1', items: [{ id: 'email', level: 'high' }] } }, t);
assert.equal(malformed.frictionScenarios, null);
});
});