I'm in the US, and the DMCA explicitly forbids it, but there's been some contrary rulings on this that make it a bit unclear. [1]
I am not a lawyer, so I'm not really sure how to interpret this stuff, but I don't know how tested the DRM parts of the DMCA have been tested .
[1] https://arstechnica.com/information-technology/2010/07/court...