SShortSingh.
Back to feed

Giữ cookie và phiên làm việc khi IP proxy xoay: sticky session và khi nào nên dùng IP tĩnh

0
·3 views

Bài viết hướng dẫn cách giữ cookie và phiên làm việc ổn định khi proxy dân cư tự động đổi địa chỉ IP giữa các request. Cookie jar của thư viện HTTP không thể cố định IP phía proxy, nên một số trang sẽ yêu cầu xác minh lại, hạ cấp phiên hoặc trả về trang đăng nhập. Tác giả đề xuất ba mô hình: xoay IP, sticky session kéo dài từ 1 đến 120 phút và IP tĩnh thuê theo tháng, tùy thời lượng công việc. Bài cũng khuyến nghị dùng socks5h để DNS được phân giải phía proxy và kiểm tra IP thoát ngay trong script. Nội dung nhấn mạnh chỉ dùng cho tài khoản và dữ liệu được phép, không phải để vượt chặn.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

DoodleAdvent: A Free, Signup-Free Collaborative Advent Calendar for Friends

A new free web tool called DoodleAdvent lets groups build a shared online advent calendar without any account creation, requiring only a shared link sent through messaging apps. Up to 24 friends can add quick holiday doodles and hidden notes behind doors that unlock at each recipient's local midnight. The builders say they stored drawings as compact vector stroke data under 2 KB per door, which lets them load quickly in mobile in-app browsers and replay each sketch stroke by stroke upon unlocking. A 12 Days of Christmas mode was added for latecomers, requiring only 4 to 12 participants to fill, and users can export share cards and calendar reminders. The project is localized into several languages and runs on Cloudflare Workers.

0
ProgrammingDEV Community ·

Translation Site Deletes 1,300 Pages and Cuts 440 Dead Links After Traffic Stalls

A developer running a small translation website reports that a strategy of publishing about 3,500 near-duplicate pages failed to generate traffic. Google Search Console showed zero clicks and only 20 indexed pages against 131 unindexed. The developer removed pages in two rounds, leaving 2,197, but deleting first left 440 broken internal links that a later audit uncovered. The fix involved updating the site generator so language switchers and hreflang tags only reference pages that actually exist. After redeployment, all sitemap URLs returned successful responses, and the developer now treats fewer, better pages as the stronger approach.

0
ProgrammingDEV Community ·

X's Account Activity API Shuts Down January 1, 2027; Developers Must Migrate to Activity API

X's Account Activity API reaches end of life on January 1, 2027, and developers still receiving webhook payloads through it need to move to the X Activity API before then. The migration involves more than a URL change, since the subscription model, payload structure, and several delivery behaviors differ. Enterprise customers can request a managed migration in which X moves existing subscriptions internally, or they can recreate subscriptions themselves through the API. In either case, the webhook consumer must be updated to parse the new payload format before cutover. Existing webhook endpoints and validation logic can remain largely unchanged because the new API uses the same V2 Webhooks API, CRC checks, and signature headers.

0
ProgrammingDEV Community ·

Our AI's test execution rate jumped from 39% to 78% overnight. Nobody celebrated.

For four weeks I handed 117 system test cases to executor AIs (three of them, in turns) and had an auditor AI and one human compare their reports against the evidence every day. This series is one real incident per week from that record. No hypotheticals. On Day 16 the test execution rate jumped from 39% to 78% overnight. That is the kind of number you want to put in a status report.