How to lock one linked Confluence page in JIRA issue workflow transition

Hi,
I want to lock (restrict) the linked page in JIRA issue in JIRA workflow transition (Post-functions).
What are the possible solutions?
Could you help to provide details about these solutions or if there is some sample?

Thanks a lot for your help in advance.