I have read that a police escort might be needed/required in some areas of Pakistan. E.g. https://www.thebrokebackpacker.com/is-pakistan-safe/ (mirror):
you might have to travel with an armed police escort in some places.
How can I know whether a police escort is required in a given area of Pakistan, if possible, ahead of time (before entering the area)?