This project is designed to bypass protection mechanisms implemented by testcookie-nginx-module.
Works for free hosting providers that use the MyOwnFreeHost service.
Ensure you have Node.js installed, then clone the repository and install dependencies:
-
Open your terminal and clone this repository:
git clone https://github.com/sekedus/bypass-testcookie.git
-
Change to the cloned directory:
cd bypass-testcookie
-
Install the required dependencies:
npm install
npm start
The server will run on http://localhost:3000
by default.
GET /<url>
- Replace
<url>
with the full target URL (e.g.,http://example.com
). - The server will attempt to fetch the page, handle the protection mechanism, and return the content.
Example:
curl "http://localhost:3000/http://protected-site.com"
If the requested page is an HTML page, the server returns a JSON response in the following format:
{
"link": "final_url_after_redirection",
"testcookie_cache": false, // true or false
"headers": { "content-type": "text/html; charset=UTF-8" },
"body": "<html>...</html>"
}
For non-HTML content, the server responds with the raw data and appropriate Content-Type
.
This project is licensed under the GPL-3.0 License.