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

i want to cloak everybody but google

Discussion in 'Cloaking and Content Generators' started by stealthemblind, Jan 21, 2009.

  1. stealthemblind

    stealthemblind Registered Member

    Joined:
    Jan 10, 2009
    Messages:
    51
    Likes Received:
    7
    i have a website that i want to cloak everyone but google does anyone know how i would write this in .htaccess

    it would be nice also if someone could pust a .htaccess redirect for if there is NO Referrer.
     
  2. stealthemblind

    stealthemblind Registered Member

    Joined:
    Jan 10, 2009
    Messages:
    51
    Likes Received:
    7
    i have no clue what i am doing so if ANY of this is right its pure luck.

    what im trying to do is if the referrer is anyone but stealingthemblind.com i want it to load index.html but if the referrer is stealignthemblind.com i want it to load index.php



    Code:
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?stealingthemblind.com/.*$ [NC]
    RewriteRule /*$ / [L,R]
    RewriteBase /
    RewriteCond %{HTTP_USER_AGENT} .* [OR]
    RewriteRule /*$ index.html [L,R]
     
  3. Jagged55

    Jagged55 Power Member

    Joined:
    Mar 27, 2008
    Messages:
    747
    Likes Received:
    325
    Occupation:
    Internet Marketing
    Location:
    Canada
    If you are trying to block google from spidering your pages, block their ip addresses. Subscribe to a service like spiderspy...that's your best bet.

    Edit: block their ip addresses = show them only certain pages
     
    Last edited: Jan 21, 2009
  4. stealthemblind

    stealthemblind Registered Member

    Joined:
    Jan 10, 2009
    Messages:
    51
    Likes Received:
    7
    okay let me rephrase this.
    after spending the last few hours trying to figure it out.


    i want to force all external links to load index.html but internal site links to load normally.