NEWARK, New Jersey (AP) — Republican presidential candidate Donald Trump called Monday for a “total and complete shutdown of Muslims entering the United States,” an idea that prompted one of his rivals to call him “unhinged.”

The proposed ban would apply to immigrants and visitors alike, a sweeping prohibition affecting all adherents of Islam who want to come to the U.S. The idea also raised immediate questions about whether it could pass muster under constitutional protections of the free exercise of religion.

Trump’s campaign said in a statement that such a ban should stand “until our country’s representatives can figure out what is going on.” The statement added that the Republican front-runner’s proposal comes in response to a level of hatred among “large segments of the Muslim population” toward Americans.

Get The Times of Israel's Daily Edition by email and never miss our top stories Free Sign Up

“Until we are able to determine and understand this problem and the dangerous threat it poses, our country cannot be the victims of horrendous attacks by people that believe only in jihad, and have no sense of reason or respect for human life,” Trump said in the statement.

He added on Twitter: “Just put out a very important policy statement on the extraordinary influx of hatred & danger coming into our country. We must be vigilant!”

Trump’s campaign has been marked by a pattern of inflammatory statements and he kicked off his campaign with a speech in which he said some Mexican immigrants are rapists and criminals. He recently drew criticism for retweeting an image of inaccurate statistics that vastly overrepresented the number of whites killed by blacks. But so far those and other errors of fact have not diminished his popularity among many Republican voters.

Since the Paris terrorist attacks, a number of Republican presidential contenders have proposed restrictions on Syrian refugees — with several suggesting preference for Christians seeking asylum — and tighter surveillance in the U.S.

But Trump’s proposed ban goes much further than those ideas, and his Republican rivals were quick to reject the latest provocation from a candidate who has delivered no shortage of them.

“Donald Trump is unhinged,” Jeb Bush said via Twitter. “His ‘policy’ proposals are not serious.”

Donald Trump is unhinged. His "policy" proposals are not serious. — Jeb Bush (@JebBush) December 7, 2015

Carly Fiorina said, “Trump’s overreaction is as dangerous as President Obama’s under-reaction.”

John Kasich slammed Trump’s “outrageous divisiveness,” while a more measured Ted Cruz, who has always been cautious about upsetting Trump’s supporters, said, “Well, that is not my policy.”

Trump campaign manager Corey Lewandowski said Trump’s proposed ban would apply to “everybody,” including Muslims seeking immigration visas as well as tourists seeking to enter the country.

He did not respond to questions about whether it would also include Muslims who are U.S. citizens and travel outside of the country, or how a determination of someone’s religion might be made by customs and border officials.

There are, for example, more than 5,800 servicemen and women on active U.S. military duty and in the reserves who self-identify as Muslim and could be assigned to serve overseas.

Trump was also unclear on whether his ban would apply to Muslim allies in the fight against Islamic State militants.

Ari Fleischer, a former aide to Republican President George W. Bush, tweeted, “Under Trump, the King Abdullah of Jordan, who is fighting ISIS, won’t be allowed in the US to talk about how to fight ISIS.”

Trump has taken a particularly hard line against Muslims in the days since the Paris attacks, advocating enhanced surveillance of mosques due to fears over radicalization.

Trump’s proposal comes a day after President Barack Obama spoke to the nation from the Oval Office about the shootings in San Bernardino, California, which Obama said was “an act of terrorism designed to kill innocent people.”

The FBI said Monday the Muslim couple who carried out the massacre had been radicalized and had taken target practice at area gun ranges, in one case within days of the attack lasts week that killed 14 people.

White House spokesman Josh Earnest accused Trump of playing on people’s fears and trying to tap into “a darker side, a darker element” of American society.

From the Democratic presidential campaign, Bernie Sanders said: “Trump and others want us to hate all Muslims. The United States is a great nation when we stand together. We are a weak nation when we allow racism and xenophobia to divide us.”

On Capitol Hill, Republican Sen. John McCain of Arizona said of Trump’s idea, “It’s just foolish.”

But will it hurt his campaign? “I have no idea,” McCain said. “I thought long ago that things he said would hurt his prospects, and he continues to go up.”

Editor’s note: The featured photograph on this story was updated to a photograph from the event where Trump spoke and after it was pointed out that the earlier photograph was seen by some as having unfortunate and unintended connotations.