Developer Center

getWhoisPrivacy() - Whois Protection Status

It is used to check the protection (privacy) of contact information of domain name (Whois). If not supported, an error message appears.

public function getWhoisPrivacy($params=[]){
    $domain     = idn_to_ascii($params["domain"],0,INTL_IDNA_VARIANT_UTS46);

    $details    = $this->api->get_details($domain);
    if(!$details){
        $this->error = $this->api->error;
        return false;
    }

    return $details["is_privacy"] == "on" ? "active" : "passive";
}

Parameters;

  • $params Provides the value of [options] index in the $order variable in the class.

Retrieval Value;

If active, display "active" and display "passive" if passive.

ModifyWhois() - Update Whois purchasePrivacyProtection() - Buy Whois Protection

Do you have any questions?

Feel free to contact us
Contact Us
Copyright © 2024. All Rights Reserved.
Join Our Discord Channel
Top