78.gif

Search (advanced search)
Use this Search form before posting, asking or make a new thread.
Tips: Use Quotation mark to search words (eg. "How To Make Money Online")

12-14-2011, 11:13 PM
Post: #1
Show any website under Your Domain Name - Duplicate Content Script
If you want to show a website under your Domain Name use the code below:

PHP Code:
<?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;
 

?>

You could always try copying the source by hand or using a program like HTTrack:
Code:
http://www.httrack.com/

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.

Or Use the code below:
PHP Code:
<?php
   
function get_contents($url){
                
$ch curl_init();     
                
curl_setopt ($chCURLOPT_URL$url);     
                
curl_setopt ($chCURLOPT_RETURNTRANSFER1);
                
curl_setopt ($chCURLOPT_TIMEOUT1000); 
                
$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;
?>
Though images, css and js won't work.

I'll share more helpful information/guide soon. [Image: smile.gif]
Press THANKS or REP me if you found it useful. [Image: cool.gif]
12-15-2011, 04:13 PM
Post: #2
RE: Show any website under Your Domain Name - Duplicate Content Script
so what's the use for this?
01-03-2014, 05:32 PM
Post: #3
RE:
Hi all. I think best black hat forum is best forum to SEO.




29.gif