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.
- Prerequisites
- Installation
- Setting Up Tor
- Creating Tor Instances
- Installing Dependencies
- Running the Script
- Usage
- Limitations
- Contributing
- License
Before you begin, ensure you have the following installed on your system:
- Node.js (version 12 or higher)
- npm (Node Package Manager)
- Install Node.js: Download and install Node.js from the official website.
- Clone the Repository:
git clone https://github.com/ujjawalsol/cloudflare_bypass.git cd cloudflare_bypass
- 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
- On Linux/macOS, run:
tor &
- On Windows, start the Tor Browser and ensure it is running.
To create multiple SOCKS proxy instances, you need to configure the torrc
file:
-
Open your
torrc
file (usually located in/etc/tor/torrc
on Linux orC:\Users\<YourUsername>\AppData\Roaming\tor\torrc
on Windows). -
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
-
Restart the Tor service for changes to take effect.
sudo systemctl restart tor
Navigate to your project directory and install the required packages:
npm install
This command will install all necessary dependencies listed in package.json
.
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.
The script will automatically fetch and print IP addresses from multiple Tor instances. You can monitor the output in your terminal.
[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'
]
- 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.
Contributions are welcome! If you have suggestions for improvements or want to report issues, please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE.md file for details.