1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[HTACESS HELP]How To Block Open Site Explorer From Showing Links Pointing To My 301d Site?

Discussion in 'Black Hat SEO' started by Rua999, Feb 1, 2014.

  1. Rua999

    Rua999 Power Member

    Joined:
    Jun 25, 2011
    Messages:
    630
    Likes Received:
    407
    I am currently using this .htaccess code to 301 my old sites to my new sites..

    Code:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RedirectMatch permanent /.* http://mysite.com
    </IfModule>
    # END WordPress


    But how can i combine that with this code that i have taken from this thread on how to stop competitors spying on your links to create a .htacess that will not only 301 my old sites, but also block bots from open site explorer etc from seeing my old site's links showing up in my new site's backlink profile?

    At the moment, ahrefs doesn't seem to be picking it up and doesn't even show that there are redirects in place.. but if i look at my new site's backlink profile on open site explorer i can see all my old 301'd site's links.. and all my new links.

    Anyway here's the code from that thread.. if anybody could help i would really appreciate it.. Thanks! :)

    Code:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    
    RewriteCond %{HTTP_USER_AGENT} .*Twice.* [OR]
    RewriteCond %{HTTP_USER_AGENT} .*Yand.* [OR]
    RewriteCond %{HTTP_USER_AGENT} .*Yahoo.* [OR]
    RewriteCond %{HTTP_USER_AGENT} .*Voil.* [OR]
    RewriteCond %{HTTP_USER_AGENT} .*libw.* [OR]
    RewriteCond %{HTTP_USER_AGENT} .*Java.* [OR]
    RewriteCond %{HTTP_USER_AGENT} .*Sogou.* [OR]
    RewriteCond %{HTTP_USER_AGENT} .*psbot.* [OR]
    RewriteCond %{HTTP_USER_AGENT} .*Exabot.* [OR]
    RewriteCond %{HTTP_USER_AGENT} .*boitho.* [OR]
    RewriteCond %{HTTP_USER_AGENT} .*ajSitemap.* [OR]
    RewriteCond %{HTTP_USER_AGENT} .*Rankivabot.* [OR]
    RewriteCond %{HTTP_USER_AGENT} .*DBLBot.* [OR]
    RewriteCond %{HTTP_USER_AGENT} .*MJ1.* [OR]
    RewriteCond %{HTTP_USER_AGENT} .*ask.*
    RewriteCond %{HTTP_USER_AGENT} .*AhrefsBot.*
    RewriteRule ^(.*)$ http://anysite.com/ [L,R=301]
    
    Order Allow,Deny
    Allow from all
    Deny from 110.0.0.0/8
    Deny from 111.0.0.0/8
    Deny from 112.0.0.0/5
    Deny from 120.0.0.0/6
    Deny from 124.0.0.0/8
    Deny from 125.0.0.0/8
    Deny from 147.0.0.0/8
    Deny from 169.208.0.0
    Deny from 175.0.0.0/8
    Deny from 180.0.0.0/8
    Deny from 182.0.0.0/8
    Deny from 183.0.0.0/8
    Deny from 202.0.0.0/8
    Deny from 203.0.0.0/8
    Deny from 210.0.0.0/8
    Deny from 211.0.0.0/8
    Deny from 218.0.0.0/8
    Deny from 219.0.0.0/8
    Deny from 220.0.0.0/8
    Deny from 221.0.0.0/8
    Deny from 222.0.0.0/8
    
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
     
  2. ChrisX

    ChrisX Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 8, 2011
    Messages:
    229
    Likes Received:
    124
    Gender:
    Male
    Home Page:
    Replace RewriteRule ^index\.php$ - [L] and all the other lines up to </ifModule> with
     
    • Thanks Thanks x 1