Domain Parking PHP Script with Google ReCaptcha

Documentation for the Domain Parking Script 1.0.0


Folder Structure

When you purchase the product, you will get all files nicely sorted in a folder.

  • root
    • app/
    • config.php
    • index.php

The "app" folder contains all the logic of the script. You don't need to change any of the files inside and it's highly recommended not to do this!

The main Configuration File

Before you can use the domain parking script, you need to configure the file "config.php". The script is set via the configuration file named "config.php". The file contains a PHP array, which can be easily edited with a text editor, or better with a code editor like Atom or Notepad++.

Important: When saving the file, make sure that the file encoding UTF-8 is not changed.
$config = [
    'domainName' => '',
    'senderEmail' => '',
    'adminEmail' => '',
    'browserTitle' => 'Buy this domain right now',
    'domainTitle' => 'BUY THIS DOMAIN',
    'domainDescription' => '',
    'formTitle' => 'Fill out this form please:',
    'footerText' => '© 2019-2021 Domain Parking Script 1.0.0',
    'buttonText' => 'LET'S GO!',
    'formLabelName' => '',
    'formLabelEmail' => '',
    'formLabelMessage' => '',
    'formSuccessMessage' => '',
    'emailSubject' => 'New request for: ###DOMAIN###',
    'domains' => [
        '' => [
            'captchaSiteKey' => '932f8OFEHFWJEFJEWFEWFWKEFJEWFWEF-Sv2y-233232x',
            'captchaSecretKey' => '8FJefkwfwefwefwFEFFFEFEF-h_p1hK7dybeLF6Gh',
        '' => [
            'captchaSiteKey' => '932f8OFEHFWJEFJEWFEWFWKEFJEWFWEF-Sv2y-233232x',
            'captchaSecretKey' => '8FJefkwfwefwefwFEFFFEFEF-h_p1hK7dybeLF6Gh',

Configuration values explained

Have a look at the table with the values, so you know which parameters are necessary for the script to work.

domainNameIf you leave this parameter empty, the script detects domains automatically. If you enter a domain here, the script will only recognize the given domain name.
senderEmailyesEmail address of the form sender
adminEmailyesEmail address of the form reciever / admin
browserTitleTitle of the browser tab / page title for SEO
domainTitleText to display with the domain name, like "THIS DOMAIN IS FOR SALE" for instance. In the default template, the text is right above the domain name.
domainDescriptionAdds a description. In the default template, the text is displayed between the domain name and the request form.
formTitleAdds an extra title for the form. You can leave this parameter empty.
footerTextAdds a centered text for the footer, like a copyright note. You can leave this parameter empty.
buttonTextyesText of the send button.
formLabelNameyesField label of the name form field This value is also used for the labels in your email.
formLabelEmailyesField label of the email form field. This value is also used for the labels in your email.
formLabelMessageyesField label of the message form field. This value is also used for the labels in your email.
formSuccessMessageyesText of the message after successfully sending the form.
emailSubjectyesSubject of the email for the form receiver. You can add the current domain to your text by adding the marker###DOMAIN###
domainsyesContains an array of domain settings for Google ReCaptcha. You don't need to enter different Google keys for each domain. In Google you can set up multiple domains per Property, so that you can use the same keys for all domains. But it's very important that each domain has it's own entry. Otherwise the script will not work.

Upload the Script

To use the script, you need to upload the contents of the folder to a folder in your web space and then redirect at least one domain to it. It is important that the domains really point to the folder as root folder and are not only forwarded via meta tag or redirect. Otherwise the script will not recognize the domains.

Using an FTP-Client

You can use an FTP-Client like FileZilla to upload the Script to your web server.

Code PHP
Last update: 30.6.2023 16:19