Resolving Incapsula/Imperva 403 Errors
Incapsula (Imperva) uses device fingerprinting with reese84 and utmvc challenges. Cookies are bound to IP addresses and cannot be modified. MeshPrivacy generates valid session cookies by completing the fingerprint verification process from your IP.
Critical: IP-Bound Cookies
Incapsula cookies cannot be manually modified and are bound to your IP address. Cookies generated from a different IP will not work. Ensure consistent IP usage throughout your session.
Error Codes
| Code | Meaning | Resolution |
|---|---|---|
| 403 | Most common block response | Generate valid session cookies via API |
| 200 | Deceptive block page (Incapsula HTML) | Detect and solve embedded challenge |
Real-time API status: trust.meshprivacy.com
Cookies & Headers
incap_ses_* - Session tokenvisid_incap_* - Visitor device IDFormat: incap_ses_[site_id]=[token]
X-Iinfo - Incapsula infoX-CDN: IncapsulaCheck these headers to identify Incapsula protection.
Service Variants
Imperva/Incapsula challenges resolve through two distinct service IDs in MeshPrivacy. Pick the one matching the script the target serves.
reese84Primary
Fingerprint sensor data submission. Collects browser and device characteristics for verification against Imperva's database.
| Field | Type | Required | Description |
|---|---|---|---|
script_url | string | Yes | Reese84 script URL from Imperva/Incapsula |
url | string | No | Target URL |
proxy_config | string | No | Proxy in http://user:pass@ip:port format |
user_agent | string | No | Custom user agent |
// Submit Incapsula Reese84 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: 'reese84',
script_url: 'https://target-site.com/path/to/reese.js', // required
url: 'https://target-site.com/', // optional
proxy_config: 'http://user:pass@ip:port', // optional - use same IP throughout
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();
// reese84 token returned for fingerprint sensor submissionutmvc
Behavior tracking cookie challenge served via _Incapsula_Resource. Generates valid incap_ses_* and visid_incap_* cookies.
| Field | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Target URL |
script_url | string | Yes | UTMVC script URL (_Incapsula_Resource) |
cookies | object | No | Incapsula cookies JSON (visid_incap, nlbi, incap_ses) |
proxy_config | string | No | |
user_agent | string | No |
// Submit Incapsula UTMVC 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: 'utmvc',
url: 'https://target-site.com/', // required
script_url: 'https://target-site.com/_Incapsula_Resource?SWHANEDL=...', // required
cookies: { // optional - Incapsula cookies JSON
'visid_incap_123456': '...',
'nlbi_123456': '...',
'incap_ses_123_456': '...'
},
proxy_config: 'http://user:pass@ip:port', // optional
user_agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)...' // optional
})
});