Jump to content

Recommended Posts

Hi,

I want to make a website like domaintools.com

 

I have not yet reached to that limit of knowledge .

 

How to do that ?

I want its host name, its name servers list, IP, WHOIS, domain registrar, thumbnail photo, Domain created date, last update date, expiry date.

 

Plz...need help

Link to comment
https://forums.phpfreaks.com/topic/158911-how-to-make-website-like-domaintoolscom/
Share on other sites

You need all programs available on your server that can perform the tasks i.e WHOIS from the CLI, PHP itself has some functions to utilize such as DNS record lookups, look into these. If you use PHP to create the website then you need the ability to execute the server apps through PHP and parse the results to display to the user.

 

i.e.

// whois lookup
exec("whois xyz.com", $output);

Thanks

I want to make it like www.samplewhois.com/index.php?domain=somewebsite.com

 

Then by making .htaccess, I want it like

www.samplewhois.com/somewebsite.com

 

Is it possible ?

 

No. I'm afraid they created that website with a magic wand, which has unfortunately since been broken. It's therefore impossible to create something similar.

  • 1 month later...

Hi friends,

I am back, I was busy and out of town for few days.

 

I have 2 pages

index.php

domains.php

 

Here is the Code of index.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style1 {
font-size: 24px
}
-->
</style>
</head>

<body>
<p> </p>
<p> </p>
<p> </p>
<form id="form1" name="form1" method="post" action="index.php">
  <div align="center" class="style1">Enter Domain Name :
    <label>
    <input name="domainnamebox" type="text" id="domainnamebox" size="35" />
    </label>
    <label>
    <input type="submit" name="submit" id="submit" value="Submit" />
    </label>
  </div>
</form>
<p align="center">E.g. google.com</p>
</body>
</html>

 

Code of domains.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<p>WHOIS Record for </p>
<p>Front Page Information :</p>
<table width="591" border="0" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
  <tr>
    <td width="108">Website Title</td>
    <td width="473"> </td>
  </tr>
  <tr>
    <td>Meta Discription</td>
    <td> </td>
  </tr>
  <tr>
    <td>Meta Keywords</td>
    <td> </td>
  </tr>
  <tr>
    <td>About Us</td>
    <td> </td>
  </tr>
</table>
<p> </p>
<table width="588" border="0">
  <tr>
    <td width="108">Alexa Ranking</td>
    <td width="470"> </td>
  </tr>
</table>
<p>Registery Date :</p>
<table width="590" border="0">
  <tr>
    <td width="111">Registrar</td>
    <td width="469"> </td>
  </tr>
  <tr>
    <td>Created</td>
    <td> </td>
  </tr>
  <tr>
    <td>Updated</td>
    <td> </td>
  </tr>
  <tr>
    <td>Expires</td>
    <td> </td>
  </tr>
  <tr>
    <td>Status</td>
    <td> </td>
  </tr>
  <tr>
    <td>Name Server</td>
    <td> </td>
  </tr>
  <tr>
    <td>Name Server</td>
    <td> </td>
  </tr>
  <tr>
    <td>Whois Server</td>
    <td> </td>
  </tr>
</table>
<p>Server Data :</p>
<table width="589" border="0">
  <tr>
    <td width="111">Server Type</td>
    <td width="468"> </td>
  </tr>
  <tr>
    <td>IP Address</td>
    <td> </td>
  </tr>
</table>
<p>Whois Record :</p>
<p> </p>
<p>  </p>
</body>

</html>

 

So how can I redirect index.php to domains.php

Like this >

When a person will search for google.com, index.php will redirect it to domains.php?domain=google.com

 

After that considering HEADER , domains.php file will react.

How can I do that ?

Now I have added this code before <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> in index.php

 

 

<?php

isset($_POST['submit']);
$domains = $_POST['domainnamebox'];
if($domains == 0) {
      $iderror;
   } else {
      header('Location: domains.php?domains='.$domains);
   }   
?>

 

When I search for google.com, it goes to index.php, where it should go to domains.php?domains=google.com

 

What I am doing wrong ? Please I need help

 

Hello Sir

I have solved the issue.

 

How can I Fetch the remote Server's Signature,  Name Servers  ?

I am using

$dnsrecord  = dns_get_record("series99.com");

 

On my computer, its showing error.

 

I know how to get  whois record of domain but how to Fetch only Registration Date and Expiry Date ?

Should I use any Java Script ?

I know how to get  whois record of domain but how to Fetch only Registration Date and Expiry Date ?

Should I use any Java Script ?

 

WTF would javascript do for you?

If you know how to fetch the whois record for a domain and store in a variable then it is simple to extract the registration date and expiry date using regex or php's string functions.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.