January 10

PHP integration in Сloaking.House

Hello 👋 In this guide, we will break down in detail how to integrate a PHP cloaking file into your hosting and domain.

We will go step by step through all stages: from preparing the hosting to configuring cloaking and testing the link.

This method is universal – it works for any traffic source and does not require experience or complex technical knowledge. Everything is simple, accessible, and effective.

Ready? Let's get started! 🚀

For this method, you will need:

  • An account at Cloaking.House
  • Hosting that supports PHP version 7.4 and above
  • A domain name
  • A white page (a page that will be used as the white page)

Let's start with the basic step: installing your white page on the hosting and domain.

Open your hosting’s file manager (usually found in the hosting control panel).

Upload the pre-prepared white page to it.

The format of your page can be either PHP or HTML – it does not matter for cloaking to work. In this example, we use an HTML white page.

Now your white page is installed and ready for further configuration!

After uploading the white page, open your domain name in the browser and make sure the page is displayed and working correctly. If the white page loads without errors, you can proceed to the next step.

At this stage, rename your index.html file to another name. For example, you can name it site.html. If your file is in PHP format, it should also be renamed while keeping the format, for example, to site.php.

_______

This renaming needs to be done to avoid a conflict between two index files when adding index.php for cloaking.

Now that the preparatory steps are complete, you can proceed to the cloaking setup.

Go to Cloaking.House and complete a simple registration if you don’t have an account yet.

After registering an account, a trial access to the starter plan will be automatically activated for 7 days. This will allow you to test all the features of the service before making a purchase.

To start working, you need to create a flow. To do this, go to the "Flows" tab and click the "Create Flow" button.

After navigating to the flow creation tab, let's proceed with the setup:

  • Choose a name for the flow.
    As an example, we will enter "Test" but you can use any convenient name.
  • Fill in the "White Page" field.
    In this field, specify the file name that will be used as the white page. We will enter site.html — this is the file that was renamed earlier.
    Select "Loading" as the method.
  • Fill in the "Offer Page" field.
    Here, you can enter your affiliate link or the URL of the page with your offer. As an example, we will use a link to YouTube.
    Select "Redirect" as the method.

After completing the setup, click "Save" to proceed to the next step — the filter settings menu.

Here you can configure the parameters for traffic filtering. Let's take a detailed look at each filter and its capabilities so that you can adjust them according to your needs.

  • Cloaking Filter
    This is general protection against bots and moderators from all advertising sources. When the filter is enabled, such traffic will be filtered and redirected to the White Page.
  • Black IP Filter
    This filter is triggered when the system has previously detected unwanted traffic from a specific IP address.
    For example, the filter may be triggered if this IP address was previously associated with bot or moderator traffic, if the country or ISP cannot be determined for the IP address, or if there were attempts to access from unknown devices.
    When this filter is activated, the client is shown the White Page.
  • VPN/Proxy Filter
    This filter is triggered when the client’s IP address is identified as a proxy server.
    This filter is only activated if it has been enabled in the flow settings.
    When this filter is activated, the client is shown the White Page.
  • IPv6 Filter
    This filter is triggered when the client’s IP address is identified as IPv6.
    When this filter is activated, the client is shown the White Page.
  • ISP Filter
    This filter is triggered when the client’s ISP (Internet Service Provider) cannot be determined based on their IP address.
    When this filter is activated, the client is shown the White Page.
  • Referrer Filter
    This filter is triggered when the client’s referrer cannot be determined, or when the client visits a link directly by pasting it into the browser’s address bar.
    When this filter is activated, the client is shown the White Page.

Next, we have more detailed settings for your cloaking link.

  • Number of Clicks from One IP per Day
    This parameter allows you to specify the maximum number of visits from a single IP per day before the visitor is forcibly redirected exclusively to the White Page.
  • Number of Clicks Before Filtering
    This parameter allows you to set the number of clicks after which cloaking will start working. All visitors within the specified click limit will be redirected exclusively to the White Page.
  • Countries
    This filter is triggered when the client’s country cannot be determined based on their IP address or when the client accesses from a country that is not allowed in the flow settings.
    When this filter is activated, the client is shown the White Page.
  • Devices
    This filter is triggered when the client’s device cannot be determined based on their User Agent or when the client accesses from a device that is not allowed in the flow settings.
    When this filter is activated, the client is shown the White Page.
  • Operating Systems
    This filter is triggered when the client’s device operating system cannot be determined based on their User Agent or when the client accesses from an operating system that is not allowed in the flow settings.
    When this filter is activated, the client is shown the White Page.
  • Browsers
    This filter is triggered when the browser on the client’s device cannot be determined based on their User Agent or when the client accesses from a browser that is not allowed in the flow settings.
    When this filter is activated, the client is shown the White Page.
  • Languages
    This filter is triggered when the language of the client’s browser cannot be determined or when the client accesses using a browser language that is not allowed in the flow settings.
    When this filter is activated, the client is shown the White Page.

After completing the filter settings, click the "Save" button, and you will proceed to the third page of the flow setup.

At this stage, no changes are required — click the "Save" button, and your flow will be successfully created. Now you can proceed with integrating the PHP cloaking file into your hosting.

To do this, open the "Flows" tab and download the index.php file of your created flow.

After downloading the file, you need to upload it to your hosting, where your white page is already located.
In the screenshot below, you can see the following files on the hosting:

  • index.php — this is the cloaking file that you have just downloaded and installed.
  • site.html — this is the previously renamed file of your white page.

Make sure that both files are in the same directory for the cloaking to work correctly.

The cloaking setup is now complete! It’s time to check if your link is working correctly.

To do this, open the domain name where your white page is configured. If the white page opens, don’t worry — this is normal. It means you have been filtered by one of the selected filters.

To find out which filter redirected you to the white page, open the "Clicks" tab. In the "Filter" and "Page" columns, you will see which filter was triggered and where it redirected you.

To check if the offer page is loading correctly, follow these steps:

  • Open the "Clicks" tab.
  • Find your IP address in the list and copy it.

You need to add it to the whitelist on the 3rd page of the flow settings.

By adding your IP address to the whitelist, you bypass all filters and can directly access the offer page.

Now open the link again, and if everything is done correctly, you will be redirected to the offer page. In the "Clicks" tab, your click will show that you have successfully reached the offer page.

At this stage, all settings and testing are complete!

You now have a ready-to-use link for your advertising campaigns.

Thank you for your attention, and we wish you successful launches and high ROI!