If this user has been harassing you, and you shadow-ban them, all their activities on your content will be invisible to everyone except themselves.
They will not know that they have been shadow-banned, and the goal is that eventually they will get bored while having caused no harm, since nobody saw what they posted.
If they follow you, the follow will be removed, and they will not be able to follow you again.