Wget: Error 403- Can I get around this?
Is there a way I can get around an error 403: Forbidden when using wget?
|
If this is a problem related only to wget, but not other browsers, you may be able to spoof the site by using the wget '-U' option, giving it a user-agent description of another browser.
Code:
wget -U 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4' http://yourURL.com Code:
nc -l -p 8000 -v --- rod. |
Ty, I didn't know you could do that. (unfortunatly, it still didn't work)
Ok, so here's the user agent Code:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.10) Gecko/20071115 Iceweasel/2.0.0.10 (Debian-2.0.0.10-0etch1) Code:
***@***:/dir$ wget -U= 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.10) Gecko/20071115 Iceweasel/2.0.0.10 (Debian-2.0.0.10-0etch1)' -r http://www.wizards.com/magic/images/mtgcom/wallpapers (ps if I did get this to work I would of corse use the --limit-rate and -w options. |
Nope. The -U option does not need a '=' between it and the argument.
--- rod. |
I was not able to use Mozilla to access the URL you cited, either. Seems to be a different problem.
--- rod. |
Well, that worked for a different website. Anyone got any other suggestions?
|
If you go to the URL you specified using firefox, you get the same error (at least I do). wget won't fix what doesn't work anyway.
|
cant get rid of ERROR:403
Quote:
I did the same as advised by you, but i am still getting ERROR:403 i used the user agent as-- Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4 help needed. |
Well, there was one specific site that wouldn't accept the entire user agreement, like the one u posted. I tried simply
Code:
wget -U firefox http://xxx.xxx.com/ |
i am still stuck
Quote:
|
Since your browser ID contains whitespace characters, you must enclose it in quotes, "double" or 'single'.
--- rod. EDIT: Oops. Misread that post, thinking the URL was part of the browser ID. Never mind. |
Would you mind sharing the URL? That way other people could work on the same situation. If not, that's ok.
|
Thanks!
'Just wanted to say THANKS- I've been having this problems and using -U Mozilla works great.
(I wrote a quick script to update my web site with curl if the version on my disk differs from a cached copy- much nicer to run a command than all these strange gooey programs...) -r |
Thanks
Many thanks to those who have helped enormously!
wget -U firefox ... So simple, so elegant! |
Well, I agree, that was a very bright answer that helped me: -U mozilla
Very good. |
All times are GMT -5. The time now is 07:51 PM. |