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

Duplicate your competitor website

Discussion in 'Black Hat SEO' started by red2004, Jul 8, 2008.

  1. red2004

    red2004 Junior Member

    Joined:
    Aug 17, 2007
    Messages:
    129
    Likes Received:
    28
    I would like to know how to duplicate competitors website.

    Before I joined in one seo contest and while the contest is ingoing I saw one website which it has a duplicate of my content as it is but all the links redirecting to me has inappropriate keyword on it like XXX, warez, sofware.. something like that..

    Now I want to know how they do that.. someone told me it's cloaking and soem told me they use curl.. I don't know where to start to find out how to do that..

    Hope someone can enlighten me..
     
  2. oldenstylehats

    oldenstylehats Elite Member Premium Member

    Joined:
    Apr 10, 2008
    Messages:
    1,893
    Likes Received:
    1,196
    You could always try copying the source by hand or using a program like HTTrack:
    Code:
    http://www.httrack.com/
     
  3. oldenstylehats

    oldenstylehats Elite Member Premium Member

    Joined:
    Apr 10, 2008
    Messages:
    1,893
    Likes Received:
    1,196
    I personally wouldn't copy anything beyond structure. I don't know that there is an exact % of actual content that you can copy, but I imagine you'd be pretty safe if you structured the stolen content correctly. For example, blockquote tags, if styled with CSS correctly, can appear exactly as normal text to end users, but will still be semantically accurate to SEs. I'm not saying you will get away with this technique, it's just something to keep in mind.
     
  4. jaeden

    jaeden BANNED BANNED

    Joined:
    Jun 3, 2008
    Messages:
    232
    Likes Received:
    28
    /me gets a crazy idea for a new piece of software
     
  5. red2004

    red2004 Junior Member

    Joined:
    Aug 17, 2007
    Messages:
    129
    Likes Received:
    28
    * I mean, I don't want to copy all the files. I remember someone told me to use Curl to get the website and put to the duplicate website and when the when search engine crawl it will shows the duplicate spam content but when normal people sees it will only show a normal page...
     
  6. red2004

    red2004 Junior Member

    Joined:
    Aug 17, 2007
    Messages:
    129
    Likes Received:
    28
    I got it now... I can get the competitors website, appearing on my domain..

    code is this

    PHP:
    <?php 
    $url 
    "sample.com";
    $ch curl_init($url);
    curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
    $curl_scraped_page curl_exec($ch);
    curl_close($ch);


    echo 
    $curl_scraped_page;
     

    ?>
    the only thing i need to do... is get a the links (<a> or <href>) to the source code and place with my own link...

    Thanks
     
  7. red2004

    red2004 Junior Member

    Joined:
    Aug 17, 2007
    Messages:
    129
    Likes Received:
    28
    anyone can help here please....
     
  8. annua

    annua Newbie

    Joined:
    Feb 18, 2008
    Messages:
    33
    Likes Received:
    3
    you could try str_replace() or preg_match_all(), it somewhat like a proxy, check this out http://snoopy.sourceforge.net/. yet its very hard to meet all html tags by use a solid script or method if your site has a complex structure
     
  9. red2004

    red2004 Junior Member

    Joined:
    Aug 17, 2007
    Messages:
    129
    Likes Received:
    28
    I tried to check on this.. but I don't know how to use this...

    I've been working until now since I start this thread but still! no luck.. can someone can give me a complete list or complete code how to do this.. It's pain in the ass.

    using CURL & PHP to scrap a website then get all the links(websiteurl) and change with my own links (myownURL)

    -----------------------------

    So the code below works to scrap the website... The only problem is I don't know how to get all the links of the website and change with my own URL...

    Code:
    <?php
    
    $url = "http://www.samplewebsite.com"; // put any website to scrap on...
    $ch = curl_init() or die(curl_error());
    curl_setopt($ch, CURLOPT_URL,$url);
    $data=curl_exec($ch) or die(curl_error());
    
    echo $data;
    
    echo curl_error($ch);
    curl_close($ch);
    
    
     }
    
    ?>
    

    I even try to use str_replace() or preg_match_all() because Im a newbie I still don't know how to use it.. I got a sample code in other forum when I google it.. and i tried to use this

    Code:
    $data = str_replace("http://www.samplewebsite", "http://www.tochangewithnewsamplewebsite.com/", $data);   echo $data
    
    but still no luck..

    I hope someone can guide me here..
     
    Last edited: Jul 9, 2008
  10. annua

    annua Newbie

    Joined:
    Feb 18, 2008
    Messages:
    33
    Likes Received:
    3
    hi, try this

    Code:
            function get_contents($url){
                    $ch = curl_init();     
                    curl_setopt ($ch, CURLOPT_URL, $url);     
                    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
                    curl_setopt ($ch, CURLOPT_TIMEOUT, 1000); 
                    $file_contents = curl_exec($ch);     
                    curl_close($ch);
                    return $file_contents;
            }
            
            $data=get_contents("http://www.google.com");
            $data = str_replace("google","yahoo",$data); 
            echo $data;
    
    but, i dont think it could meet all your needs, coz it miss pics js css unless you do some tough jobs to make it more sense
     
  11. PanamaHosting

    PanamaHosting BANNED BANNED

    Joined:
    Jun 22, 2008
    Messages:
    133
    Likes Received:
    56
    very neat app.
     
  12. red2004

    red2004 Junior Member

    Joined:
    Aug 17, 2007
    Messages:
    129
    Likes Received:
    28

    yeah... now I just realize about the CSS, JS and the images,

    can I just put @include for css and JS??
     
  13. annua

    annua Newbie

    Joined:
    Feb 18, 2008
    Messages:
    33
    Likes Received:
    3
    of course, you can try it. and there are too much situations like relative urls, parent urls, irregular tags, useless spaces etc you should resolve before it become a sophisticated script, yet it also depends on how complex your site is. since im not expert, i just give you my advice from my experiences :)
     
  14. red2004

    red2004 Junior Member

    Joined:
    Aug 17, 2007
    Messages:
    129
    Likes Received:
    28
    but your advice is good and thanks for your time help me to fix the codes.. I know it has alot of coding i need to do.. atleast I have the framework..

    THanks Again
     
  15. mydssbin

    mydssbin Newbie

    Joined:
    Mar 18, 2008
    Messages:
    33
    Likes Received:
    1
    is there a way to just download their database, for example prices, description, stock and so on....

    Thanks!!