Giter VIP home page Giter VIP logo

cloudflare_batch_add_domain's Introduction

cloudflare批量添加域名及添加dns解析记录php脚本

原理: 程序会循环读取domain.txt的每一行通过cloudflare接口添加,并将record.txt中的记录循环读取添加到每一个域名中。 接口参考:https://api.cloudflare.com/

目前支持A、CNAME记录批量添加。

配置方法:

1、首先修改run.php中 $header = array( "X-Auth-Email:[email protected]", "X-Auth-Key:xxx", "Content-Type:application/json" );

X-Auth-Email及X-Auth-Key参数从cloudflare后台中查看。其它部分代码不需修改。

2、domain.txt为待加入的域名列表,一行一个,文件编码为utf-8,格式为windows(cr lf)格式(务必)。推荐用notepad++编辑。

3、record.txt为待加入的解析列表。一行一个。文件编码为utf-8,格式为windows(cr lf)格式(务必)。每行分3列,以逗号分隔,第一列为主机记录,如www,第二列为记录类型,如A记录,第三列为值,如114.114.114.114

4、推荐在命令行中执行 php run.php,不要在浏览器中访问。

cloudflare_batch_add_domain's People

Contributors

lstty avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.