Xalgorix Cloud
Autonomous AI security testing for developers and security teams: find vulnerabilities, prove each with a working exploit, and ship verified fixes with zero infrastructure setup.
翻訳待ち
No updates detected yet. GitHub releases will appear here.
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗一個簡單的「我的 IP 是多少」網站,部署在 Cloudflare Workers 上。
打開網頁就能看到目前連線使用的 IP,以及所在地區、網路業者等連線資訊;也可以直接用 curl 取得純文字 IP,或用 /json 拿到完整資料給程式使用。
curl 直接回傳 IP,不用處理 HTML| 路徑 | 回傳內容 |
|---|---|
/ | 瀏覽器開啟為網頁;curl、wget 等工具則回傳純文字 IP |
/ip | 純文字 IP |
/json | JSON 格式的完整連線資訊(允許跨域呼叫) |
# 取得 IP
curl https://ip.info-sec.vip
# 取得完整資訊
curl https://ip.info-sec.vip/json
# Windows PowerShell
(Invoke-WebRequest https://ip.info-sec.vip/ip).Content
/json 回傳範例:
{
"ip": "203.0.113.42",
"version": "IPv4",
"country": "TW",
"region": "Taipei City",
"city": "Taipei",
"timezone": "Asia/Taipei",
"asn": 3462,
"asOrganization": "Chunghwa Telecom",
"colo": "TPE",
"httpProtocol": "HTTP/2",
"tlsVersion": "TLSv1.3",
"userAgent": "curl/8.5.0"
}
地理位置等欄位來自 Cloudflare,若無法判斷則不會出現在結果中。
src/
├── index.ts # 路由、取得 IP 與連線資訊
└── page.ts # 網頁 HTML 與樣式
wrangler.jsonc # Cloudflare Workers 設定
需要 Node.js 18 以上。
npm install
npm run dev # 啟動於 http://localhost:8787
npm run typecheck # TypeScript 型別檢查
main 就會自動部署npx wrangler login # 第一次需要登入
npm run deploy
部署完成後可透過 https://check-ip-web.<子網域>.workers.dev 存取。Worker 名稱可在 wrangler.jsonc 的 name 修改。
在 Dashboard 的 Worker 頁面 → Settings → Domains & Routes 新增,或在 wrangler.jsonc 加上:
"routes": [
{ "pattern": "ip.example.com", "custom_domain": true }
]
每次造訪會記錄 IP、路徑與 User-Agent,可在 Cloudflare Dashboard 的 Worker → Observability / Logs 查看。
部署在 Cloudflare 上時,看到的是對外的公網 IP。 若是在 NAT 後的內網,想查詢的是電腦實際使用的內部 IP,請在內網自行架設,例如在內網機器上執行:
npx wrangler dev --ip 0.0.0.0 --port 80
舊版的 Python Flask 實作(app.py)也可在 git 歷史中找到。