When using the hyperref package, is it possible to tell LaTeX not to create a link for some references?

In my case the page number is displayed in the footer in

\fancyhf[FC]{\thepage\ of \pageref{pg:end}}

which is what I want. Unfortunately every single page in the document then has a link to the final page, which is a bit silly.

Any ideas on how to fix that?

-