Australia's high commission in Islamabad has been temporarily closed due to fears of violent protests.

A Department of Foreign Affairs and Trade spokeswoman said the closure was a ''precaution due to heightened unrest in and around the diplomatic enclave''.

There are fears that there will be large demonstrations during an impromptu public holiday in Pakistan on Friday (Pakistan time) over an American film denigrating Islam.

DFAT has also updated its travel advice for Australians visiting Pakistan, warning of ''anti-Western demonstrations''.

Australian officials have been warned to remain indoors during the public holiday.

AAP