This both hides the origin's hostname from external servers, and fixes referer checks in some services (like the qBittorrent web UI).
@@ -12,7 +12,7 @@ export const Link = ({ name, host }: LinkProps) => {
return (
<div className={css.root}>
<div className={css.link}>
- <a href={url}>{url}</a>
+ <a href={url} rel="noreferrer">{url}</a>
</div>
<Copy text={url} />
@@ -7,7 +7,7 @@ export interface ShortLinkProps {
export const ShortLink = ({ url }: ShortLinkProps) => {
<div className={css.shortlink}>
- <a href={ensureHttp(url)}>{stripScheme(url)}</a>
+ <a href={ensureHttp(url)} rel="noreferrer">{stripScheme(url)}</a>
);
};