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

better ways of cloaking?

Discussion in 'Cloaking and Content Generators' started by davidmann, Dec 1, 2007.

  1. davidmann

    davidmann Registered Member

    Joined:
    Jan 4, 2007
    Messages:
    52
    Likes Received:
    31
  2. gts6

    gts6 Executive VIP

    Joined:
    Aug 22, 2007
    Messages:
    799
    Likes Received:
    348
    just name the file index.php instead of cloak.php

    it should then run as long as there is no index.htm or index.html in that directory, or you could set it up at your host to specifIcally use index.php
     
  3. Pryda

    Pryda Registered Member

    Joined:
    Sep 9, 2007
    Messages:
    94
    Likes Received:
    35
    Try this as your .htaccess:

    Code:
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /cloak.php?x=$1 [L]
    It rewrites every URL that doesn't match a file or directory to www.yoursite.com/cloak.php?x=...

    And then in your cloak.php:
    Code:
    <?php
    if ($_GET["x"] == "cloak")
    {
    header("Location: http://www.gotothissite.com");
    }
    ?>
    Or something like that.