This PHP script performs a Whois lookup for a given domain name, providing information about the domain's registration details. It can be used in both GUI (web page) and CLI (Command-Line Interface) modes.
-
Place the script on your web server.
-
Access the script through a web browser by navigating to the script's URL.
-
Enter the domain name in the provided input field and submit the form.
-
The Whois information will be displayed on the web page.
http://yoursite.com/example.com
-
Open a terminal or command prompt.
-
Navigate to the directory containing the script.
-
Run the script from the command line by providing the domain name as an argument:
php whois.php example.com
-
The Whois information will be displayed in the terminal.
- The script supports both domain and IP address lookups.
- PHP>8.0 with fsockopen support.
Also, you can use Whois servers listed in this file.
The repository was created by @imseyed and has been published as an open-source project.
GNU GENERAL PUBLIC LICENSE Copyright (C) 2024 - Ali Khalili
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.