@PitaJ I imagine this would be used for some code sharing site where you need to be a member to view.
Anyway, this can be done via custom plugin listening on the parse hooks. You can remove code blocks there and insert a block asking users to log in
@Konrad-Gierej-0 Are you developing this yourself?