Redirect 301 without Detectable

elvin19

Registered Member
Joined
Nov 30, 2020
Messages
90
Reaction score
55
Hello
I need redirect 301 an old domain with authority, for get it's seo power to my main domain, but i don't want its being detectable with any ahrefs or any other seo tools bot. it must only detect and see by google bots. I used cloudflare WAF but its not working well and redirected domain is showing my main domain analysis on ahrefs, any solution for it by htaccess or cloudflare config?
Better to not redirect 301 for any agent beside google.
 
I know that you are aware of result for this kind of actions; manipulating redirects in a way that selectively targets search engine bots while hiding activity from SEO tools is a complex and controversial practice that could violate search engine guidelines and lead to penalties or a loss of rankings. Anyway, I'm going to give you all I know about this. Here’s how you can handle redirecting an old domain to pass authority without making it obvious to tools like Ahrefs or SEMrush. Basically, you want the redirect to work for Googlebot but block it for most SEO tools. Here are some steps:
  1. .htaccess Method: You can set up .htaccess to redirect only Googlebot by checking its user agent. Something like this:

    RewriteEngine On
    RewriteCond %{HTTP_USER_AGENT} Googlebot [NC]
    RewriteRule ^(.*)$ https://yourmainwebsite.com/$1 [R=301,L]
    RewriteCond %{HTTP_USER_AGENT} !Googlebot [NC]
    RewriteRule ^ - [L]


    This ensures only Googlebot gets the 301 redirect while everyone else gets nothing.

  2. Cloudflare Rules: Cloudflare is a great option too. You can use Workers to redirect based on the user-agent. Here’s an example:

    async function handleRequest(request) {
    const userAgent = request.headers.get("User-Agent") || "";
    if (userAgent.includes("Googlebot")) {
    return Response.redirect("https://yourmainwebsite.com", 301);
    }
    return fetch(request);
    }

    addEventListener("fetch", event => {
    event.respondWith(handleRequest(event.request));
    });
  3. Block SEO Tools: To avoid seo tools like ahrefs, semrush, etc., crawling your redirect, block their bots explicitly. Add this to robots.txt or use Cloudflare firewall rules to stop them:

    User-agent: AhrefsBot
    Disallow: /
    User-agent: SEMrushBot
    Disallow: /


    Or just block their user agents on the server.
Just keep in mind that Google can detect cloaking or selective redirection, so it’s risky. If they catch on, you could get penalized.Instead of going stealth, you could just properly 301 redirect and integrate the old domain naturally into your main site. Less risk, and it works long-term. Whatever you set up, test it like crazy to make sure it’s working and doesn’t mess up your SEO.

Play it smart and weigh the risks before going all in! ;)
 
I know that you are aware of result for this kind of actions; manipulating redirects in a way that selectively targets search engine bots while hiding activity from SEO tools is a complex and controversial practice that could violate search engine guidelines and lead to penalties or a loss of rankings. Anyway, I'm going to give you all I know about this. Here’s how you can handle redirecting an old domain to pass authority without making it obvious to tools like Ahrefs or SEMrush. Basically, you want the redirect to work for Googlebot but block it for most SEO tools. Here are some steps:
  1. .htaccess Method: You can set up .htaccess to redirect only Googlebot by checking its user agent. Something like this:

    RewriteEngine On
    RewriteCond %{HTTP_USER_AGENT} Googlebot [NC]
    RewriteRule ^(.*)$ https://yourmainwebsite.com/$1 [R=301,L]
    RewriteCond %{HTTP_USER_AGENT} !Googlebot [NC]
    RewriteRule ^ - [L]


    This ensures only Googlebot gets the 301 redirect while everyone else gets nothing.

  2. Cloudflare Rules: Cloudflare is a great option too. You can use Workers to redirect based on the user-agent. Here’s an example:

    async function handleRequest(request) {
    const userAgent = request.headers.get("User-Agent") || "";
    if (userAgent.includes("Googlebot")) {
    return Response.redirect("https://yourmainwebsite.com", 301);
    }
    return fetch(request);
    }

    addEventListener("fetch", event => {
    event.respondWith(handleRequest(event.request));
    });
  3. Block SEO Tools: To avoid seo tools like ahrefs, semrush, etc., crawling your redirect, block their bots explicitly. Add this to robots.txt or use Cloudflare firewall rules to stop them:

    User-agent: AhrefsBot
    Disallow: /
    User-agent: SEMrushBot
    Disallow: /


    Or just block their user agents on the server.
Just keep in mind that Google can detect cloaking or selective redirection, so it’s risky. If they catch on, you could get penalized.Instead of going stealth, you could just properly 301 redirect and integrate the old domain naturally into your main site. Less risk, and it works long-term. Whatever you set up, test it like crazy to make sure it’s working and doesn’t mess up your SEO.

Play it smart and weigh the risks before going all in! ;)
than you so much
 
Back
Top