Last modified: 2014-11-09 17:46:17 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T71204, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69204 - weblinkchecker.py uses a fake user-agent
weblinkchecker.py uses a fake user-agent
Status: NEW
Product: Pywikibot
Classification: Unclassified
weblinkchecker.py (Other open bugs)
core-(2.0)
All All
: Low enhancement
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-06 20:43 UTC by John Mark Vandenberg
Modified: 2014-11-09 17:46 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description John Mark Vandenberg 2014-08-06 20:43:13 UTC
weblinkchecker.py (core) contains this comment:

# we fake being Firefox because some webservers block unknown
# clients, e.g. https://images.google.de/images?q=Albit gives a 403
# when using the PyWikipediaBot user agent.
'User-agent': 'Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8) Gecko/20051128 SUSE/1.5-0.1 Firefox/1.5',

Which was added to core in Jan 2007:
https://www.mediawiki.org/wiki/Special:Code/pywikipedia/3165

Faking the user-agent should be an option, default disabled, or only used for servers known to be problematic.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links