The Canadian maker of the Blackberry smartphone, Research In Motion (RIM), has agreed to make pornographic websites inaccessible to Indonesian users of the phone.

Indonesia threatened to shut down all internet browsing via Blackberrys if the Canadian company fails to block websites containing pornography.

RIM says it will comply.

It will be the first time the Blackberry-maker will apply internet filtering in any country.

But the Indonesian government is also demanding the company allow it access to data sent via Blackberrys in case that information is needed in probing criminal cases.

RIM has already faced pressure from India and Saudi Arabia.

They, too, want access to corporate email and messenger services, fearing that Blackberry's tight security makes the devices convenient for terrorists.