The Apple TV’s AirPlay feature makes it a great accessory to bring your iPad, iPhone, or iPod touch content to the larger screen. By default, however, this feature is wide open; anybody running iOS or iTunes on the same network can freely broadcast content to your Apple TV at the tap of a button.
For most home users this isn’t a huge problem, but if you have kids in the house, or you otherwise use your Apple TV on a network shared with other iOS users, you may find it useful to restrict AirPlay access to your Apple TV—particularly since starting AirPlay from another device will interrupt whatever you may currently be watching.
The good news is that Apple has provided a couple of options for this, both of which can be found in the AirPlay section under your Apple TV’s Settings menu. If you don’t want your Apple TV to be accessible via AirPlay at all, you can simply toggle it off from here.
Alternatively, you can use an onscreen code or a password to prevent AirPlay access to your Apple TV from iOS devices or iTunes. The Onscreen Code option will display a one-time code on the Apple TV screen whenever a user attempts to select it for AirPlay, requiring the user to enter this code on their device before AirPlay streaming will begin; the password option will simply prompt the user for whatever password you choose to set here, again refusing to begin AirPlay streaming unless the proper password is supplied.
.