【发布时间】:2017-11-06 03:08:53
【问题描述】:
http://filedownloads.co.in/downloads/domain/October
在上面给出的 web 目录中,大约有 30 个 zip 文件,如
http://filedownloads.co.in/downloads/domain/October/2017-10-09hhwerahhqw_country-specific-database.zip
或
http://filedownloads.co.in/downloads/domain/October/2017-10-20weroiunewd_country-specific-database.zip
我想下载该目录的所有文件。我已经尝试了堆栈溢出上与我的问题相关的所有可用选项,但每次我得到相同的错误 403:禁止。
我尝试了以下命令:
wget --user-agent="Mozilla" -r -np -A.zip http://filedownloads.co.in/downloads/domain/October
和
wget -r -l1 -H -t1 -nd -N -np -A.zip -erobots=off http://filedownloads.co.in/downloads/domain/October/
和
wget -U firefox -r -np http://filedownloads.co.in/downloads/domain/October/
【问题讨论】:
标签: .htaccess httprequest wget http-status-code-403 httpforbiddenhandler