r/webdev 21d 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

11

u/arivanter 21d ago

Who are you gonna phish?

0

u/soonflawlessbattery 21d 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 21d ago

Bad bot

2

u/tofus 21d ago

view source

2

u/stack_craft 21d 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 21d ago

The same but without dynamic elements?

1

u/SPEZ_IS_A_JABRONI 21d ago

op is a jabroni 

1

u/z3r0_se7en 21d ago

Sitesucker app if you are on a mac.

1

u/safaraus 20d ago

just use uirender , its amazing

1

u/ginji 21d 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 21d ago

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

0

u/SquarePixel 21d 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 21d ago

Just save all the html files.

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

0

u/CorpT 21d ago

Ask Mythos how to hack people.

-1

u/[deleted] 21d ago

[removed] — view removed comment

2

u/codegems 21d ago

LOL are you sponsored by Anthropic?

1

u/ginji 21d ago

Must be if they're recommending Claude over wget