We have something like this for about three years now. See here for details.
However, to this day it isn't fully implemented (i.e. any unknown restrictions sent by servers will prevent you from outright viewing the replay as a whole) because no big server seemed to be interested in using it.
To be clear: Servers can start using this right now to set restrictions on replays recorded in their games. At first this will prevent anyone from viewing such replays but once we update and implement the used restrictions, they'll retroactively work as expected. It's just that no big server seems to be interested.