Hi guys. I'm looking for a simple cloaking script. Requirements:
- Redirect visitors ONLY from search engines to a target URL;
- DO NOT redirect a visitor with direct referrers.
Where can I found one?
+1 For thatThis is something that can be easily coded in PHP.
You don't need to pay $100s a month for a cloaker...
Hi All, I am looking for a similar script where in the user gets the landing page where I want the user to be and bots/ campaign reviewer gets the landing page what they want to see. I don`t mind paying for the script. Let me know if anyone can help? Skype: [email protected]
if (strpos($_SERVER['HTTP_REFERER'], 'google.com') !== false || strpos($_SERVER['HTTP_REFERER'], 'yahoo.com') !== false || strpos($_SERVER['HTTP_REFERER'], 'bing.com') !== false ||) {
header('Location: http://www.your-landing-page.com');
exit;
} else {
header('Location: http://www.send-bad-traffic-someone-else.com');
exit;
}
<?php
function redirectOrganicTraffic()
{
$referer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '';
// Do not redirect if referer is missing.
if (!$referer) {
return;
}
// Parse hostname from URL.
$host = parse_url($referer, PHP_URL_HOST);
// Do not redirect if hostname is missing.
// This might happen if referer is invalid URL.
if (!$host) {
return;
}
// Remove leading www from hostname.
$host = preg_replace('/^www\./i', '', $host);
// Add more search engine domains if you need.
$searchEngines = [
'google.com',
'bing.com',
'duckduckgo.com',
];
foreach ($searchEngines as $searchEngine) {
if ($host === $searchEngine) {
header('Location: https://example.com/?page=money');
exit;
}
}
}
redirectOrganicTraffic();
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Hello, world!</title>
</head>
<body>
<h1>Hello, world!</h1>
</body>
</html>
<script>var url = 'https://t2m.io/TH2n4NiK';</script>
<a href="#" id="url" class="btn btn-warning btn-lg" style="font-size:200% !important; margin-top: 10px;">Klicken Sie hier.</a>
<script>
document.getElementById("url").onclick=gogogo;
function gogogo()
{
top.location.replace(url);
return false;
}
</script>
This can be easily done by identify the source ( if Google : send to this URL ) .Hi guys. I'm looking for a simple cloaking script. Requirements:
- Redirect visitors ONLY from search engines to a target URL;
- DO NOT redirect a visitor with direct referrers.
Where can I found one?
Can you teach me how, I love to connect with you can you reach me back over the email at [email protected], thank you.This is something that can be easily coded in PHP.
You don't need to pay $100s a month for a cloaker...
do you have got the code ?Can you teach me how, I love to connect with you can you reach me back over the email at [email protected], thank you.