Bug 449305

Summary: iblocklist (default) blocks KIO user agent
Product: [Applications] ktorrent Reporter: Luke-Jr <luke-jr+kdebugs>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: ASSIGNED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: All   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Luke-Jr 2022-01-29 00:29:29 UTC
SUMMARY
iBlockList apparently considers KIO's default user agent to be "impersonat[ing] browsers when accessing our service so [they] have put a stop to that."

In practice, "Mozilla/5.0 (X11; Linux x86_64) KIO/5.88 ktorrent/20.12.3" is being sent, so I guess they consider "Mozilla" to imply a web browser.

STEPS TO REPRODUCE
1. Enable IP filter plugin
2. Attempt to update it from the default URI

OBSERVED RESULT
Error

EXPECTED RESULT
Successful IP list download

ADDITIONAL INFORMATION
I was able to downgrade KIO to 5.80 to get the Browser Identification module for System Settings, then used that to spoof a Wget user agent for list.iblocklist.com. After upgrading KIO back to 5.88, KTorrent now works again.

It seems like perhaps the Browser Identification module should be restored, and KTorrent's default user agent adapted to not imply a browser (if iblocklist is stubborn and keeps the block as-is).
Comment 1 Bug Janitor Service 2022-02-26 16:29:08 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/ktorrent/-/merge_requests/57