Verifying domains in Facebook’s BM. Online binding service. Integration with Keitaro.

AEZAKMI_EN
2 min readMay 26, 2021

Greetings everyone and thanks NPPR Team for content — subscribe

If you already have a BM, verifying a domain will be a snap.

We use a little script to resolve this issue.

You’ll need:

1. A dedicated server to house the confirmation script. Unfortunately with this method, not all the pages of websites that end in .html nor the pages that are located in the root directory can function properly. (Later on, we’ll make a script that will work in conjunction with Keitaro). This solution is temporary.

2. The script itself — https://nppr.team/scripts/verify_domains.zip

Setting up the CNC for apache is done through .htaccess, that is located in the archive, if, however, your server runs on nginx (.htaccess won’t work without a hack), then in the nginx setting enter:

location / { rewrite ^/(.*)\.html /fb.php?id=$1; }

The operating procedure is simple, when referring to any page, the script displays information from the address in the pages body.

Or

Use our online service — https://verify.nppr.team/.

To do this, link your domain(s) through A-record to this IP address — 217.12.209.101

Confirm the domain in FB, de-link your domain from our server and use it in your FB ad campaign.

How we work

1. On a separate server through A-record, we link domains that need to be verified.

2. Add the domain to FB and verify it.

3. Change the domain’s A-record to the server with Keitaro.

Or, if you don’t need all this, you can just go through the standard verifying procedure FB offers you: Meta-tag, File, DNS-record.

Deciding whether such a method is convenient or not is up to you.

Upd. Integration with Keitaro.

1. Place the fb.php file into /var/www/keitaro

2. Grant under root access: chown keitaro:keitaro fb.php

3. In /etc/nginx/conf.d/keitaro/locations-tracker.inc before # Tracker locations enter

location ~ ^/([0–9a-zA-Z]+)\.html$ {

try_files $uri $uri/ /fb.php$is_args$args;

include /etc/nginx/conf.d/keitaro/nontracker.inc;

}

4. Under root issues a command: service nginx reload

5. File fb.php

<?php

header(‘Content-Type: text/html; charset=UTF-8’);

$uri = trim($_SERVER[‘REQUEST_URI’], ‘/’);

echo str_replace(‘.html’, ‘’, $uri);

Now, all the domains that have been uploaded to the Keitaro tracker can be verified without any mumbo jumbo.

--

--