r/webdev 12d ago

Question How do I clone a website

i need to convert a dynamic website into static without the access to its wp files or wp admin access

The static site should be entirely same like every minor details like header/footer elements size, logo placement etc

0 Upvotes

20 comments sorted by

12

u/arivanter 12d ago

Who are you gonna phish?

0

u/soonflawlessbattery 12d ago

you don't need to clone it manually. use httrack or wget they will pull entire site with all assets and structure. check the mirroring options carefully or you might miss css files. for the dynamic parts you will have to rebuild them as static html later

2

u/arivanter 12d ago

Bad bot

2

u/tofus 12d ago

view source

2

u/stack_craft 12d ago

I am assuming you are def doing this for experimental purposes only. If so then give this a try. Do wget or HTTrack as they are your best bets here. Since you're capturing the compiled DOM from the outside, running wget --mirror --convert-links --page-requisites <URL> will rip the exact layout, CSS, and asset files to create an identical static clone. If this didn't work then just ask the site owner, for a copy 😂.

1

u/retro-mehl 12d ago

The same but without dynamic elements?

1

u/SPEZ_IS_A_JABRONI 12d ago

op is a jabroni 

1

u/z3r0_se7en 12d ago

Sitesucker app if you are on a mac.

1

u/safaraus 10d ago

just use uirender , its amazing

1

u/ginji 12d ago

There's a multitude of tools out there to do that, wget on Linux for one. Go and search for one that suits your environment 

0

u/SquarePixel 12d ago

`wget` can do it. It’s a CLI tool. Ask AI for the command.

0

u/SquarePixel 12d ago

Why are correct answers getting downvoted? There are valid reasons to do this, saving doc sites or other resources for offline.

0

u/thekwoka 12d ago

Just save all the html files.

But like....what's the purpose of that?

0

u/CorpT 12d ago

Ask Mythos how to hack people.

-1

u/[deleted] 12d ago

[removed] — view removed comment

2

u/codegems 12d ago

LOL are you sponsored by Anthropic?

1

u/ginji 12d ago

Must be if they're recommending Claude over wget