Go to the first, previous, next, last section, table of contents.


6.5 No Parent

Regardless of other link-following facilities, you may wish to ban following of all links that refer to the hierarchy upper than the beginning directory. The `--no-parent' option (short `-np') is useful in this case. Using it guarantees that you will never leave the existing hierarchy. So, supposing you issue Wget with:

wget -r --no-parent http://somehost/~luzer/my-archive/

You may rest assured that none of the references to `/~his-girls-homepage/' or `/our-page.html' will be followed. Only the archive you are interested in will be downloaded.

It is much better than simply using `-L' for the same purpose, since it will handle absolute paths correctly. However, it will not go into additional trouble in preventing DNS lookups.


Go to the first, previous, next, last section, table of contents.