Synapse: Use a specific user-agent for fetching link previews

Created on 28 Jan 2017  路  2Comments  路  Source: matrix-org/synapse

Synapse fetches with Link Previews with something the default user agent:

Synapse/0.18.7 (b=matrix-org-hotfixes,3c9acde,dirty)

Instead a separate user agent with 'bot' in the name and a link to a page would indicate that these fetches are legitimate. Something like this:

Synapse-LinkFetchBot/0.18.7 (+http://matrix.org/bot.html)

help wanted

Most helpful comment

I guess this issue is why all YouTube Music previews tell:

Your browser is deprecated. Please upgrade.
Sorry, YouTube Music is not optimized for your browser. Check for updates or try Google Chrome. Get Chrome

(Thanks for original English, Davo)

All 2 comments

as noted by #4376, the very specific user agent is also something of a data leak. Including a version string is inappropriate.

I guess this issue is why all YouTube Music previews tell:

Your browser is deprecated. Please upgrade.
Sorry, YouTube Music is not optimized for your browser. Check for updates or try Google Chrome. Get Chrome

(Thanks for original English, Davo)

Was this page helpful?
0 / 5 - 0 ratings