The output of fields in biblatex
is controlled via field formats.
The standard format for doi
is (ll. 495-499 in biblatex.def
(v3.16))
\DeclareFieldFormat{doi}{%
\mkbibacro{DOI}\addcolon\space
\ifhyperref
{\href{https://doi.org/#1}{\nolinkurl{#1}}}
{\nolinkurl{#1}}}
that for URL (l. 582 in biblatex.def
(v3.16))
\DeclareFieldFormat{url}{\mkbibacro{URL}\addcolon\space\url{#1}}
you can easily change these formats so that they only print a "DOI" or "URL" and link that with \href{<link target>}{<text>}
(note that you then need to load hyperref
).
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[backend=biber, style=authoryear]{biblatex}
\usepackage{hyperref}
\DeclareFieldFormat{doi}{%
\href{https://doi.org/#1}{\mkbibacro{DOI}}}
\DeclareFieldFormat{url}{%
\href{#1}{\mkbibacro{URL}}}
\addbibresource{biblatex-examples.bib}
\begin{document}
Lorem \autocite{sigfridsson,ctan}
\printbibliography
\end{document}
