Skip to content

sekedus/bypass-testcookie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bypass testcookie

This project is designed to bypass protection mechanisms implemented by testcookie-nginx-module.

Works for free hosting providers that use the MyOwnFreeHost service.

Installation

Ensure you have Node.js installed, then clone the repository and install dependencies:

  1. Open your terminal and clone this repository:

    git clone https://github.com/sekedus/bypass-testcookie.git
  2. Change to the cloned directory:

    cd bypass-testcookie
  3. Install the required dependencies:

    npm install

Usage

Start the Server

npm start

The server will run on http://localhost:3000 by default.

API Endpoints

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"

Response Format

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.

Credits

License

This project is licensed under the GPL-3.0 License.

Releases

No releases published

Packages

No packages published