stormwall
A library to help bypass stormwall protected websites.
Install
npm install stormwall
Quick Example
const axios = require('axios');
const { CookieJar } = require('tough-cookie');
const { isProtectedByStormwall, getStormwallCookie } = require('stormwall');
(async () => {
try {
const url = 'https://stormwall-protected-url.com';
let response = await axios.get(url);
if (isProtectedByStormwall(response.data)) {
const jar = new CookieJar();
const cookie = getStormwallCookie(response.data);
jar.setCookieSync(cookie, url);
response = await axios.get(url, {
headers: {
Cookie: jar.getCookieStringSync(url)
}
});
}
console.log(response.data);
} catch (error) {
console.log(error);
}
})();
NOTE: Keep your stormwall cookie to reuse it otherwise you'll get blocked by stormwall.
API
isProtectedByStormwall
const { isProtectedByStormwall } = require('stormwall');
const url = 'https://stormwall-protected-url.com';
const { data: body } = await axios.get(url);
const isProtected = isProtectedByStormwall(body);
console.log(isProtected);
getStormwallCookie
const { getStormwallCookie } = require('stormwall');
const url = 'https://stormwall-protected-url.com';
const { data: body } = await axios.get(url);
const cookie = getStormwallCookie(body);
console.log(cookie);