A federal lawsuit filed Friday asks a judge to block an Alabama law that outlaws almost all abortions, the most far-reaching attempt by a conservative state to seek new restrictions on the procedure.

The American Civil Liberties Union and Planned Parenthood filed the lawsuit on behalf of abortion providers seeking to overturn the Alabama law that would make performing an abortion at any stage of pregnancy a felony punishable by up to 99 years or life in prison for the abortion provider. The only exception would be when the woman's health is at serious risk.

The law is set to take effect in November unless blocked by a judge.

"Make no mistake: Abortion remains - and will remain - safe and legal in Alabama. With this lawsuit, we are seeking a court order to make sure this law never takes effect," said Randall Marshall, executive director of the ACLU of Alabama.

The lawsuit says the Alabama law to criminalize abortion is clearly unconstitutional and would harm women by forcing them to continue pregnancies against their will.