Research In Motion (RIM), makers of BlackBerry smartphone, is staring at a ban threat in Indonesia if it doesn’t work with government regulators to restrict access to pornographic websites.

Indonesian Communications and Information Technology Minister has asked RIM to begin filtering websites until 21 January, suggesting the entire browser functionality of BlackBerry devices could be blocked as a result.

RIM has been threatened that if it chooses not to filter, it has to shut its browser service for all two million Indonesian BlackBerry owners.

In reply, RIM has said that it will implement Internet filtering in Indonesia as soon as possible.

The controversy is the latest in a series of controversies that RIM has faced. It has been negotiating with regulators in the UAE, Saudi Arabia and India after they threatened to block the BlackBerry amid security concerns.

RIM averted a ban in Saudi Arabia in August and in the UAE in October 2010, while the company is continuing discussions with the Indian government.