8000 GitHub - sev-avtodor/BinomoCloaker: Free cloaking script for affiliate marketing
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Free cloaking script for affiliate marketing

Notifications You must be signed in to change notification settings

sev-avtodor/BinomoCloaker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Binomo Cloaker Yellow Web Edition

English version of this help is down below 👇

Поддержка

Đ•Ńли вы хотите, чтобы этот проект и дальŃе развивалŃŃŹ, поддержите автора Ńоткой-Đ´Ń€Ńгой!

ОпиŃание

Модифицированный Ńкрипт клоакинга для арбитража трафика, изначально найденный на проŃторах Black Hat World.

Справочные материалы

ĐŁŃтановка

Скачайте поŃледнюю верŃию вŃех файлов из этого репозитория и загрŃзите их Ńебе на Ń…ĐľŃтинг. На Ń…ĐľŃтинге должен быть включён PHP и вы должны Ńоздать HTTPS Ńертификат для ваŃего домена. Без HTTPS кло не бŃдет корректно работать! ĐśĐľĐłŃ ĐżĐľŃ€ĐµĐşĐľĐĽĐµĐ˝Đ´ĐľĐ˛Đ°Ń‚ŃŚ вам Ń…ĐľŃтинг Beget для кло, он проŃтой и Ńдобный.

Đ•Ńли Ń Đ˛Đ°Ń ĐµŃть локальные проклы и ленды, тогда Ńоздайте ĐżĐ°ĐżĐşŃ Đ´Đ»ŃŹ каждого из них в корневой папке кло и ŃкопирŃйте их файлы каждый в Ńвою папкŃ. Например: Đ•Ńли Ń Đ˛Đ°Ń 2 проклы и 2 ленда, Ńоздайте 2 папки для прокл: p1 и p2. Рдве папки для лендов: land1, land2.

НаŃтройка

ĐˇĐµĐąŃ‡Đ°Ń Ń ĐşĐ»Đľ НЕТ пользовательŃкого интерфейŃа для наŃтроек. ĐźĐľŃŤŃ‚ĐľĐĽŃ ĐżŃ€ĐľŃто откройте файл settings.php в любом текŃтовом редакторе. ĐŻ рекомендŃŃŽ Notepad++, поŃĐşĐľĐ»ŃŚĐşŃ Ń Đ˝ĐµĐłĐľ еŃть подŃветка PHP-ŃинтакŃиŃа и вам бŃдет проще читать и редактировать вŃŃ‘.

НаŃтройка вайта

Вайт - это Ńтраница, которая показываетŃŃŹ поŃетителю, который не проŃёл через фильтры кло. Это нежелательные поŃетители.

Для начала вам надо определитьŃŃŹ, какой тип вайта вы хотите иŃпользовать. Кло может:

  • показывать локальные вайты
  • подгрŃжать контент любого Đ´Ń€Ńгого Ńайта
  • редиректить на любой Đ´Ń€Ńгой Ńайт
  • показывать ĐľŃибкŃ

Когда вы определилить, поменяйте значение $white_action на одно из ŃледŃющих:

site

Это для локальный вайтов. Đ’Ń‹ должны Ńоздать ĐżĐ°ĐżĐşŃ Đ˛ корне кло, например white и Ńкопировать Ń‚Ńда вŃе файлы вайта. Затем пропиŃите название папки в $white_folder_name.

redirect

Это для редиректа вŃего вайт-трафика на Đ´Ń€Ńгой Ńайт. ĐĐ´Ń€ĐµŃ Ńайта вводим в $white_redirect_url и выбираем тип редиректа. Это может быть: 301,302,303 или 307. ЗагŃглите разницŃ, еŃли вам это важно. Введите тип редиректа в $white_redirect_type.

curl

Это для подгрŃзки контента любого Đ´Ń€Ńгого Ńайта.ПиŃем Đ°Đ´Ń€ĐµŃ Ńайта в $white_curl_url.

error

Đ’Ń‹ можете вернŃть любŃŃŽ HTTP-ĐľŃĐ¸Đ±ĐşŃ Đ´Đ»ŃŹ вайт-трафика. Например: 404. Введите код ĐľŃибки в $white_error_code.

Разные вайты для разных доменов

Đ•Ńли Ń Đ˛Đ°Ń ĐżŃ€Đ¸Đ˛ŃŹĐ·Đ°Đ˝Đľ Đş Ń…ĐľŃŃ‚Đ¸Đ˝ĐłŃ Đ˝ĐµŃколько доменов (или ŃŃбдоменов) и вы льёте на них траф, вы можете Ńделать так, что для разных доменов бŃĐ´ŃŃ‚ показыватьŃŃŹ разные вайты. Для этого Ńначала меняете $white_use_domain_specific на true.

Затем заполните маŃŃив $white_domain_specific. Формат такой: "ваŃ.домен" => "whiteaction:value" Например: "https://mydomain.com" => "curl:https://ya.ru" Đ’ файле settings.php приведён более подробный пример такой наŃтройки, поŃмотрите.

НаŃтройка воронки

Кло Ńмеет работать ŃĐľ ŃледŃющими воронками:

  • локальный ленд (или неŃколько лендов)
  • локальная прокла (проклы) -> локальные ленды
  • локальные проклы + редирект на ленд на Đ´Ń€Ńгом Ńайте
  • ŃŃ€Đ°Đ·Ń Đ¶Đµ редирект на Đ´Ń€Ńгой Ńайт

Разберём вŃе эти конфигŃрации.

Локальные ленды

Đ’Ń‹ можете иŃпользовать один или неŃколько лендов. Траф бŃдет разделён равномерно ĐĽĐµĐ¶Đ´Ń Đ˝Đ¸ĐĽĐ¸. Скажем, для двŃŃ… лендов это бŃдет 50/50. Каждый ленд должен лежать в Ńвоей папке. Делаем $black_action = 'site' и пропиŃываем имя папки в $black_land_folder_name. Đ•Ńли лендов неŃколько, то иŃпользŃем запятŃŃŽ, как разделитель. Например: $black_land_folder_name = 'land1,land2'; Примечание: проверьте, что вы Ńдалили из $black_preland_folder_name называния прокл. Должно быть: $black_preland_folder_name = '';

Локальные проклы - Локальные ленды

Проделайте вŃŃ‘ то же Ńамое, что в ĐżŃнкте про Локальные ленды но также заполните $black_preland_folder_name. Например, для двŃŃ… прокл: $black_preland_folder_name = 'p1,p2';

Локальные проклы + redirect

Заполняем названия папок прокл $black_preland_folder_name. Например, для двŃŃ… прокл: $black_preland_folder_name = 'p1,p2'; Затем заменяем $black_land_use_url на true. ПоŃледний Ńаг: заполните Đ°Đ´Ń€ĐµŃ Ń€ĐµĐ´Đ¸Ń€ĐµĐşŃ‚Đ° - $black_land_url

ĐˇŃ€Đ°Đ·Ń Ń€ĐµĐ´Đ¸Ń€ĐµĐşŃ‚

Đ•Ńли вы проŃто хотите редиректить веŃŃŚ, проходящий по фильтрам кло, траф,то тогда иŃпользŃйте $black_action = 'redirect' и заполните Đ°Đ´Ń€ĐµŃ Ń€ĐµĐ´Đ¸Ń€ĐµĐşŃ‚Đ° $black_redirect_url. Также выберите тип редиректа: 301,302,303 or 307. ЗагŃглите разницŃ, еŃли вам это важно. Введите тип редиректа в $black_redirect_type.

НаŃтройка Ńкрипта конверŃий локального ленда

ĐŁ каждого ленда еŃть возможноŃть отправлять лиды в ПП (кэп!). Đ Ń ĐşĐ°Đ¶Đ´ĐľĐą ПП Ńвоя механика отправки этих Ńамых лидов. По Ńмолчанию кло ищет файл order.php, находящийŃŃŹ в папке ленда. Đ•Ńли Ń Đ˛Đ°Ńей ПП Ńкрипт называетŃŃŹ по-Đ´Ń€ŃгомŃ, что переименŃйте значение в переменной $black_land_conversion_script. Чтобы понять, как называетŃŃŹ Ńкрипт отправки, откройте индекŃный файл ленда и поищите любŃŃŽ Ń„ĐľŃ€ĐĽŃ - <form. Гляньте Ń Ń„ĐľŃ€ĐĽŃ‹ атрибŃŃ‚ action. Đ’ нём и пропиŃан Ńкрипт. Đ•Ńли атрибŃта action нет, значит лид отправляет индекŃный файл! Đ•Ńли Ńкрипт находитŃŃŹ в какой-то папке, то введите отноŃительный ĐżŃть Đş ŃкриптŃ,например: $black_land_conversion_script='folder/conversion.php'; ПоŃле того, как вы это вŃŃ‘ наŃтроили, отправьте теŃтовый лид. Đ•Ńли лида нет в Ńтате ПП, тогда откройте Ńкрипт отправки лидов и поищите, нет ли в нём Ńтроки exit(); Đ•Ńли еŃть, то Ńдалите или закомментирŃйте эти Ńтроки (Ń Ńчётом ŃинтакŃиŃа языка!!!).

НаŃтройка Ńтраницы СпаŃибо.

ПоŃетитель попадает на ŃŃ‚Ń€Đ°Đ˝Đ¸Ń†Ń ĐˇĐżĐ°Ńибо поŃле того, как он отправляет Ńвои данные Ń Đ±Đ»ŃŤĐşĐ° или вайта! Контент Ńтраницы подгрŃжаетŃŃŹ из папки thankyou кло. Đ•Ńли поŃмотреть, в ней лежит неŃколько html-файлов, названных двŃхбŃквенными кодами языков. Введите Đ˝Ńжный язык Ńтраницы ŃпаŃибо в $thankyou_page_language.

Đ•Ńли для ваŃего языка нет Ńтраницы СпаŃибо - Ńоздайте её. Это проŃто: загрŃжаем в браŃзере Chrome англоязычный вариант Ńтраницы СпаŃибо и вŃтроенным переводчиком переводим на Đ˝Ńжный язык. Далее Ńохраняем перевод под Đ˝Ńжным именем, например IT.html. Внимание: откройте переведённŃŃŽ ŃŃ‚Ń€Đ°Đ˝Đ¸Ń†Ń Đ˛ текŃтовом редакторе и ŃбедитеŃŃŚ, что 2 макроŃа {NAME} and {PHONE} НЕ были переведены. Đ•Ńли были - верните их на меŃто!

Đ•Ńли вы хотите иŃпользовать Ńвою ŃобŃтвеннŃŃŽ ŃŃ‚Ń€Đ°Đ˝Đ¸Ń†Ń ĐˇĐżĐ°Ńибо, то переименŃйте её двŃхбŃквенным кодом языка и положите вŃе Đ˝Ńжные файлы в ĐżĐ°ĐżĐşŃ thankyou.

Сбор почт на Ńтранице СпаŃибо

На Ńтранице СпаŃибо по Ńмолчанию еŃть 5D32 форма Ńбора email-адреŃов. Đ•Ńли она вам не Đ˝Ńжна - проŃто Ńдалите её в коде Ńтраницы. Но еŃли Đ˝Ńжна, то вам Đ˝Ńжно Ńоздать ещё ĐľĐ´Đ˝Ń ŃтраницŃ: Ń‚Ń, на которŃŃŽ пользователь попадёт ПОСЛЕ того, как ĐľŃтавит Ńвою почтŃ. Она должна быть названа в виде двŃхбŃквенного названия языка + email.html. Например: SKemail.html. Đ’ папке thankyou лежит пример такой Ńтраницы.

НаŃтройка пикŃелей

Đ’Ń‹ можете добавить различные пикŃели на ваŃи проклы и ленды. Вот полный ŃпиŃок:

  • ĐŻĐ˝Đ´ĐµĐşŃ ĐśĐµŃ‚Ń€Đ¸ĐşĐ°
  • Google Tag Manager
  • Facebook Pixel

ĐŻĐ˝Đ´ĐµĐşŃ ĐśĐµŃ‚Ń€Đ¸ĐşĐ°

Чтобы добавить Ńкрипт ĐŻĐ˝Đ´ĐµĐşŃ ĐśĐµŃ‚Ń€Đ¸ĐşĐ¸ на ваŃи прелендинги и лендинги, проŃто заполните ID метрики в $ya_id.

Google Tag Manager

Чтобы добавить Ńкрипт Google Tag Manager на ваŃи прелендинги и лендинги, проŃто заполните GTM ID в $gtm_id.

Facebook Pixel

ID пикŃеля фб кло полŃчает из ŃŃылки. Он должен быть в ней в формате: px=1234567890. Например: https://ваŃ.домен?px=5499284990 Đ•Ńли в адреŃе еŃть параметр px, тогда кло добавит полный Javascript-код пикŃеля фб на ŃŃ‚Ń€Đ°Đ˝Đ¸Ń†Ń ĐˇĐżĐ°Ńибо. Đ’Ń‹ можете задать Đ˝Ńжное Ńобытие пикŃеля в переменной $fb_thankyou_event. По Ńмолчанию это Lead, но вы можете поменять его на Purchase или на любое Đ´Ń€Ńгое. Đ’Ń‹ также можете иŃпользовать Ńобытие PageView. Чтобы включить его, поменяйте $fb_use_pageview на true. ПоŃле этого код пикŃеля бŃдет добавлен на вŃе ĐľŃновные Ńтраницы прокл и лендов и эти Ńтраницы бŃĐ´ŃŃ‚ Ńлать Ńобытие PageView в фб для каждого поŃетителя. Примечание: ĐŃпользŃйте плагин Facebook Pixel Helper для Google Chrome чтобы проверить, что Ńобытия отŃылаютŃŃŹ корректно!

НаŃтройка фильтров кло

Кло Ńмеет фильтровать траф по ŃледŃющим критериям:

  • Đ’Ńтроенная база IP
  • ОС поŃетителя
  • Страна поŃетителя
  • User Agent поŃетителя (браŃзер)
  • ISP поŃетителя (провайдер)
  • Наличие реферера
  • По любой чаŃти ŃŃылки, по которой был переход

Примечание: везде, где вы хотите иŃпользовать неŃколько параметров, иŃпользŃйте запятŃŃŽ в качеŃтве разделителя! Для начала, добавьте вŃе разреŃённые операционные ŃиŃтемы в $os_white. Вот ŃпиŃок Đ´ĐľŃŃ‚Ńпных:

  • Android
  • iOS
  • Windows
  • Linux
  • OS X
  • и Đ´Ń€Ńгие не ĐľŃобо попŃлярные...

Выберите те, что вам Đ˝Ńжны. Затем заполните вŃе двŃхбŃквенные коды разреŃённых Ńтран в $country_white. Например: RU,RS,IT,ES.

Теперь избавьтеŃŃŚ от вŃех ненŃжных интернет-провайдеров. Добавьте их в $isp_black. Например: google,facebook,yandex. Đ•Ńли вы хотите защитить Ńвою ŃĐ˛ŃŹĐ·ĐşŃ ĐľŃ‚ Ńпай-ŃервиŃом, то добавьте Ńюда вŃех облачных провайдеров, навроде: amazon,azure и Ń‚.Đż.

Добавьте в ŃпиŃок запрещённых User Agent-ов $ua_black Ńлова, по которым они бŃĐ´ŃŃ‚ фильтроватьŃŃŹ. Например: facebook,Facebot,curl,gce-spider

Добавьте ŃпиŃок Ńлов, которые могŃŃ‚ быть в ŃŃылке, по которой переŃёл поŃетитель, которые ŃигнализирŃŃŽŃ‚ вам Đľ том, что ĐµĐĽŃ Đ˝Đ°Đ´Đľ показать вайт в $tokens_black или ĐľŃтавьте ŃŤŃ‚Ń ĐżĐµŃ€ĐµĐĽĐµĐ˝Đ˝ŃŃŽ ĐżŃŃтой - ''.

Đ•Ńли Ń Đ˛Đ°Ń ĐµŃть доп. ŃпиŃок IP адреŃов от которых вы хотите избавитьŃŃŹ - добавьте их в $ip_black.

Рнаконец: еŃли вы хотите блокировать прямых поŃетителей тогда измените $block_without_referer на true. Внимание: некоторые ОС и браŃзеры некорректно передают реферер или не передают его вовŃе. Так что, еŃли хотите иŃпользовать ŃŤŃ‚Ń Ń„Đ¸ŃĐşŃ, проверьте её Ńначала на небольŃом объёме трафа, иначе вы можете потерять $$.

НаŃтройка раŃпределения трафа

Đ’Ń‹ можете временно выключить вŃе фильтры кло и Ńлать веŃŃŚ траф на вайт. Например, во время модерации. Для этого измените $full_cloak_on на true. Также вы можете выключить вŃе фильтры кло и Ńлать веŃŃŚ траф на блэк. Например, для теŃтирования блэка. Для этого измените $disable_tds на true. Đ’Ń‹ можете Ńохранять "ĐżŃть" пользователя (Ń‚.е. те преленды и ленды на которые он попадёт в воронке). Тогда он вŃегда, Ńколько бы раз он не заŃёл, бŃдет видеть одни и те же Ńтраницы. Для этого измените $save_user_flow на true.

НаŃтройка ŃтатиŃтики и поŃтбэка

ПроŃмотр ŃтатиŃтика защищён паролем. Задайте его в переменной $log_password. Đ•Ńли вы вŃегда называете Ńвои креативы одинаково и передаёте их названия в кло из ваŃего иŃточника трафа, то на Ńтранице ŃтатиŃтики вы Ńможете поŃмотреть, Ńколько было кликов Ń Ń‚ĐľĐłĐľ или иного крео. Для этого задайте название параметра в котором передаютŃŃŹ имена крео в переменной $creative_sub_name. Например, еŃли ŃŃылка в иŃточника трафа выглядит так: https://your.domain?mycreoname=greatcreo тогда вам Đ˝Ńжно изменить переменнŃŃŽ ŃледŃющим образом: $creative_sub_name = 'mycreoname'; поŃле чего в Ńтате вы Ńвидите: greatcreo - 154 клика

НаŃтройка поŃтбэка

Кло Ńмеет полŃчать поŃтбэки из ПП и показывать ŃтатŃŃ Đ»Đ¸Đ´ĐľĐ˛ в Ńтате. Для начала, вам надо передавать в ПП Ńникальный id поŃетителя - subid. Subid ŃоздаётŃŃŹ для каждого поŃетителя автоматом и хранитŃŃŹ в ĐşŃки. Đ’Ń‹ должны ŃпроŃить ваŃего менеджера, как передавать subid в ПП (они обычно знают этот параметр под именем clickid). ĐźŃŃть они ŃкажŃŃ‚ вам, в какой ŃŃб-метке вам надо его передавать, ĐżĐľŃ‚ĐľĐĽŃ Ń‡Ń‚Đľ Ń Ń€Đ°Đ·Đ˝Ń‹Ń… ПП разные ŃŃб-метки. ĐŁ кого-то они называютŃŃŹ sub1 sub2 и Ń‚.Đ´., а где-то subacc, где-то как-то ещё. Для примера предŃтавим, что ŃŃб-метка называетŃŃŹ sub1. За ĐżĐµŃ€ĐµĐ´Đ°Ń‡Ń ĐżĐ°Ń€Đ°ĐĽĐµŃ‚Ń€ĐľĐ˛ в ПП отвечает маŃŃив $sub_ids. Đзменим название Ńправа от subid на sub1: $sub_ids = array("subid"=> "sub1", .....); Так ĐĽŃ‹ наŃтраиваем кло взять значение ĐşŃки subid и передать его в ĐĽĐµŃ‚ĐşŃ sub1. Đ•Ńли, Ńкажем subid был 12uion34i2 в итоге полŃчитŃŃŹ:

  • еŃли был локальный ленд, то во вŃе формы ленда добавитŃŃŹ Ńкрытое input-поле <input type="hidden" name="sub1" value="12uion34i2"
  • еŃли Ń Đ˝Đ°Ń Ń€ĐµĐ´Đ¸Ń€ĐµĐşŃ‚, то бŃдет: http://redirect.link?sub1=12uion34i2

Далее нам надо Ńказать в ПП, ĐşŃда Ńлать поŃтбэк. Đ’ кло за ĐľĐ±Ń€Đ°Đ±ĐľŃ‚ĐşŃ ĐżĐľŃтбэков отвечает файл postback.php. Нам Đ˝Ńжно полŃчить из ПП 2 параметра: subid и ŃтатŃŃ Đ»Đ¸Đ´Đ°. ĐŃпользŃŃŹ две эти вещи кло меняет Ń Ńебя в логах ŃтатŃŃ Đ»Đ¸Đ´Đ° и отображает изменение в СтатиŃтике. ПоŃмотрите в Ńправке ПП или ŃпроŃите ваŃего менеджера, какой ĐĽĐ°ĐşŃ€ĐľŃ Đ¸ŃпользŃет ПП для передачи ŃтатŃŃа лида. Обычно он так и называетŃŃŹ, {status}. ВозвращаяŃŃŚ Đş наŃĐµĐĽŃ ĐżŃ€Đ¸ĐĽĐµŃ€Ń: поŃĐşĐľĐ»ŃŚĐşŃ ĐĽŃ‹ отправляли subid в ŃŃб-метке sub1, ĐĽĐ°ĐşŃ€ĐľŃ Đ´Đ»ŃŹ полŃчения subid из ПП бŃдет {sub1}. Давайте Ńоздадим полный Đ°Đ´Ń€ĐµŃ ĐżĐľŃтбэка. Đ’Ń‹ должны вŃтавить его в поле Postback Url в ваŃей ПП. Например: https://your.domain/postback.php?subid={sub1}&status={status} Đ, наконец, разберитеŃŃŚ Ńами или ŃпроŃите менеджера, какие ŃтатŃŃŃ‹ Ńлёт ПП в поŃтбэке. Обычно это:

  • Lead
  • Purchase
  • Reject
  • Trash

Đ•Ńли ваŃа ПП Ńлёт ŃтатŃŃŃ‹ по-Đ´Ń€ŃгомŃ, то иŃправьте значения ŃледŃющих переменных ŃоответŃтвенно наŃтройкам ПП:

  • $lead_status_name
  • $purchase_status_name
  • $reject_status_name
  • $trash_status_name

ПоŃле наŃтройки отправьте теŃтового лида и на Ńтранице Лиды в ŃтатиŃтике наблюдайте, как лид изменит ŃтатŃŃ Đ˝Đ° ТреŃ.

НаŃтройка дополнительных Ńкриптов

Отключение кнопки "Назад"

Đ’Ń‹ можете отключить ĐşĐ˝ĐľĐżĐşŃ "Назад" в браŃзере поŃетителя, чтобы он не мог покинŃть ваŃŃ ŃтраницŃ. Для этого измените $$disable_back_button на true.

Замена кнопки "Назад"

Đ’Ń‹ можете изменить адреŃ, на который попадёт поŃетитель, нажав ĐşĐ˝ĐľĐżĐşŃ "Назад". Đ­Ń‚Ń Ń„Đ¸ŃĐşŃ ĐĽĐľĐ¶Đ˝Đľ иŃпользовать для домонетизации и для отправки поŃетителя на Đ´Ń€Ńгой оффер. Đзменяем $replace_back_button на true и вводим Đ°Đ´Ń€ĐµŃ Đ˛ $replace_back_address. Внимание: Не иŃпРAE96 ľĐ»ŃŚĐ·Ńйте этот Ńкрипт вмеŃте ŃĐľ Ńкриптом Отключения кнопки Назад!!!

Запрет контекŃтного меню, выделения текŃта и Ńохранения по Ctlr+S

You can disable the ability to select text on your prelandings and landings, disable the ability to save the page using Ctrl+S keys and also disable the browser's context menu. To do so just change $disable_text_copy to true.

Замена прелендинга на Đ´Ń€Ńгой Ńайт

Đ’Ń‹ можете включить ŃŤŃ‚Ń Đ˝Đ°ŃŃ‚Ń€ĐľĐąĐşŃ Đ´Đ»ŃŹ того, чтобы ленд открывалŃŃŹ в новой вкладке браŃзера, а прокла бы заменялаŃŃŚ на Đ´Ń€Ńгой Ńайт. Это можно иŃпользовать для домонетизации трафа. Для включения измените $replace_prelanding на true и вŃтавьте Đ°Đ´Ń€ĐµŃ Đ˛ $replace_prelanding_address.

МаŃки для телефонов

Đ’Ń‹ можете наŃтроить кло так, чтобы он применяла Đş полям ввода номера телефона определённые маŃка. Когда вы включите ŃŤŃ‚Ń Đ˛ĐľĐ·ĐĽĐľĐ¶Đ˝ĐľŃть, поŃетитель не Ńможет вводить бŃквы в номер и не Ńможет ввеŃти больŃе или меньŃе цифр, чем требŃетŃŃŹ. Đ’ маŃке задаютŃŃŹ префикŃŃ‹ телефона, кол-во цифр и разделители. Чтобы включить маŃки измените $black_land_use_phone_mask на true и отредактирŃйте ŃĐ°ĐĽŃ ĐĽĐ°ŃĐşŃ Đ˛ $black_land_phone_mask.

Проверка

Добавьте код ваŃей Ńтраны в ŃпиŃок разреŃённых, чтобы иметь возможноŃть перейти на блэк. Пройдите по вŃем элементам воронки. Проверьте пикŃель и отŃŃ‚Ńкивание лидов в ПП, поŃтбэк.

ПроŃмотр трафика и ŃтатиŃтики

ПоŃле того, как вы начали лить, вы можете проŃматривать ŃŃ‚Đ°Ń‚Ń ĐżĐľ Ń‚Ń€Đ°Ń„Đ¸ĐşŃ Đ˝Đ° Ńтранице СтатиŃтика: https://your.domain/logs?password=yourpassword где yourpassword это значение переменной $log_password из файла settings.php.

JS-интеграция кло Ń ĐşĐľĐ˝ŃтрŃкторами

СпоŃоб â„–1

Đ’ ŃĐ»Ńчае подключения этим ŃпоŃобом, поŃле проверки пользователя бŃдет ŃоверŃён редирект на блэк <script src = 'https://your.domain/js/indexr.php'></script>

СпоŃоб â„–2

Đ’ ŃĐ»Ńчае подключения этим ŃпоŃобом, поŃле проверки пользователя бŃдет ŃоверŃена полная подмена Ńтраницы на блэк. НЕ ĐСПОЛЬЗУЙТЕ этот ŃпоŃоб, еŃли Ń Đ˛Đ°Ń Đ»ĐµĐ˝Đ´ БЕЗ проклы. <script src = 'https://your.domain/js'></script>

Контакты

По вŃем вопроŃам пиŃите Issues на GitHub либо в паблик http://vk.com/yellowweb

Description

Modified cloaking script for affiliate marketing found somewhere on Black Hat World.

Installation

Just download the latest copy of all files from this repository and upload them to your hosting. Your hosting should allow to run PHP-scripts and you SHOULD create a HTTPS-certificate for your domain. Without HTTPS the cloaker won't work properly! I can definitely recommend Beget Hosting for the cloaker. It's cheap and convenient.

If you have local prelandings or landings, then create a folder for each of them in the root folder of the cloaker and copy all files there accordingly. For example: If you have 2 prelandings and 2 landings create 2 folders for prelandings: p1 and p2. And 2 folders for landings: land1, land2.

Setup

Right now the cloaker doesn't have any UI for the settings. So, just open the settings.php file in any text-editor. I recommend Notepad++ for that, cause it has PHP-syntax highlighting and it'll be easier to read and edit.

White Page Setup

White Page is a page that is shown to the visitor, which doesn't pass any of the cloaker's filters. So, it is for visitors, that we don't want.

First of all you need to decide, what kind of a white page action you want to use. The cloaker can use local whitepages, it can show any other site as a whitepage (without redirects), it can redirect white-traffic to any website and it can also show an error to such visitors.

When you decided, change the $white_action value to one of the following:

site

This is for local whitepages. You need to create a folder in the root directory of the cloaker, for example: white and copy all of your whitepage's files there. Then write the folder name into $white_folder_name value.

redirect

Choose this, if you want to redirect all of the white traffic. Just enter the full website url into $white_redirect_url and also choose a redirect type. It can be 301,302,303 or 307. Google the difference if you need. Enter the value into $white_redirect_type.

curl

Use it, if you want to load any other's site content on your domain without redirects. Enter full website's url into $white_curl_url.

error

You can return any type of HTTP-errors for all of the white-traffic. For example: 404. Just enter the error code into $white_error_code.

Domain Specific White Pages

If you have MULTIPLE domains (or subdomains) parked to your hosting, and you run traffic for all of them, you can choose to use different white actions for different domains. To do it first of all change $white_use_domain_specific to true.

Then fill $white_domain_specific array. The fomat is like this "your.domain" => "whiteaction:value" An example is provided in the default settings.php file.

Money Page Setup

Money page (called Black page here) can be one of the following:

  • local landing page(s)
  • local prelanding(s) + local landing(s)
  • local prelanding(s) + redirect to the aff network's landing
  • redirect

Let's dive into each of these configurations.

Local landing page(s)

You can use one ore multiple landing pages if you need. The traffic will be distributed proportionally. For example 50-50 for 2 landings. Each landing should be in a separate folder. Make $black_action = 'site' and put the folder name into $black_land_folder_name. In case of mutiple landings use comma as a separator. For example: $black_land_folder_name = 'land1,land2'; Note: be sure to check, that you don't have anything in $black_preland_folder_name. It should be: $black_preland_folder_name = '';

Local prelanding(s) + local landing(s)

Do everything the same as in the description for Local landing page but also fill the $black_preland_folder_name. For example, for two prelandings: $black_preland_folder_name = 'p1,p2';

Local prelanding(s) + redirect

Fill the $black_preland_folder_name. For example, for two prelandings: $black_preland_folder_name = 'p1,p2'; Then change $black_land_use_url to true. Last step: put full redirect url int $black_land_url

Redirect

If you just want to redirect all of your black traffic, then use $black_action = 'redirect' and put the full url of the website, where you want to redirect people into $black_redirect_url. Also choose a redirect type. It can be 301,302,303 or 307. Google the difference if you need. Enter the value into $black_redirect_type.

Setting up the local landing's conversion script

Each landing page has an ability to send leads to your affiliate network. And each affiliate network, that provide you these landings has their own script and mechanics for sending this info. By default the cloaker will look for the order.php file, that should be located in the landing's folder. But if your script has a different name, then you should rename the value of $black_land_conversion_script. If your script is in some folder, the put this folder name before the script name like this: $black_land_conversion_script='folder/conversion.php'; After setting this up send a test lead to your aff network. If you can't see the lead in you network's statistics, then open your conversion script and look for these kind of lines: exit(); Remove or comment all of them. Then send a test lead again.

Setting up the "Thank you" page

Thankyou page is a page, where the visitor is redirected after filling the lead form on you black landing OR on your whitepage (if you have one there). Thankyou page's content is loaded from the thankyou folder of the cloaker. It has several html-files there, named after the 2-symbol language code. Put the name of your required language into $thankyou_page_language.

If there is no thankyou page for your language - create one! It is as easy as loading for example EN.html into your Chrome browser, translating it using the built-in Google Translate and then saving it using your language code. For example: IT.html. Warning: make sure that two macros: {NAME} and {PHONE} were not translated by Google. If they were, just change them back.

If you want to use your own thankyou page - just rename it using the same 2-symbol language code to the required language and put all its files into thankyou folder.

Collecting emails on the "Thank you" page

The default thankyou page has a built in email collect form. If you dont' need it - just delete it in code. But if you do, you need to create one more page: the one that the visitor will be redirected AFTER submitting the email form. It should be called using the same 2-symbols language code+email in the end. For example: SKemail.html.

Pixels Setup

You can add various pixels on your prelandings and landings. Full list includes:

  • Yandex Metrika
  • Google Tag Manager
  • Facebook Pixel

Yandex Metrika

To add Yandex Metrika's script to your prelandings and landings just fill your Yandex Metrika id. Put it into $ya_id.

Google Tag Manager

To add the Google Tag Manager's script to your prelandings and landings just fill your GTM id. Put it into $gtm_id.

Facebook Pixel

Facebook Pixel's id is taken from the link, that you put into your traffic source. It should be in format px=1234567890. For example: https://your.domain?px=5499284990 If the url has this px parameter, then the full javascript code of the Facebook Pixel will be added to the Thankyou page. You can set the Facebook Pixel's event in $fb_thankyou_event variable. By default it is Lead but you can change it to Purchase or anything that you need. You can also use the pixel's PageView event. To do so, change $fb_use_pageview to true. If you do so, then the pixel's code will be added to all of your local prelandings and landings and they will send the PageView event for each visitor to Facebook. Use Facebook Pixel Helper plugin for Google Chrome to check, if the pixel's event fire correctly!

Cloaker's Filters Setup

The cloaker can filter traffic based on:

  • Built in IP database
  • Visitor's OS
  • Visitor's country
  • Visitor's User Agent
  • Visitor's ISP
  • Visitor's referer
  • Any token in the url

Note: comma should be used everywhere, where multiple values are needed. First of all put all of the OSes that should be allowed to view the black page into $os_white. The full list is:

  • Android
  • iOS
  • Windows
  • Linux
  • OS X
  • and some non-significant others

Choose any that you need. Then put all the country codes that are allowed into $country_white. For example: RU,RS,IT,ES.

Now get rid of all of the Internet Service Providers that you don't need. Put them into $isp_black. For example: google,facebook,yandex. If you want to protect your landings from Spy services use amazon,azure and other cloud-providers here.

Put all the unnecessary User Agents into $ua_black. For example: facebook,Facebot,curl,gce-spider

Put all of the words, that can be found in the url that signal you, that this visitor should be shown the white page into $tokens_black or leave it empty.

If you have any additional IP addresses that you want to get rid of - put them into $ip_black.

And last but not least: if you want to block direct visitors from seeing your black page, then change $block_without_referer to true. Warning: some OSes and browsers don't pass the referer correctly, so test this first on a small amount of traffic or you'll loose money.

Traffic Distibution Setup

You can temporary disable all of your filters and send all traffic to the whitepage. For example, you can use it for moderation. To do so, change $full_cloak_on to true. You can also disable the filters and always show the blackpage. For example, for testing purposes. To do so change $disable_tds to true. You can save the user's flow (the prelandings and the landgins which will be shown to the visitor) so (s)he will always see the same pages when (s)he visits the site for the second time or even just refreshes the page. To do so, change $save_user_flow to true.

Statistics and Postback Setup

Your statistics is protected with a password, to set it, please fill the $log_password variable. If you name your creatives properly and pass their names from the traffic source, you can see the number of clicks for each of the creative in the Statistics. To do so, please put the parameter name in which you pass the creative name into $creative_sub_name variable. For example, if you link looks like this: https://your.domain?mycreoname=greatcreo then you need to do it like this: $creative_sub_name = 'mycreoname';

Postback setup

The cloaker is able to receive postbacks from your aff network. To do so, first of all you need to pass the unique visitor's id (called subid here) to your network. Subid is created for each visitor and is stored in a cookie. You should ask your aff manager, how should you pass this id (they know it as "clickid") and what sub-parameter should you use. Usually it is done using sub-parameters like sub1 or subacc. Let's stick to sub1 for this example. So, we should edit the $sub_ids array, the part, that has subid on the left side to look like this: $sub_ids = array("subid"=> "sub1", .....); This way we tell the cloaker to take the value of subid and add it to all forms on the landing in the form of sub1 (or add it to your redirect link, if you don't have local landing). So if the subid was 12uion34i2 we will have:

  • in case of local landing <input type="hidden" name="sub1" value="12uion34i2"
  • in case of redirect http://redirect.link?sub1=12uion34i2

Now we need to tell the aff network where to send the postback info. The cloaker has postback.php file in its root folder. It is the file, which receives and processes postbacks. We need to receive 2 parameters from the aff network: subid and lead status. Using this two things we can change the lead status in our logs and show this change in statistics. Look in help or ask your manager: what macros does your network use to send status, usually it is called the same: {status}. So, returning to our example: we sent subid in sub1 so the macros to receive back our subid will be {sub1}. Let's create a full postback url. You should put this url in the Postback field of your Aff Network. For example: https://your.domain/postback.php?subid={sub1}&status={status} Now, ask your aff manager or look in their help section, what are the statuses, that they send us in postback. Usually they are:

  • Lead
  • Purchase
  • Reject
  • Trash

If your aff network uses other statuses then change these variable values accordingly:

  • $lead_status_name
  • $purchase_status_name
  • $reject_status_name
  • $trash_status_name

After setting this up send a test lead and watch on the Leads page how the status changes to Trash after a while.

Additional Scripts Setup

Disable Back Button

You can disable the back button in the visitor's browser, so (s)he can't leave your page. To do so change $$disable_back_button to true.

Replace Back Button

You can replace the url of the back button in the visitor's browser. So after (s)he clicks on it, (s)he will be redirected to some other place, for example to another offer. To do so change $replace_back_button to true and put the url that you want into $replace_back_address. Warning: Don't use this script with Disable Back Button script!!!

Disable Text Selection, Ctrl+S and Context Menu

You can disable the ability to select text on your prelandings and landings, disable the ability to save the page using Ctrl+S keys and also disable the browser's context menu. To do so just change $disable_text_copy to true.

Replacing Prelanding

You can make the cloaker to open the landing page in a separate browser's tab and then redirect the tab with the prelanding to another url. After the user closes your landing page tabe (s)he'll see the tab with this url. Use it to show another offer to the user. To do so change $replace_prelanding to true and put your url into $replace_prelanding_address.

Phone Masks

You can tell the cloaker to use masks for the phone field on your local landings. When you do so, the visitor won't be able to add any letters into the phone field, only numbers. The mask defines numbers count and delimeters. To enable masks just change $black_land_use_phone_mask to true and edit your mask in $black_land_phone_mask.

Check Up

Add your own country to the cloaker's filters to be able to see the black page. Then go through all of the funnel's components. Send a test lead, verify that it reached your aff network.

Running traffic and Statistics

After you started running traffic you can monitor it and also look at the statistics. To do so just go to a link like this: https://your.domain/logs?password=yourpassword where yourpassword is a value of $log_password from the settings.php file.

Javascript Integration

You can connect this cloaker to any website or website-builder that allows adding Javascript. For example: GitHub, Wix, Shopify and so on. When you do so you run traffic to the website-builder and after the visitor comes to this site a little script checks, if (s)he is allowed to view the blackpage. If (s)he is, then 2 things can happen:

  • A redirect to your blackpage
  • Website builder's content is replaced by the blackpage

Redirect

Just add this script to your website builder: <script src="https://your.domain/js/indexr.php"></script>

Content replacing

Just add this script to your website builder: <script src="https://your.domain/js"></script> Don't use this method if you have only landings without prelandings!

Technical Details

Used components

This cloaker uses:

  • MaxMind Databases for ISP, Country and City detection
  • Bot IP Ranges from various sources collected all over from the Internet in CIDR format
  • Sinergi BrowserDetector for (surprise!) browser detection
  • IP Utils from Symphony for checking if the IP address is in a selected range

Traffic flow

After the visitor passes the cloaker's filters he is usually shown the prelanding (if you have one). On the prelanding all links are being replaced by the link to the landing.php script. After the visitor clicks on the link, the landing.php script gets the landing's content, replaces action of all of the forms to send.php, adds all additional scripts and shows the content to the visitor. When the visitor fills the form and sends it send.php calls the original send script and then removes all of the redirects from it. After that send.php redirects to the thankyou.php which shows the thankyou page as described in the sections above.

About

Free cloaking script for affiliate marketing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 60.7%
  • PHP 35.9%
  • JavaScript 2.0%
  • CSS 1.4%
0