The US military blocked an infamous Russian troll farm from accessing the internet and thwarted its effort to create discord by interfering in the 2018 midterm elections, according to a report on Tuesday.

Cyber Command, working with intelligence from the National Security Agency, struck the Internet Research Agency, a company in St. Petersburg backed by a Kremlin-linked oligarch.

“They basically took the IRA offline,” an individual with knowledge of the matter told the Washington Post. “They shut ‘em down.”

It was the first offensive maneuver from the Cyber Command under new powers it was given by President Trump and Congress last year to derail Russian hackers trying to influence US elections.

The report said some analysts were uncertain of the long-term effects or how much of a deterrent the action would be on the hacking company because Russia keeps changing its tactics.

The US intelligence community has concluded that Russian President Vladimir Putin ordered a cyber campaign in 2016 to interfere in the presidential election.

They also believe the Internet Research Agency works at the direction of the Kremlin.

The Department of Justice last February indicted 13 Russians and three Russian companies — including the Internet Research Agency — for conducting “information warfare against the United States” to undermine democracy during the 2016 election.

The indictments grew out of special counsel Robert Mueller’s Russia probe.

Some US officials told the newspaper that just knocking hackers off balance can be an effective strategy to counter attacks.

“Part of our objective is to throw a little curve ball, inject a little friction, sow confusion,” a defense official said. “There’s value in that. We showed what’s in the realm of the possible. It’s not the old way of doing business anymore.”

The Pentagon and some lawmakers hailed Cyber Command for keeping Russia’s hands from meddling in the election.

“The fact that the 2018 election process moved forward without successful Russian intervention was not a coincidence,” Sen. Mike Rounds, a Republican from South Dakota, told the newspaper.

Without its actions, there “would have been some very serious cyber incursions,” he said.