I'm using wget to download useful website recursively:

wget -k -m -r -q -t 1 http://www.web.com/

But external website also downloaded along with the website I want.

How to prevent this external website from being downloaded?

link|improve this question
feedback

2 Answers

Try -D or --domains, it is a list of domains that will be followed.

link|improve this answer
feedback

Type "man wget", press the "/" key, type "domain" and hit enter.

link|improve this answer
RTFM answers are discouraged on serverfault. For one thing, many *nix systems have poorly configured man pages. – kmarsh Aug 26 '10 at 16:50
Not to mention that the wget man page is huge. So it's not unsurprising to miss the two lines applicable to this question. – Christopher Karel Aug 26 '10 at 18:02
feedback

Your Answer

 
or
required, but never shown