An immigration bill on Hong Kong's legislative agenda for Wednesday would give authorities virtually unlimited powers to prevent residents and others entering or leaving the former British colony, lawyers, diplomats and rights groups say.

The government says the bill merely aims to screen illegal immigrants at source amid a backlog of asylum applications, and does not affect movement rights.

But lawyers say it empowers authorities to bar anyone, without a court order, from entering or leaving Hong Kong and fails to prevent indefinite detention for refugees.