Twitter has put the kibosh on the Krassenstein brothers – saying the anti-Trump trolls had broken the site’s rules by operating fake accounts.

Brian and Ed Krassenstein, who gained a wide following for their uncanny ability to instantly respond to the president’s Twitter tirades, were permanently banned by the social media site.

“The Twitter Rules apply to everyone,” a Twitter rep told The Post in a statement. “Operating multiple fake accounts and purchasing account interactions are strictly prohibited. Engaging in these behaviors will result in permanent suspension from the service.”

Ed had about 925,000 followers and Brian Krassenstein had more than 697,000 as #Resistance superstars before they were banned.

Twitter did not specify what the Krassensteins allegedly did to illegally promote their accounts — but “fake interactions” could involve buying bots to retweet their posts, or buying fake followers, according to the news outlet.

The Krassensteins later denied breaking Twitter’s rules.

“The claim that we purchased Twitter accounts and interactions is not true,” the brothers wrote on their Hill Reporter website.

“Like we said before, we never did this. The part that has us angry is that Twitter keeps claiming that this is the reason for our suspension, but fact is they could easily check to see that this never happened,” they added.

“We NEVER, and we want to make this as clear as day, ever bought or sold ANY Twitter accounts or interactions. We swear on our graves that this is 100% true,” they wrote on their blog Thursday night.

“We have long defended Twitter’s actions of banning and suspending users, and our stance still remains the same. Twitter, as a private company, has every right to ban whoever they choose, including us,” they continued.

“We would, however, appreciate that Twitter reviews our suspension and issues a correction in regards to their comments about us buying or selling Twitter accounts or interactions.

“This is 100% false, and if Twitter believes they have evidence to prove otherwise, we ask and encourage them to release these details to the media,” they added.

They told The Daily Beast, which first reported about the ban, that they only operated secondary accounts to monitor death threats, as well as accounts for their businesses.

“None of those accounts were ever used for manipulative purposes as Twitter claims,” the brothers said in a statement.

Other political provocateurs also have been banned from the site, including pro-Trump conspiracy theorist Jacob Wohl, 21, who was booted for running fake accounts.

The Krassensteins claimed Wohl contacted them after their ban to say they should all join forces and fight Twitter and internet censorship, according to Newsweek.