Israeli Prime Minister Benjamin Netanyahu flatly denied on Thursday that his government planted surveillance devices near the White House to intercept cellphone calls from President Trump and other officials.

The denial came in response to a Politico report published that day that said the feds had concluded Israel was most likely behind the planting of cellphone-signal interceptors near the White House and other sensitive sites around Washington, DC, in 2017.

Netanyahu’s office called the allegation “a blatant lie.”

“There is a longstanding commitment, and a directive from the Israeli government not to engage in any intelligence operations in the US. This directive is strictly enforced without exception,” his office said in a statement.

Called international mobile subscriber identity (IMSI) catchers, the spy devices mimic cell towers to obtain cellphone locations and identity information and can also capture the contents of calls and data usage.

They are commonly referred to as StingRays, a common brand of IMSI catcher.

Politico reported that Trump’s administration did not punish or even privately rebuke the Israelis over the spy devices.

“I’m not aware of any accountability at all,” a former senior intelligence official told Politico.

Following the spy devices’ discovery in late 2017, the FBI and other federal agencies conducted a forensic analysis and concluded within the past two years that Israeli agents planted them, Politico reported on Thursday, citing three former senior US officials “with knowledge of the matter.”

“It was pretty clear that the Israelis were responsible,” a former senior intelligence official told Politico.

Such a forensic analysis, one of the former officials said, is usually spearheaded by the FBI’s counterintelligence division and involves investigating the devices so they “tell you a little about their history, where the parts and pieces come from, how old are they, who had access to them, and that will help get you to what the origins are.”

The bureau often relies on the National Security Agency and sometimes the CIA for such probes. The Department of Homeland Security and the Secret Service also played a supporting role in the case.

The IMSI catchers’ discovery was revealed in the spring of 2018 following reports that Trump was tweeting with a cellphone that lacked security features designed to ensure privacy and deter against eavesdropping.

The White House declined to comment, telling The Post that it would not discuss national-security matters.