Skip to content

Add Shopee Singapore benchmark target - #7

Open
nyx-rattapoom wants to merge 3 commits into
techinz:mainfrom
nyx-rattapoom:feature/add-shopee-sg-target
Open

Add Shopee Singapore benchmark target#7
nyx-rattapoom wants to merge 3 commits into
techinz:mainfrom
nyx-rattapoom:feature/add-shopee-sg-target

Conversation

@nyx-rattapoom

@nyx-rattapoom nyx-rattapoom commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds Shopee Singapore (shopee.sg) as a new bypass benchmark target. Shopee uses a traffic-verification redirect for detected bots; this target verifies the engine lands on the real storefront instead of the verification page.

Key Changes

  • New check function utils/targets/check_bypass/shopee.py
    • check_shopee_bypass() reads window.location.href via the engine and fails closed (returns False) if the URL is missing, non-string, or contains the verify/traffic/error marker.
  • config/benchmark_targets.py
    • Registers shopee_sg in BypassTargetsSettings.targets.
    • Wires check_shopee_bypass into the checkers dict.
    • Imports kept consistent with surrounding ordering.

Detection Logic

Bot traffic is redirected to a URL containing verify/traffic/error. Absence of that marker after navigation indicates a successful bypass.

Testing

  • python -m py_compile config/benchmark_targets.py passes.
  • Rebased on latest main; conflicts with the akamai/kasada/perimeterx/reddit targets resolved (both sets retained).

@nyx-rattapoom
nyx-rattapoom force-pushed the feature/add-shopee-sg-target branch from fdfd177 to 3f226d2 Compare June 23, 2026 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant