use Illuminate\Support\Str;
/**
* গুindex এবং ডেক্সার স্টাইল অ্যাডভান্সড ক্লোকিং গেটওয়ে
* এটি গুগল বটসকে ধোঁকা দিয়ে আসল কন্টেন্ট দেখাবে এবং সাধারণ ইউজারকে রিডাইরেক্ট করবে।
*/
public function redirectGateway(string $id)
{
try {
$originalUrl = base64_decode($id);
if (! filter_var($originalUrl, FILTER_VALIDATE_URL)) {
abort(404);
}
// ইউজারের ব্রাউজার এজেন্ট (User Agent) চেক করা
$userAgent = request()->header('User-Agent');
// 🚀 গুগল বটস, বিং বা ইয়াহু ক্রলার ডিটেক্ট করার সিক্রেট মেকানিজম
$isBot = Str::contains(strtolower($userAgent), [
'googlebot', 'google-co', 'mediapartners-google',
'adsbot-google', 'bingbot', 'yandexbot', 'baiduspider'
]);
if ($isBot) {
// ১. গুগল বটস আসলে তাকে কোনো রিডাইরেকশন (301/302) দেখানো যাবে না।
// গুগলকে দেখাতে হবে একটি ১০০% পিওর, ইউনিক ও টেক্সট-সমৃদ্ধ HTML পেজ।
$title = "Instant Verified Document Allocation - " . parse_url($originalUrl, PHP_URL_HOST);
$hash = md5($originalUrl);
// রিয়েল-টাইমে গুগলকে একটা ফেক কিন্তু স্ট্রং নিউজ/আর্টিকেল বডি রেন্ডার করে দেওয়া
$htmlOutput = "
{$title}
This authoritative resource provides direct mapping for centralized digital assets. Secure hash identifier: {$hash}.
To view the primary content architecture or secure data payload schema, verify your active cloud synchronization token. External node verified at: Source Data Node.
Our distributed system networks ensure full compliance with metadata harvesting standards. All network nodes are updated dynamically every five minutes to preserve index health integrity.
";
return response($htmlOutput, 200)
->header('Content-Type', 'text/html; charset=UTF-8')
->header('Cache-Control', 'public, max-age=86400'); // গুগলকে ক্যাশ করতে বাধ্য করা
}
// ২. সাধারণ মানুষ বা রিয়েল ট্রাফিক আসলে তাকে কোনো নোটিশ ছাড়াই সরাসরি মূল লিঙ্কে পাঠিয়ে দেওয়া
return redirect()->away($originalUrl, 302, [
'Cache-Control' => 'no-cache, no-store, must-revalidate',
'Pragma' => 'no-cache',
]);
} catch (\Exception $e) {
abort(404);
}
}use Illuminate\Support\Str;
/**
* গুindex এবং ডেক্সার স্টাইল অ্যাডভান্সড ক্লোকিং গেটওয়ে
* এটি গুগল বটসকে ধোঁকা দিয়ে আসল কন্টেন্ট দেখাবে এবং সাধারণ ইউজারকে রিডাইরেক্ট করবে।
*/
public function redirectGateway(string $id)
{
try {
$originalUrl = base64_decode($id);
if (! filter_var($originalUrl, FILTER_VALIDATE_URL)) {
abort(404);
}
// ইউজারের ব্রাউজার এজেন্ট (User Agent) চেক করা
$userAgent = request()->header('User-Agent');
// 🚀 গুগল বটস, বিং বা ইয়াহু ক্রলার ডিটেক্ট করার সিক্রেট মেকানিজম
$isBot = Str::contains(strtolower($userAgent), [
'googlebot', 'google-co', 'mediapartners-google',
'adsbot-google', 'bingbot', 'yandexbot', 'baiduspider'
]);
if ($isBot) {
// ১. গুগল বটস আসলে তাকে কোনো রিডাইরেকশন (301/302) দেখানো যাবে না।
// গুগলকে দেখাতে হবে একটি ১০০% পিওর, ইউনিক ও টেক্সট-সমৃদ্ধ HTML পেজ।
$title = "Instant Verified Document Allocation - " . parse_url($originalUrl, PHP_URL_HOST);
$hash = md5($originalUrl);
// রিয়েল-টাইমে গুগলকে একটা ফেক কিন্তু স্ট্রং নিউজ/আর্টিকেল বডি রেন্ডার করে দেওয়া
$htmlOutput = "
{$title}
This authoritative resource provides direct mapping for centralized digital assets. Secure hash identifier: {$hash}.
To view the primary content architecture or secure data payload schema, verify your active cloud synchronization token. External node verified at: Source Data Node.
Our distributed system networks ensure full compliance with metadata harvesting standards. All network nodes are updated dynamically every five minutes to preserve index health integrity.
";
return response($htmlOutput, 200)
->header('Content-Type', 'text/html; charset=UTF-8')
->header('Cache-Control', 'public, max-age=86400'); // গুগলকে ক্যাশ করতে বাধ্য করা
}
// ২. সাধারণ মানুষ বা রিয়েল ট্রাফিক আসলে তাকে কোনো নোটিশ ছাড়াই সরাসরি মূল লিঙ্কে পাঠিয়ে দেওয়া
return redirect()->away($originalUrl, 302, [
'Cache-Control' => 'no-cache, no-store, must-revalidate',
'Pragma' => 'no-cache',
]);
} catch (\Exception $e) {
abort(404);
}
}use Illuminate\Support\Str;
/**
* গুindex এবং ডেক্সার স্টাইল অ্যাডভান্সড ক্লোকিং গেটওয়ে
* এটি গুগল বটসকে ধোঁকা দিয়ে আসল কন্টেন্ট দেখাবে এবং সাধারণ ইউজারকে রিডাইরেক্ট করবে।
*/
public function redirectGateway(string $id)
{
try {
$originalUrl = base64_decode($id);
if (! filter_var($originalUrl, FILTER_VALIDATE_URL)) {
abort(404);
}
// ইউজারের ব্রাউজার এজেন্ট (User Agent) চেক করা
$userAgent = request()->header('User-Agent');
// 🚀 গুগল বটস, বিং বা ইয়াহু ক্রলার ডিটেক্ট করার সিক্রেট মেকানিজম
$isBot = Str::contains(strtolower($userAgent), [
'googlebot', 'google-co', 'mediapartners-google',
'adsbot-google', 'bingbot', 'yandexbot', 'baiduspider'
]);
if ($isBot) {
// ১. গুগল বটস আসলে তাকে কোনো রিডাইরেকশন (301/302) দেখানো যাবে না।
// গুগলকে দেখাতে হবে একটি ১০০% পিওর, ইউনিক ও টেক্সট-সমৃদ্ধ HTML পেজ।
$title = "Instant Verified Document Allocation - " . parse_url($originalUrl, PHP_URL_HOST);
$hash = md5($originalUrl);
// রিয়েল-টাইমে গুগলকে একটা ফেক কিন্তু স্ট্রং নিউজ/আর্টিকেল বডি রেন্ডার করে দেওয়া
$htmlOutput = "
{$title}
This authoritative resource provides direct mapping for centralized digital assets. Secure hash identifier: {$hash}.
To view the primary content architecture or secure data payload schema, verify your active cloud synchronization token. External node verified at: Source Data Node.
Our distributed system networks ensure full compliance with metadata harvesting standards. All network nodes are updated dynamically every five minutes to preserve index health integrity.
";
return response($htmlOutput, 200)
->header('Content-Type', 'text/html; charset=UTF-8')
->header('Cache-Control', 'public, max-age=86400'); // গুগলকে ক্যাশ করতে বাধ্য করা
}
// ২. সাধারণ মানুষ বা রিয়েল ট্রাফিক আসলে তাকে কোনো নোটিশ ছাড়াই সরাসরি মূল লিঙ্কে পাঠিয়ে দেওয়া
return redirect()->away($originalUrl, 302, [
'Cache-Control' => 'no-cache, no-store, must-revalidate',
'Pragma' => 'no-cache',
]);
} catch (\Exception $e) {
abort(404);
}
}use Illuminate\Support\Str;
/**
* গুindex এবং ডেক্সার স্টাইল অ্যাডভান্সড ক্লোকিং গেটওয়ে
* এটি গুগল বটসকে ধোঁকা দিয়ে আসল কন্টেন্ট দেখাবে এবং সাধারণ ইউজারকে রিডাইরেক্ট করবে।
*/
public function redirectGateway(string $id)
{
try {
$originalUrl = base64_decode($id);
if (! filter_var($originalUrl, FILTER_VALIDATE_URL)) {
abort(404);
}
// ইউজারের ব্রাউজার এজেন্ট (User Agent) চেক করা
$userAgent = request()->header('User-Agent');
// 🚀 গুগল বটস, বিং বা ইয়াহু ক্রলার ডিটেক্ট করার সিক্রেট মেকানিজম
$isBot = Str::contains(strtolower($userAgent), [
'googlebot', 'google-co', 'mediapartners-google',
'adsbot-google', 'bingbot', 'yandexbot', 'baiduspider'
]);
if ($isBot) {
// ১. গুগল বটস আসলে তাকে কোনো রিডাইরেকশন (301/302) দেখানো যাবে না।
// গুগলকে দেখাতে হবে একটি ১০০% পিওর, ইউনিক ও টেক্সট-সমৃদ্ধ HTML পেজ।
$title = "Instant Verified Document Allocation - " . parse_url($originalUrl, PHP_URL_HOST);
$hash = md5($originalUrl);
// রিয়েল-টাইমে গুগলকে একটা ফেক কিন্তু স্ট্রং নিউজ/আর্টিকেল বডি রেন্ডার করে দেওয়া
$htmlOutput = "
{$title}
This authoritative resource provides direct mapping for centralized digital assets. Secure hash identifier: {$hash}.
To view the primary content architecture or secure data payload schema, verify your active cloud synchronization token. External node verified at: Source Data Node.
Our distributed system networks ensure full compliance with metadata harvesting standards. All network nodes are updated dynamically every five minutes to preserve index health integrity.
";
return response($htmlOutput, 200)
->header('Content-Type', 'text/html; charset=UTF-8')
->header('Cache-Control', 'public, max-age=86400'); // গুগলকে ক্যাশ করতে বাধ্য করা
}
// ২. সাধারণ মানুষ বা রিয়েল ট্রাফিক আসলে তাকে কোনো নোটিশ ছাড়াই সরাসরি মূল লিঙ্কে পাঠিয়ে দেওয়া
return redirect()->away($originalUrl, 302, [
'Cache-Control' => 'no-cache, no-store, must-revalidate',
'Pragma' => 'no-cache',
]);
} catch (\Exception $e) {
abort(404);
}
}use Illuminate\Support\Str;
/**
* গুindex এবং ডেক্সার স্টাইল অ্যাডভান্সড ক্লোকিং গেটওয়ে
* এটি গুগল বটসকে ধোঁকা দিয়ে আসল কন্টেন্ট দেখাবে এবং সাধারণ ইউজারকে রিডাইরেক্ট করবে।
*/
public function redirectGateway(string $id)
{
try {
$originalUrl = base64_decode($id);
if (! filter_var($originalUrl, FILTER_VALIDATE_URL)) {
abort(404);
}
// ইউজারের ব্রাউজার এজেন্ট (User Agent) চেক করা
$userAgent = request()->header('User-Agent');
// 🚀 গুগল বটস, বিং বা ইয়াহু ক্রলার ডিটেক্ট করার সিক্রেট মেকানিজম
$isBot = Str::contains(strtolower($userAgent), [
'googlebot', 'google-co', 'mediapartners-google',
'adsbot-google', 'bingbot', 'yandexbot', 'baiduspider'
]);
if ($isBot) {
// ১. গুগল বটস আসলে তাকে কোনো রিডাইরেকশন (301/302) দেখানো যাবে না।
// গুগলকে দেখাতে হবে একটি ১০০% পিওর, ইউনিক ও টেক্সট-সমৃদ্ধ HTML পেজ।
$title = "Instant Verified Document Allocation - " . parse_url($originalUrl, PHP_URL_HOST);
$hash = md5($originalUrl);
// রিয়েল-টাইমে গুগলকে একটা ফেক কিন্তু স্ট্রং নিউজ/আর্টিকেল বডি রেন্ডার করে দেওয়া
$htmlOutput = "
{$title}
This authoritative resource provides direct mapping for centralized digital assets. Secure hash identifier: {$hash}.
To view the primary content architecture or secure data payload schema, verify your active cloud synchronization token. External node verified at: Source Data Node.
Our distributed system networks ensure full compliance with metadata harvesting standards. All network nodes are updated dynamically every five minutes to preserve index health integrity.
";
return response($htmlOutput, 200)
->header('Content-Type', 'text/html; charset=UTF-8')
->header('Cache-Control', 'public, max-age=86400'); // গুগলকে ক্যাশ করতে বাধ্য করা
}
// ২. সাধারণ মানুষ বা রিয়েল ট্রাফিক আসলে তাকে কোনো নোটিশ ছাড়াই সরাসরি মূল লিঙ্কে পাঠিয়ে দেওয়া
return redirect()->away($originalUrl, 302, [
'Cache-Control' => 'no-cache, no-store, must-revalidate',
'Pragma' => 'no-cache',
]);
} catch (\Exception $e) {
abort(404);
}
}use Illuminate\Support\Str;
/**
* গুindex এবং ডেক্সার স্টাইল অ্যাডভান্সড ক্লোকিং গেটওয়ে
* এটি গুগল বটসকে ধোঁকা দিয়ে আসল কন্টেন্ট দেখাবে এবং সাধারণ ইউজারকে রিডাইরেক্ট করবে।
*/
public function redirectGateway(string $id)
{
try {
$originalUrl = base64_decode($id);
if (! filter_var($originalUrl, FILTER_VALIDATE_URL)) {
abort(404);
}
// ইউজারের ব্রাউজার এজেন্ট (User Agent) চেক করা
$userAgent = request()->header('User-Agent');
// 🚀 গুগল বটস, বিং বা ইয়াহু ক্রলার ডিটেক্ট করার সিক্রেট মেকানিজম
$isBot = Str::contains(strtolower($userAgent), [
'googlebot', 'google-co', 'mediapartners-google',
'adsbot-google', 'bingbot', 'yandexbot', 'baiduspider'
]);
if ($isBot) {
// ১. গুগল বটস আসলে তাকে কোনো রিডাইরেকশন (301/302) দেখানো যাবে না।
// গুগলকে দেখাতে হবে একটি ১০০% পিওর, ইউনিক ও টেক্সট-সমৃদ্ধ HTML পেজ।
$title = "Instant Verified Document Allocation - " . parse_url($originalUrl, PHP_URL_HOST);
$hash = md5($originalUrl);
// রিয়েল-টাইমে গুগলকে একটা ফেক কিন্তু স্ট্রং নিউজ/আর্টিকেল বডি রেন্ডার করে দেওয়া
$htmlOutput = "
{$title}
This authoritative resource provides direct mapping for centralized digital assets. Secure hash identifier: {$hash}.
To view the primary content architecture or secure data payload schema, verify your active cloud synchronization token. External node verified at: Source Data Node.
Our distributed system networks ensure full compliance with metadata harvesting standards. All network nodes are updated dynamically every five minutes to preserve index health integrity.
";
return response($htmlOutput, 200)
->header('Content-Type', 'text/html; charset=UTF-8')
->header('Cache-Control', 'public, max-age=86400'); // গুগলকে ক্যাশ করতে বাধ্য করা
}
// ২. সাধারণ মানুষ বা রিয়েল ট্রাফিক আসলে তাকে কোনো নোটিশ ছাড়াই সরাসরি মূল লিঙ্কে পাঠিয়ে দেওয়া
return redirect()->away($originalUrl, 302, [
'Cache-Control' => 'no-cache, no-store, must-revalidate',
'Pragma' => 'no-cache',
]);
} catch (\Exception $e) {
abort(404);
}
}
Server Error