Duplicate your competitor website

red2004

Junior Member
Joined
Aug 17, 2007
Messages
143
Reaction score
49
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..
 
You could always try copying the source by hand or using a program like HTTrack:
Code:
http://www.httrack.com/
 
Oldenstulehats,

How much copying % wise to you think you can do before you get forked!
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.
 
/me gets a crazy idea for a new piece of software
 
* 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...
 
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($ch, CURLOPT_RETURNTRANSFER, true);
$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
 
anyone can help here please....
 
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
 
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
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:
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
 
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


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

can I just put @include for css and JS??
 
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 :-)
 
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 :-)

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
 
is there a way to just download their database, for example prices, description, stock and so on....

Thanks!!
 
Back
Top