Skip to content

This script allows users to bypass Cloudflare's rate limits by leveraging multiple Tor instances. It fetches IP addresses through SOCKS proxies, enabling efficient data scraping and API testing without interruptions.

License

Notifications You must be signed in to change notification settings

ujjawalsol/cloudflare_bypass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tor Proxy Script

This project provides a script to fetch IP addresses through multiple Tor instances, effectively bypassing Cloudflare's rate limits. It uses SOCKS5 proxies from multiple Tor instances to rotate IP addresses, making it harder for Cloudflare to block requests from the same IP.

Table of Contents

Prerequisites

Before you begin, ensure you have the following installed on your system:

  • Node.js (version 12 or higher)
  • npm (Node Package Manager)

Installation

  1. Install Node.js: Download and install Node.js from the official website.
  2. Clone the Repository:
    git clone https://github.com/ujjawalsol/cloudflare_bypass.git
    cd cloudflare_bypass

Setting Up Tor

Install Tor:

  • For Windows: Download the Tor Browser from the Tor Project website.
  • For Linux: Install Tor using your package manager. For example:
    sudo apt install tor
  • For macOS: Use Homebrew:
    brew install tor

Start the Tor Service:

  • On Linux/macOS, run:
    tor &
  • On Windows, start the Tor Browser and ensure it is running.

Creating Tor Instances

To create multiple SOCKS proxy instances, you need to configure the torrc file:

  1. Open your torrc file (usually located in /etc/tor/torrc on Linux or C:\Users\<YourUsername>\AppData\Roaming\tor\torrc on Windows).

  2. Add the following lines to create multiple instances:

    SocksPort 9050
    SocksPort 9052
    SocksPort 9054
    SocksPort 9056
    SocksPort 9058
    SocksPort 9060
    SocksPort 9062
    SocksPort 9064
    SocksPort 9066
    SocksPort 9068
    
  3. Restart the Tor service for changes to take effect.

     sudo systemctl restart tor

Installing Dependencies

Navigate to your project directory and install the required packages:

npm install

This command will install all necessary dependencies listed in package.json.

Running the Script

To run the script, use the following command in your terminal:

npm start

Make sure that your Tor service is running before executing this command.

Usage

The script will automatically fetch and print IP addresses from multiple Tor instances. You can monitor the output in your terminal.

Example Output

[2024-11-11T11:21:43.340Z] Updated IPs in this cycle:
Instance 1 (SOCKS Port 9050): New IP is 185.241.208.xxx
Instance 2 (SOCKS Port 9052): New IP is 103.251.167.xxx
Instance 3 (SOCKS Port 9054): New IP is 185.220.101.xxx
Instance 4 (SOCKS Port 9056): New IP is 192.42.116.xxx
Instance 5 (SOCKS Port 9058): New IP is 185.244.192.xxx
Instance 6 (SOCKS Port 9060): New IP is 45.134.225.xxx
Instance 7 (SOCKS Port 9062): New IP is 23.153.248.xxx
Instance 8 (SOCKS Port 9064): New IP is 185.100.87.xxx
Instance 9 (SOCKS Port 9066): New IP is 192.42.116.xxx
Instance 10 (SOCKS Port 9068): New IP is 199.195.250.xx
Current IPs: [
  '185.241.208.xxx',
  '103.251.167.xxx',
  '185.220.101.xxx',
  '192.42.116.xxx',
  '185.244.192.xxx',
  '45.134.225.xxx',
  '23.153.248.xxx',
  '185.100.87.xxx',
  '192.42.116.xxx',
  '199.195.250.xx'
]

Limitations

  • Rate Limiting: While this script helps bypass Cloudflare's rate limits, excessive requests may still lead to blocks.
  • Ethical Use: Always respect the terms of service of websites you are accessing.
  • IP Blocking: Frequent access attempts may lead to IP blacklisting. Consider using rotating proxies for safer operations.

Contributing

Contributions are welcome! If you have suggestions for improvements or want to report issues, please open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

This script allows users to bypass Cloudflare's rate limits by leveraging multiple Tor instances. It fetches IP addresses through SOCKS proxies, enabling efficient data scraping and API testing without interruptions.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published