banner
NCC-17039

NCC-17039

欢迎来到NCC-17039的历史数据库!请随便参观,无需多言哦。
email
telegram
bilibili
douban

Use Cloudflare to speed up web access

1. Why is it needed?#

Our site's servers are all established on overseas servers, so at night, international lines become congested, leading to poor network access. Now, using the completely free WARP can perfectly solve this issue.

When you need to access academic websites like Google, you can use Cloudflare WARP to accelerate web access, and your IP will not be randomly changing.

The free traffic is obtained by utilizing Cloudflare WARP's offer of "inviting new users to register for WARP+ traffic" (the actual usage quality is consistent with the paid version).

Although we can enjoy free usage permanently, all services provided by Cloudflare are of very high quality and free; capable friends can still pay to support Cloudflare!

2. Installation and Usage#

1. Mobile Devices#

1.1 Installation#

The operation for iPhone, iPad, and Android is basically the same.

Cloudflare WARP is not listed in the domestic APPSTORE, so you need to log in with an Apple ID from another country to install it.

Click the link to install

‎1.1.1.1: Faster Internet
Or use this link to download

After installation, first click the middle button to connect for the first time. Once connected, temporarily turn off the service.

1.2 Usage: Increase Traffic#

At this point, we return to the homepage and find that we have no traffic. This is when we need to use the method of inviting users to obtain traffic. Of course, it doesn't mean you really have to invite other friends to register to get traffic. Due to the very loose registration mechanism of WARP+, almost any device can register freely. Therefore, we will use a Python script to automatically register and obtain invitation traffic rewards, which can be run on a cloud service platform.

Copy the following ID.

ID acquisition operation diagram

In the upper window, click the middle start button, and after a few seconds, "Enter the WARP+ ID:" will appear. Paste the device ID you just copied into the window and press Enter to start running the script.

2. Computer Devices#

The operation for Windows, MacOS, and Linux is basically the same. This tutorial uses the Windows client for demonstration.

Click the link to install the Cloudflare WARP computer client:

https://1111-releases.cloudflareclient.com/windows/Cloudflare_WARP_Release-x64.msi

Windows client

https://1111-releases.cloudflareclient.com/mac/Cloudflare_WARP.zip

macOS client

Cloudflare Package Repository

After installation, find the small cloud icon in the system tray and click to open it.

Untitled

Then turn on the middle button, and after it shows connected, turn the button off again. Then click the small gear button in the lower right corner to open "Preferences" and copy the device ID.

Untitled 1

Then paste the ID into the window below and press Enter to run.

You may feel that this method is too inefficient, as you must keep the window open to execute tasks; next, I will introduce scheduled tasks.

3. Efficiently Brush Traffic#

1. GitHub Action#

First, you need to register a GitHub account.

GitHub: Let’s build from here

1.1 Create a New Repository#

New repository illustration

Create a new repository as shown in the picture, and select the type as "Private"; then copy the script content below and save it to the warp.py file.

import urllib.request
import json
import datetime
import random
import string
import time
import os
import sys
os.system("title WARP-PLUS-CLOUDFLARE By ALIILAPRO")
os.system('cls' if os.name == 'nt' else 'clear')
print('Getting WARP+ Traffic on Github Actions')
referrer = os.environ["DEVICEID"]
def genString(stringLength):
	try:
		letters = string.ascii_letters + string.digits
		return ''.join(random.choice(letters) for i in range(stringLength))
	except Exception as error:
		print(error)
def digitString(stringLength):
	try:
		digit = string.digits
		return ''.join((random.choice(digit) for i in range(stringLength)))
	except Exception as error:
		print(error)
url = f'https://api.cloudflareclient.com/v0a{digitString(3)}/reg'
def run():
	try:
		install_id = genString(22)
		body = {"key": "{}=".format(genString(43)),
				"install_id": install_id,
				"fcm_token": "{}:APA91b{}".format(install_id, genString(134)),
				"referrer": referrer,
				"warp_enabled": False,
				"tos": datetime.datetime.now().isoformat()[:-3] + "+02:00",
				"type": "Android",
				"locale": "es_ES"}
		data = json.dumps(body).encode('utf8')
		headers = {'Content-Type': 'application/json; charset=UTF-8',
					'Host': 'api.cloudflareclient.com',
					'Connection': 'Keep-Alive',
					'Accept-Encoding': 'gzip',
					'User-Agent': 'okhttp/3.12.1'
					}
		req         = urllib.request.Request(url, data, headers)
		response    = urllib.request.urlopen(req)
		status_code = response.getcode()
		return status_code
	except Exception as error:
		print(error)

g = 0
b = 0
while True:
	result = run()
	if result == 200:
		g = g + 1
		os.system('cls' if os.name == 'nt' else 'clear')
		print("")
		print("Getting WARP+ Traffic")
		print("")
		animation = ["[■□□□□□□□□□] 10%","[■■□□□□□□□□] 20%", "[■■■□□□□□□□] 30%", "[■■■■□□□□□□] 40%", "[■■■■■□□□□□] 50%", "[■■■■■■□□□□] 60%", "[■■■■■■■□□□] 70%", "[■■■■■■■■□□] 80%", "[■■■■■■■■■□] 90%", "[■■■■■■■■■■] 100%"]
		for i in range(len(animation)):
			time.sleep(0.5)
			sys.stdout.write("\r[+] Preparing... " + animation[i % len(animation)])
			sys.stdout.flush()
		print(f"\n[-] WORK ON ID: {referrer}")
		print(f"[:)] {g} GB has been successfully added to your account.")
		print(f"[#] Total: {g} Good {b} Bad")
		print("[*] After 18 seconds, a new request will be sent.")
		time.sleep(18)
	else:
		b = b + 1
		os.system('cls' if os.name == 'nt' else 'clear')
		print("")
		print("Getting WARP+ Traffic")
		print("")
		print("[:(] Error when connecting to server.")
		print(f"[#] Total: {g} Good {b} Bad")

1.2 Configure GitHub Actions#

  1. Create a private repository with a name of your choice;
  2. Upload warp.py to this repository;
  3. Go to Actions, click set up a workflow yourself;
  4. Copy and paste the following content, and click the green Start commit.
name: 'Getting WARP+ Traffic'

on:
  workflow_dispatch:
  push:
    branches:
     - main
  schedule:
    - cron: '33 8 * * *'

jobs:
  auto_getting_traffic:
    runs-on: ubuntu-latest
    steps:
      - name: 'Checking'
        uses: actions/checkout@v2

      - name: 'Setting Python'
        uses: actions/setup-python@v1
        with:
          python-version: '3.x'

      - name: 'Getting WARP+ Traffic'
        env:
          DEVICEID: ${{ secrets.DEVICEID }}
        run: python warp.py

1.3 Configure Secret#

Find settings, secrets, and create a new secret.

Untitled 1

Name it DEVICEID, paste the device ID you copied earlier below, and finally click Add secret to add it.

1.4 Start Action#

Untitled 2

Go to Actions, click Getting WARP+ Traffic, and Run workflow to start.

Untitled 3

2. Telegram#

Since WARP+ traffic is tied to the license key used by the user, simply changing to a license key with a large amount of traffic allows you to use a lot of traffic.

In the previous tutorial, we have successfully brushed a certain amount of traffic, and now we need to use this traffic to obtain a license key.

Download and install Telegram, log in to your TG account, and if you don't have an account, you need to register.

Telegram has been blocked by the firewall in China, so if you don't have other scientific internet tools, you need to enable WARP+ to use it normally. The traffic you just obtained can now be put to use.

Telegram – a new era of messaging

TG official website

  • Open link in the browser and add the bot in Telegram.
  • Follow the TG channel Warp Plus as required by the bot.
  • Send the message to the bot: 「/generate」.
  • Complete the arithmetic verification required by the bot to obtain the license key.
  • Open the WARP APP, click the top right to enter the settings interface.
  • Go to Account - Key, click "Change Key".
  • Enter the obtained license key and click save in the top right corner.

4. Unlimited Traffic#

Unlimited traffic uses Cloudflare Zero Trust team accounts.

Open the Cloudflare console and enter the team account:

Enter team account

When entering for the first time, select the free plan, which will force you to bind a payment method, supporting bank cards and PayPal; after successful binding, go to the Devices option and click Connect a device.

Enter the suffix of your email, using Gmail as an example, then click Save (this email suffix doesn't matter, you can add and modify it freely later). In the settings under Devices, you can switch and add email suffix rules at will.

After successfully changing, open the client → menu → account → connect to Zero Trust account, fill out the form as required, and you will have permanent unlimited traffic for Cloudflare Warp!

You can also use my team account: ncc17039

Disadvantages of WARP+#

The original intention of Cloudflare WARP+ is: when the network in your area is not very good, turning on WARP+ can automatically find and connect to the nearest Cloudflare data center—this can reduce the latency between your device and Cloudflare and improve browsing speed.

Therefore, when you access websites hosted by Cloudflare, it can know that your current IP address is in China; however, when not using websites hosted by Cloudflare, it cannot know your source IP address.

Thus, streaming platforms like Netflix and Paramount are unavailable, as well as certain websites that block access from mainland China IPs. Therefore, you need to use other means to watch certain streaming platforms.

Using Cloudflare WARP+ can still access most websites. You basically don't have to worry.

5. Other Methods Besides WARP#

Besides using Cloudflare WARP, there is another method, but I still recommend using Cloudflare WARP, after all, it is a big company!

This software takes advantage of the official offer of "new user registration for a free month of usage" to obtain free traffic.

Click the link below to install the client:

Moakt Email || Temporary Email Professional Service

  1. Double-click to run the program.
  2. Click register (skip this step if you already have an account); use the temporary email account obtained from the link above and copy-paste it; enter your password (no need to fill in the invitation code).
  3. Click login.
  4. Find the white whale icon in the system taskbar and right-click; at this point, we can open the service at the top of the menu bar, and that’s it!

When the account expires, just use the temporary email to register a new account.

The downside is that the IP address will change frequently, and you cannot change regions, etc.

6. Notes#

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.