Use Cloudflare Snippets to Build Your Free Forever VPN (V2Ray, Vless,)

This post is based on Github project cf_snippets_proxy: https://github.com/jackrun123/cf_snippets_proxy

 

What is Cloudflare Snippets

Cloudflare Snippets provide a powerful and flexible way to customize the behavior of your website or application using short pieces of JavaScript code. With Snippets, you can modify HTTP response headers, implement  validation, perform complex , and much more.
https://developers.cloudflare.com/rules/snippets/

Availability

Free Pro Business Enterprise

Availability

No

Yes

Yes

Yes

Number of snippets

0 25 50 300

Number of snippet subrequests

0 2 3 5

Limits

Cloudflare Snippets are designed for fast, lightweight edge logic. The following limits apply:

Description All plans
Maximum execution time 5 ms
Maximum memory 2 MB
Maximum total package size 32 KB

Steps

1 Create / Sign into your own free and permanet Cloudflare account

2 Get your own free and permanent domain and added into Cloudflare

Some free domains might not have free Snippets service. You might need to try other domains. 

3 Get your free js code from :https://github.com/jackrun123/cf_snippets_proxy/blob/main/snippets.js

Github project: https://github.com/jackrun123/cf_snippets_proxy/

4 Change code 

Change uuid:

(Optional) Change DEFAULT_PROXY_IP: // 反向代理IP,无法访问时通过代理访问

const DEFAULT_PROXY_IP = 'bestproxy.030101.xyz:443'; // 来源:https://ipdb.030101.xyz/bestdomain/

(Optional) Change BEST_DOMAINS: // 优选域名/IP

from : 

  • const BEST_DOMAINS = ['bestcf.030101.xyz:443', 'japan.com:443', 'www.visa.com.sg:443', "www.visa.com.hk:443", "icook.hk:443", "icook.tw:443"]

to :

  • const BEST_DOMAINS = ['bestcf.030101.xyz:443', 'japan.com:443', 'www.visa.com.sg:443', "www.visa.com.hk:443", "icook.hk:443", "icook.tw:443", 'cloudflare.182682.xyz', 'cloudflare.182682.xyz', 'speed.marisalnc.com', 'speed.marisalnc.com', 'freeyx.cloudflare88.eu.org', 'bestcf.top','cdn.2020111.xyz', 'cfip.cfcdn.vip', 'cf.0sm.com', 'cf.090227.xyz', 'cf.zhetengsha.eu.org', 'cloudflare.9jy.cc', 'cf.zerone-cdn.pp.ua', 'cfip.1323123.xyz', 'cnamefuckxxs.yuchen.icu', 'cloudflare-ip.mofashi.ltd', '115155.xyz', 'cname.xirancdn.us', 'f3058171cad.002404.xyz', '8.889288.xyz', 'cdn.tzpro.xyz','cf.877771.xyz', 'xn--b6gac.eu.org']

CloudFlare优选IP网站: 

  • http://ip.flares.cloud/
  • https://stock.hostmonit.com/CloudFlareYes

Note: 所谓优选 IP 指的是通过有意挑选 Cloudflare 数据中心 IP 地址实现最佳连接,而不是默认使用 Cloudflare 分配的任播 (Anycast) 地址。

https://www.cloudflare.com/terms/ 2.2.1 b
  • (b) interfere with, disrupt, alter, or modify the Services or any part thereof, or create an undue burden on the Services or the networks (including Cloudflare’s peering partners’ networks) or services connected to the Services, including, but not limited to, causing (whether directly or indirectly) traffic for your Cloudflare-proxied domain to be sent to an IP address that was not assigned by Cloudflare for the domain;

CloudFlare 优选域名:

time.cloudflare.com
shopify.com
time.is
icook.hk
icook.tw
ip.sb
japan.com
malaysia.com
russia.com
singapore.com
skk.moe
www.visa.com
www.visa.com.sg
www.visa.com.hk
www.visa.com.tw
www.visa.co.jp
www.visakorea.com
www.gco.gov.qa
www.gov.se
www.gov.ua
www.digitalocean.com
www.csgo.com
www.shopify.com
www.whoer.net
www.whatismyip.com
www.ipget.net
www.hugedomains.com
www.udacity.com
www.4chan.org
www.okcupid.com
www.glassdoor.com
www.udemy.com
www.baipiao.eu.org
cdn.anycast.eu.org
cdn-all.xn--b6gac.eu.org
cdn-b100.xn--b6gac.eu.org
xn--b6gac.eu.org
edgetunnel.anycast.eu.org
alejandracaiccedo.com
nc.gocada.co
log.bpminecraft.com
www.boba88slot.com
gur.gov.ua
www.zsu.gov.ua
www.iakeys.com
edtunnel-dgp.pages.dev
www.d-555.com
fbi.gov

Note: https://www.cloudflare.com/terms/ restrictions 2.2.1:

  • (f) cover or obscure any page or part of the Services via HTML/CSS, scripting, or any other means;
  • (j) use the Services to provide a virtual private network or other similar proxy services

https://www.cloudflare.com/terms/  

  • 8. Termination of Use; Discontinuation and Modification of the Service

5 Deploy Code

6 Test Code

Videos

 

版权声明:
作者:zhangchen
链接:https://www.techfm.club/p/226932.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>