Install IP Lookup Script


This guide will walk you through the process of uploading and installing a PHP script to your web server. By the end of this guide, you should have your PHP script successfully installed and configured.


  • A web hosting account that supports PHP.
  • FTP access to your web server or a web-based file manager provided by your hosting provider.
  • A zipped file containing your PHP script.
  • A text editor (like Notepad for Windows, TextEdit for macOS, or any code editor).


  • PHP 8.x or PHP 7.x
  • Storage & Public Directories writable.
  • BCMath PHP Extension
  • Ctype PHP Extension
  • Fileinfo PHP Extension
  • JSON PHP Extension
  • Mbstring PHP Extension
  • OpenSSL PHP Extension
  • PDO MySQL PHP Extension
  • Tokenizr PHP Extension
  • XML PHP Extension
  • cURL PHP Extension
  • INTL PHP Extension
  • Affiliate account with Thexyz
  • Affiliate account with Shareasale
  • Godaddy API Key
  • Google Recapture
  • API key
  • API key

Step-by-step Guide

1. Uploading the PHP Script to Your Web Server:
Using FTP:

Launch your FTP client (e.g., FileZilla, Cyberduck).
Connect to your web server using the credentials provided by your hosting provider.
Navigate to the directory where you'd like to install the PHP script.
Upload the zipped file containing your PHP script to this directory.

Using a Web-based File Manager:

Log into your web hosting control panel.
Navigate to the file manager.
Go to the directory where you'd like to install the PHP script.
Use the "Upload" option to upload the zipped file.
2. Unzipping the Files:
Using FTP: Most FTP clients do not support unzipping files directly on the server. You'd need to unzip the file on your computer and then re-upload the extracted files to your server.

Locate and open the site-config.php file.

Make the following changes:

1. Site Name:

$site_name = "Your Site Name";

Here, you need to replace "Your Site Name" with the actual name you'd like to display for your website.

For instance, if your website's name is "My Cool Website", then you'd edit it as:

$site_name = "My Cool Website";

2. Ad Code:

$ad_code = "
    <!-- Your Ad Code Here -->

If you have any advertisement code you'd like to integrate into your website (e.g., Google AdSense code, or any other ad network code), replace <!-- Your Ad Code Here --> with that ad code.

3. Google Analytics:

$google_analytics_code = "
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src=''></script>
Replace YOUR-GA-MEASUREMENT-ID in both places with your actual Google Analytics Measurement ID. This ID usually starts with UA- followed by a series of numbers.

4. Google reCAPTCHA Keys:

$recaptcha_site_key = "6Lcq51YfAAAAAFmL9Ov2U-DEkXLYkLvohkzUf9F2";
$recaptcha_secret_key = "6Lcq51YfAAAAAISuJtib6QvBkl5_1vLRUwAKOuWl";

Replace the placeholder values with the actual reCAPTCHA keys you get from the Google reCAPTCHA website.

5. Social Media Links:

Replace the placeholder URLs with your actual social media profile URLs:

$facebook_link = "";
$twitter_link = "";
//... and so on.

6. Affiliate IDs:

$namecheap_aff = "xkb4j3";
$thexyz_aff = "1";

Replace the placeholder values with your actual affiliate IDs provided by Namecheap, Thexyz, and any other affiliate programs you're working with.

7. API Keys:

$whoisjson_api = "252202a85b3968c4f23df6ae3670187b14f9e9f9c43c940d24897cbd7955d188";
$godaddy_api = "252202a85b3968c4f23df6ae3670187b14f9e9f9c43c940d24897cbd7955d188";
$whoisxmlapi_api = "at_37hskrdJynCZ1YrxCnqlRQcpggAC4";

Replace the above placeholders with the actual API keys you receive from these services. You can find some links to the services so you can sign up for an account and generate your own unique affiliate IDs.

Wrapping Up

You've now successfully uploaded, extracted, and configured your PHP script on your web server. It's essential to test the functionality of the script to ensure everything works as expected. Navigate to the URL where you uploaded the script and test the features.

Note: Always keep your API keys and sensitive information confidential. Sharing this document with others might expose important credentials. Regularly back up your configurations and consider encrypting sensitive information for added security.