How to Stop Anyone From AirPlaying to Your Apple TV?

How Apple AirPlay Works For Private Usage

Apple TV has its feature that allows you to AirPlay or screencast your iPhone or any Apple devices to your TV. If you want to stop strangers from connecting to it, here's what you should do.
Real Time Analytics