Looking for an overview? See the PerimeterX product page

Resolving PerimeterX/HUMAN 403 Errors

PerimeterX (now HUMAN) uses behavioral analysis with "Press & Hold" challenges to detect bots. When requests lack valid _px3 tokens, servers return 403 errors. MeshPrivacy resolves these challenges by simulating valid behavioral patterns and generating short-lived tokens.

Error Codes

CodeMeaningResolution
403Bot detected, access deniedGenerate valid _px3 token via API
200"Press & Hold" challenge pageComplete challenge via API

Token TTL: approximately 60 seconds. Tokens must be used quickly after generation.

Real-time API status: trust.meshprivacy.com

Cookies & Detection

Session Cookies
_px - Primary detection cookie
_px2 - Extended session data
_px3 - Challenge token (~60s)
_pxhd - Device fingerprint hash
_pxvid - Video frame analysis
Detection Methods
Canvas fingerprinting (2D)
WebGL parameters (GPU)
Audio context hashing
Mouse movement tracking
Click pattern analysis

Service Variants

PerimeterX/HUMAN ships two distinct service IDs in MeshPrivacy. Pick the one matching the challenge type the target serves.

perimeterx_invisiblePrimary

Invisible behavioral challenge. Collects fingerprint data and submits for verification without visible user interaction.

FieldTypeRequiredDescription
urlstringYesTarget URL protected by PerimeterX/HUMAN
app_idstringYesPX App ID (starts with PX)
script_urlstringYesPerimeterX script URL (init.js)
proxy_configstringYesProxy in http://user:pass@ip:port format
user_agentstringNoCustom user agent
perimeterx-invisible.js
// Submit PerimeterX Invisible task
const response = await fetch('https://api.meshprivacy.com/v1/tasks/submit', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json', 'X-API-Key': API_KEY },
  body: JSON.stringify({
    service: 'perimeterx_invisible',
    url: 'https://target-site.com/',                          // required
    app_id: 'PX12345678',                                     // required - starts with PX
    script_url: 'https://client.px-cloud.net/PX.../init.js',  // required - PerimeterX init.js
    proxy_config: 'http://user:pass@ip:port',                 // required
    user_agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)...'// optional
  })
});
const { task_id } = await response.json();
const result = await fetch(`https://api.meshprivacy.com/v1/tasks/result/${task_id}`, {
  headers: { 'X-API-Key': API_KEY }
});
const { cookies } = await result.json();
// IMPORTANT: Use cookies._px3 immediately - expires in ~60 seconds

perimeterx_hold

"Press & Hold" interactive challenge. Simulates the hold-button interaction pattern required by HUMAN's challenge page.

FieldTypeRequiredDescription
urlstringYesTarget URL
app_idstringNoPX App ID (starts with PX)
vidstringNoVisitor ID from _pxvid cookie
uuidstringNoUUID from PerimeterX session
pxhdstringNopxhd cookie value
captcha_urlstringNoCaptcha challenge URL
proxy_configstringNo
user_agentstringNo
perimeterx-hold.js
// Submit PerimeterX "Press & Hold" task
const response = await fetch('https://api.meshprivacy.com/v1/tasks/submit', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json', 'X-API-Key': API_KEY },
  body: JSON.stringify({
    service: 'perimeterx_hold',
    url: 'https://target-site.com/',                          // required
    app_id: 'PX12345678',                                     // optional
    vid: '',                                                  // optional - _pxvid cookie
    uuid: '',                                                 // optional - PX session UUID
    pxhd: '',                                                 // optional - pxhd cookie
    captcha_url: '',                                          // optional - challenge URL
    proxy_config: 'http://user:pass@ip:port',                 // optional
    user_agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)...'// optional
  })
});

FAQ

The _px3 token has a ~60 second TTL by design to prevent token sharing and replay attacks. Plan your request flow to use tokens immediately after generation.

Related Services