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.
Is a police escort in Pakistan assigned to the foreigner automatically or must the foreigner request it? If automatically, how does the law enforcement become aware the foreigner needs a police escort? If not automatically, how does the foreigner request the police escort?