Question: how to block someone from viewing your profile in linkedin?
Answer: Go to the profile of the person you'd like to block.
Click the More… button below the member's profile picture and select Report/Block from the list.
Select Block [member name] from the What do you want to do? ... 
Click Block to proceed or Go back to review your options.