Trick: Clone any website from the server side

Gentle Man

Member
Jan 20, 2021
44
30
18
Welcome guys in this tutorial I will teach you how to clone any website in just minute
1- Create file with name index.php
Copy and paste this code
PHP:
<?php
$clone = file_get_contents("https://example.com");
echo $clone;
?>
Save and close index.php file

2- change example.com with URL you're need clone
Upload file to your hosting and go to your domain

That's all . Enjoy
 
Last edited:

lalbilla

Well-known member
Null Master
Trusted Uploader
Dec 7, 2020
210
490
63
freelancerautobidder.com
Welcome guys in this tutorial I will teach you how to clone any website in just minute
1- Create file with name index.php
Copy and paste this code
PHP:
<?php
$clone = file_get_contents("example.com");
echo $clone;
?>
Save and close index.php file

2- change example.com with URL you're need clone
Upload file to your hosting and go to your domain

That's all . Enjoy
First: link should be with https://

2nd!
Using PHP CURL is better option which you can use fake referral, custom header and other small things.
And also, you need to replace original website link with your own, so incase someone click on that link it won't redirect to original server.

with 2 line code it's not going to clone.

Thanks,
 

3979

Well-known member
Trusted Uploader
Jul 23, 2019
281
142
50
i can see many site clone xvid**.com.
 

GadaG

Active member
Mar 19, 2021
399
194
43
So the complete code is...? 😁
First: link should be with https://

2nd!
Using PHP CURL is better option which you can use fake referral, custom header and other small things.
And also, you need to replace original website link with your own, so incase someone click on that link it won't redirect to original server.

with 2 line code it's not going to clone.

Thanks,
 
Last edited:

captain.bkx

Active member
May 3, 2022
173
115
43
First: link should be with https://

2nd!
Using PHP CURL is better option which you can use fake referral, custom header and other small things.
And also, you need to replace original website link with your own, so incase someone click on that link it won't redirect to original server.

with 2 line code it's not going to clone.

Thanks,
AAothe complete code is...? 😁

Yeah, waiting for complete code from @lalbilla 😄😁
 

Ighalo87

Active member
Jan 18, 2020
400
55
28
Welcome guys in this tutorial I will teach you how to clone any website in just minute
1- Create file with name index.php
Copy and paste this code
PHP:
<?php
$clone = file_get_contents("https://example.com");
echo $clone;
?>
Save and close index.php file

2- change example.com with URL you're need clone
Upload file to your hosting and go to your domain

That's all . Enjoy
Is this still working
 

zemag

Active member
Trusted Uploader
Banned User
May 16, 2022
242
171
43
I've tried this but because of the html source that we want to 'clone' are using relative path making the 'clone' site broken. All assets sources (mostly images and scripts) are pointing to the wrong url which is new domain url instead of the old one.

I know this could be solved by doing some rework on the code, like find and replace those relative path to absolute path of the site that we want to be cloned.
 

Ighalo87

Active member
Jan 18, 2020
400
55
28
I've tried this but because of the html source that we want to 'clone' are using relative path making the 'clone' site broken. All assets sources (mostly images and scripts) are pointing to the wrong url which is new domain url instead of the old one.

I know this could be solved by doing some rework on the code, like find and replace those relative path to absolute path of the site that we want to be cloned.
Please if you later find a fix Can you post the code
 

thambyz

Active member
Mar 18, 2021
103
41
28
You can use Httrack software, you can clone complete website along with inner pages with working menu if it is a simple static site.
 
  • Like
Reactions: Siscoks

Ighalo87

Active member
Jan 18, 2020
400
55
28
You can use Httrack software, you can clone complete website along with inner pages with working menu if it is a simple static site.
Have not been able to successfully use this software. ... It just keep scraping and scraping and never end... sometimes the file is as high as 10 gig before I cancel.
 

thambyz

Active member
Mar 18, 2021
103
41
28
Have not been able to successfully use this software. ... It just keep scraping and scraping and never end... sometimes the file is as high as 10 gig before I cancel.
As i said, it is good if it is a simple static site. You can use rules to ignore some parts or set link depth for scraping etc. I used it around 2 years ago and it was good at cloning. It also adds something like "Cloned by httrack" line in html files but you can disable or change that from settings
 

kelley Mak Sec

Active member
May 4, 2022
238
97
28
can anyone help me with one question
If we clone complete website then is it possible to host on live server.. what about sql db???
Pls need assistance
 

Gentle Man

Member
Jan 20, 2021
44
30
18
can anyone help me with one question
If we clone complete website then is it possible to host on live server.. what about sql db???
Pls need assistance
This works as a webview only and you cannot host it in your own server .
Also, you cannot control the SQL
If you have average knowledge of php You can edit and change the logo and some content
 
  • Like
Reactions: kelley Mak Sec

Latest posts

Forum statistics

Threads
69,226
Messages
908,438
Members
237,027
Latest member
YoGGe

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu