Cookies

Diese Website benutzt Cookies, die für den technischen Betrieb der Website erforderlich sind. Sie haben die Möglichkeit das automatische Einbinden von Videos von externen Seiten, wie YouTube oder Discord zu erlauben.



Warning: Undefined array key "PHPSESSID" in /var/www/vhosts/themarcraft.de/v3.themarcraft.de/de/themarcraft/cms/Alert.php on line 81

Warning: Undefined array key "PHPSESSID" in /var/www/vhosts/themarcraft.de/v3.themarcraft.de/de/themarcraft/cms/Alert.php on line 81

Domain Check


Source Code:


<?php
if (isset($_POST['domain']) && isset($_POST['tld'])){
    if(
preg_match('/\Ahttps?:\/\/([-\w\.]+)+(:\d+)?(\/([\w\/_\.]*(\?\S+)?)?)?\Z/''http://'.$_POST['domain']) && !empty($_POST['domain']) && !empty($_POST['tld']))
    {
        
$whois=array();
        
$whois['.de']['server']='whois.denic.de';
        
$whois['.de']['string']='Status: free';
        
$whois['.com']['server']='whois.crsnic.net';
        
$whois['.com']['string']='No match for';
        
$whois['.net']['server']='whois.crsnic.net';
        
$whois['.net']['string']='No match for';
        
$whois['.org']['server']='whois.publicinterestregistry.net';
        
$whois['.org']['string']='NOT FOUND';
        
$whois['.info']['server']='whois.afilias.net';
        
$whois['.info']['string']='NOT FOUND';
        
$whois['.biz']['server']='whois.nic.biz';
        
$whois['.biz']['string']='Not found';
        
$whois['.ag']['server']='whois.nic.ag';
        
$whois['.ag']['string']='NOT FOUND';
        
$whois['.am']['server']='whois.nic.am';
        
$whois['.am']['string']='No match';
        
$whois['.as']['server']='whois.nic.as';
        
$whois['.as']['string']='Domain Not Found';
        
$whois['.at']['server']='whois.nic.at';
        
$whois['.at']['string']='nothing found';
        
$whois['.be']['server']='whois.dns.be';
        
$whois['.be']['string']='Status:    AVAILABLE';
        
$whois['.cd']['server']='whois.cd';
        
$whois['.cd']['string']='No match';
        
$whois['.ch']['server']='whois.nic.ch';
        
$whois['.ch']['string']='not have an entry';
        
$whois['.cx']['server']='whois.nic.cx';
        
$whois['.cx']['string']='Status: Not Registered';
        
$whois['.dk']['server']='whois.dk-hostmaster.dk';
        
$whois['.dk']['string']='No entries found';
        
$whois['.it']['server']='whois.nic.it';
        
$whois['.it']['string']='Status:             AVAILABLE';
        
$whois['.li']['server']='whois.nic.li';
        
$whois['.li']['string']='do not have an entry';
        
$whois['.lu']['server']='whois.dns.lu';
        
$whois['.lu']['string']='No such domain';
        
$whois['.nu']['server']='whois.nic.nu';
        
$whois['.nu']['string']='NO MATCH for';
        
$whois['.ru']['server']='whois.ripn.net';
        
$whois['.ru']['string']='No entries found';
        
$whois['.uk.com']['server']='whois.centralnic.com';
        
$whois['.uk.com']['string']='No match for';
        
$whois['.eu.com']['server']='whois.centralnic.com';
        
$whois['.eu.com']['string']='No match';
        
$whois['.ws']['server']='whois.nic.ws';
        
$whois['.ws']['string']='No match for';

        
$domain=str_replace('www.'''$_POST['domain']);

        
$report '';
        
$check=fsockopen($whois[$_POST['tld']]['server'], 43);
        
fputs($check$domain.$_POST['tld']."\r\n");
        while(!
feof($check))
        {
            
$report=$report.fgets($check128);
        }
        
fclose($check);
        if(
str_contains($report$whois[$_POST['tld']]['string']))
        {
            
?>
            <div class="container mt-3 alert alert-success" title="<?= $report ?>">
            <?php
            
print('Die Domain <b>'.$_POST['domain'].$_POST['tld'].'</b> ist frei');
        }
        else
        {
?>
                <div class="container mt-3 alert alert-danger" title="<?= $report ?>">
                    <?php
             
print('Die Domain <b>'.$_POST['domain'].$_POST['tld'].'</b> ist belegt');
        }
?></div>
<?php
    
}
}
?>
<div class="content container">
    <h2>Domain Check</h2>
    <form method="post" action="?" class="mt-3">
        <div class="input-group">
            <input class="form-control" type="text" style="width: 60%" required name="domain" placeholder="domain" value="<?= $_POST['domain'] ?? "" ?>">
            <select class="form-select" aria-label="Domain Endung auswählen" name="tld" required>
                <option value="<?= $_POST['tld'] ?? "" ?>"><?= $_POST['tld'] ?? "Wähle eine TLD" ?></option>
                <option value=".de">.de</option>
                <option value=".com">.com</option>
                <option value=".net">.net</option>
                <option value=".org">.org</option>
                <option value=".info">.info</option>
                <option value=".biz">.biz</option>
                <option value=".ag">.ag</option>
                <option value=".am">.am</option>
                <option value=".at">.at</option>
                <option value=".be">.be</option>
                <option value=".cd">.cd</option>
                <option value=".cx">.cx</option>
                <option value=".dk">.dk</option>
                <option value=".it">.it</option>
                <option value=".lu">.lu</option>
                <option value=".nu">.nu</option>
                <option value=".ru">.ru</option>
            </select>
            <input type="submit" value="Abfragen" class="btn btn-primary">
        </div>
    </form>
</div>
                <hr class="m-3">
<div class="container rounded mt-3" style="background-color: white">
    <h4 style="color: black" class="m-0">Source Code:</h4>
    <hr class="m-0" style="color: black">
<?php
echo highlight_string((file_get_contents("pages/domaincheck.php")), true);
?>
</div>
Folge mir