Most of the times the protection is coded in to the master discs that are set up for mass duplication. Some of the masters are called glass masters.
The protections used today are usually set to stop people from making a copy of it. But there is tons of software and other ways to make backups.
Like Stoner said there is no master settings, alot of it is trial and error.