How to block Mp4 url from my wordpress

Hello
I would like to know how I can protect links as “Hotlink”.
I look forward to your help thank you

Should do the trick

I tried to install it but I get

syntax error near unexpected token `}'

Error in php code?