Imperva (Incapsula)
Imperva (Incapsula): parameters, request, response and the 2Captcha method of IncapsulaTask.
On this page
Imperva (Incapsula): the bot protection that checks the browser before the site. The answer is the cookies per domain, valid only through your proxy.
| Status | coming soon |
| Type codes | IncapsulaTask — with your proxy |
| Proxy | required — your proxy |
| Also accepted as | ImpervaTask |
| Price | set when the type is switched on — see pricing |
Rules#
- Only with your proxy: the answer is bound to the IP address it was obtained from. See Proxies.
Parameters#
Fields of the task object in createTask:
ParameterDescription
typestringrequired- Task type:
IncapsulaTask. websiteURLstringrequired- Full address of the page with the captcha: http(s), up to 2048 characters, a public site.
incapsulaScriptUrlstringrequired- Path of the Incapsula resource script. One line of text, up to 2048 characters.
incapsulaCookiesstringrequired- The current
incap_ses_*andvisid_incap_*cookies. One line of text, up to 8192 characters. reese84UrlEndpointstring- URL the Reese84 data is posted to. One line of text, up to 2048 characters.
userAgentstring- User-Agent of the browser that will use the answer, up to 512 characters.
proxyTypestringhttp(default),https,socks4orsocks5.proxyAddressstringrequired- IP address or host name of the proxy. Private and local addresses are rejected.
proxyPortintegerrequired- Proxy port, 1–65535.
proxyLoginstring- Proxy login, up to 256 characters. Stored encrypted.
proxyPasswordstring- Proxy password, up to 256 characters. Stored encrypted.
Request#
A IncapsulaTask task:
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "IncapsulaTask",
"websiteURL": "https://example.com/login",
"incapsulaScriptUrl": "_Incapsula_Resource?SWJIYLWA=719d34d31c8e3a6e6fffd425f7e032f3",
"incapsulaCookies": "incap_ses_1166_2930313=…; visid_incap_2930313=…",
"proxyType": "http",
"proxyAddress": "203.0.113.10",
"proxyPort": 8080,
"proxyLogin": "user",
"proxyPassword": "pass"
}
}Response#
getTaskResult once the task is solved:
{
"errorId": 0,
"status": "ready",
"solution": {
"domains": {
"https://example.com": {
"cookies": {
"___utmvc": "…; Max-Age=31536000; Path=/; Secure"
}
}
},
"headers": {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36"
},
"userAgent": ""
},
"cost": "0.003000",
"ip": "198.51.100.7",
"createTime": 1793370000,
"endTime": 1793370012,
"solveCount": 1
}2Captcha in.php#
The same task through the 2Captcha API: method=incapsula, parameters → task fields:
| in.php | task |
|---|---|
pageurl | websiteURL |
incapsula_script_url | incapsulaScriptUrl |
incapsula_cookies | incapsulaCookies |
reese84_url_endpoint | reese84UrlEndpoint |
useragent | userAgent |
res.php returns the solution as a JSON object (in request with json=1).