wget recursive limited within subdomain

Posted by Paul Seangwongree on Super User See other posts from Super User or by Paul Seangwongree
Published on 2012-10-08T19:48:49Z Indexed on 2012/10/13 9:42 UTC
Read the original article Hit count: 176

Filed under:
|

I want to download the following subdomain with the recursive option using wget:

www.example.com/A/B

So if that URL has links to www.example.com/A/B/C and www.example.com/A/B/D, these two should also be downloaded.

But I don't want anything outside the www.example.com/A/B subdomain to be downloaded. For example, if www.example.com/A/B/C has a link back to www.example.com, the page www.example.com should not be downloaded.

What wget command should I use?

© Super User or respective owner

Related posts about linux

Related posts about wget