#1552·gopeed

[Feature Request] Support domain-specific custom HTTP headers for downloads

Author: 351jklbhjkCreated Sep 25, 2026Updated Sep 25, 2026

Description

Gopeed already supports setting custom HTTP request headers for individual download tasks, but it would be very useful to support persistent header rules based on the download domain.

For example, different download sites may require different request headers such as:

  • User-Agent
  • Referer
  • Cookie
  • Authorization
  • Host
  • other arbitrary custom headers

Currently, these headers need to be entered manually for individual tasks. When frequently downloading files from several different domains, this becomes repetitive.

Proposed behavior

Add a configurable list of domain/header rules, for example:

example.com
  User-Agent: Mozilla/5.0 ...
  Referer: https://example.com/

*.download.example.org
  User-Agent: Custom-UA
  Authorization: Bearer ...

When a new HTTP/HTTPS download task is created, Gopeed could automatically apply the matching header rule according to the URL's domain.

Ideally, the rule system could support:

  1. Exact domains, such as example.com
  2. Wildcard/subdomain matching, such as *.example.com
  3. Multiple arbitrary header key/value pairs per rule
  4. Persistent storage in settings
  5. Manual per-task headers overriding the automatically applied domain rule when needed

Use case

Some download servers behave differently depending on User-Agent, Referer, cookies, authorization headers, or other request headers.

Being able to save different header profiles for different domains would make Gopeed much more convenient as a browser download manager and avoid repeatedly entering the same headers.

Related issues

  • #841 added support for custom headers in download task advanced options.
  • #822 added/customized User-Agent support through the API.

This request is different: it focuses on automatically applying persistent custom headers based on the download domain.

Thanks for considering it.