The people of Afghanistan have a long and justifiable tradition of hating the British, mainly thanks to the three Anglo-Afghan wars of 1839, 1878 and 1919. Since the American-led invasion of Afghanistan in 2001, we seem almost quaint by comparison; our brutal imperialism is tinged with a vague hint of nostalgia for the days before cluster bombs and counter-insurgency tactics.
We invaded Iran during the first world war, backed a military coup of their government and ruthlessly looted the country for oil, but all of that seems like water under the bridge compared to the CIA's persistent efforts to destabilise Iranian society.
Pakistanis have every reason to hate the British - we imposed a bloody and brutal regime across the Indian subcontinent, then so badly botched the transition to self-governance that at least a million people died. Thanks to a decade of poorly-targeted and possibly illegal drone strikes by the US, nearly a century of totalitarian rule under the British is almost forgotten.
I can't remember the last time I saw a British flag being burned by an angry mob. Your government's decision to remain constantly at war probably hasn't done a great deal for your safety, but it's really distracted attention from our barbarism.