Sigh...
Did you actually bother to do any research, as I suggested earlier?
Many manufacturers do indeed put such kind of features into their aircraft.
Those who would want to send a drone over the wall of a prison are perfectly capable of disabling whatever safeguards the manufacturers build in...
They already have a system (or several similar systems) for this, called geofencing.
If you Google 'drones geofencing UK', for instance, the first few links will explain how the system(s) work - and then the next few links will tell you how to disable / over-ride such systems.
For every...