Cafemmo Club
← Quay lại danh sách

Change ip trong Cloudflare bằng PHP

hutieumi18/08/20171582 lượt xem5 bình luận

Code này dùng để thay đổi Ip cho nhiều website 1 lúc trong cloudflare. [CODE]<?php

set_time_limit(999999);

$domainurl = array( "xxxxx.net", "bbbbbb.net" );

$token = 'aaaaaa'; //https://www.cloudflare.com/my-account $email = 'kkkkk@gmail.com'; $new_ip = '149.202.219.xx; //Gets server's IP Address $old_ip = '149.202.223.yy'; //Gets DNS's IP Address

foreach ($domainurl as $domain) { $hostname = $domain; //Gets current hostname

if ( $new_ip !== $old_ip ) {// iIf the IP addresses are the same, we don't need to make any changes $api_url = 'https://www.cloudflare.com/api_json.html'; $ch = curl_init(); curl_setopt( $ch, CURLOPT_URL, $api_url ); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); $body = array( 'a' => 'rec_load_all\

Bình luận

Đang tải...

Đang kiểm tra đăng nhập...

Change ip trong Cloudflare bằng PHP · Cafemmo Club