During the hearing on Monday, Assange said the new rules were a sign Ecuador was trying to push him out, and said Ecuadorian President Lenin Moreno had already decided to end his asylum but had not yet officially given the order.
His comments prompted the South American country's top government lawyer, Inigo Salvador, to interrupt him and warn him not to make political statements during the proceedings.
On Tuesday, judge Karina Martínez found the stricter rules recently imposed by the South American nation’s embassy do not violate his asylum rights because authorities have the right to decide what is and isn’t allowed inside the building.
“It’s clear this protocol was issued with strict respect for international law,” Jose Valencia, Ecuador’s foreign minister, said after the ruling, according to The Guardian.
Relations between Assange and the South American country have been increasingly frosty of late, but Salvador told reporters last week Assange was welcome to stay in the embassy with the new rules.
He also said the UK in August had assured Assange he would not be extradited if he left the embassy, where he has lived since 2012.
Assange took refuge in the embassy after British courts ordered his extradition to Sweden to face questioning in a sexual assault case. That case has been dropped, but supporters have said that Assange fears he could be extradited to the US if he leaves the embassy.
WikiLeaks, which published US diplomatic and military secrets when Assange ran the operation, faces a US grand jury investigation.
In a departure from its previous practice of maintaining dialogue with British authorities over Assange's situation, Ecuador's Foreign Minister Jose Valencia told Reuters last week that the government would no longer intervene on Assange's behalf, adding that the government was "frustrated" by the lawsuit.