Can you burn rented moview legally?

Is there some sort of code built into rented movies that keeps you from burning onto your blank DVD’s? As you can tell I am new at this please excuse my inexperience. Also. How do I fit a 180 minute movie on a blank 120 minute Blank DVD?

You’re not allowed to copy something you do not own :cop: