Scotland life bans for troublesome twosome
Ferguson, 31, and McGregor, 27, were sent home from training by Rangers and Ferguson was stripped of the club captaincy.
The Scottish FA said in a statement that the pair would no longer be considered for Scotland duty.
"Following on from the events of the past week - and specifically the last 48 hours - the Scottish FA has today confirmed that Barry Ferguson and Allan McGregor will no longer be considered for international selection by Scotland."
The Scottish FA decision announced on its official website came after the pair were discplined following a drinking session at the team hotel last weekend.
The breach of discipline occurred after they returned from a 3-0 loss to Netherlands in a World Cup qualifier in Amsterdam.
They were dropped from the side that beat Iceland 2-1 in a qualifier at Hampden Park on Wednesday but were caught on TV and in photographs appearing to make V-sign gestures.
Ferguson has played 45 times for his country, while McGregor has made four international appearances.
The decision to ban the pair from internationals came after further discussions on Friday between Scotland mnager George Burley and Scottish FA chief executive Gordon Smith.
"This action has been taken in the best interests of the squad, the fans and the country," added the statement. "Everyone is determined to qualify for the World Cup and we must ensure that nothing is allowed to distract us from this goal."
Martin Bain, Rangers' chief executive, said on the Scottish Premier League club's website (www.rangers.co.uk) that the two players had been suspended after a drinking session and for also making V-sign gestures while sitting on the bench on Wednesday.
"The overall conduct of the players during the last week while on Scotland duty has, regrettably, fallen considerably short of the standards expected by Rangers Football Club and our supporters and has brought the club into disrepute," Bain added.
"The management of the club has taken the view that this has damaged both Rangers and Scotland and is unacceptable.
"Even though our club is entering the critical stage of the league season and the later stages of the Scottish Cup, appropriate disciplinary action was required."
Ferguson said in a statement he deeply regretted what had happened last weekend and the events during the last week.
"I apologise wholeheartedly for the embarrassment caused to Scotland, Rangers, both sets of supporters and my friends and family.
"I have always considered playing for Rangers and Scotland an honour and a privilege and nothing will change that and I am bitterly disappointed by the announcement that I will not be selected for Scotland again."
McGregor added: "I was absolutely delighted to be selected for Scotland last weekend and I am deeply sorry over what has happened since then.
"We all make mistakes in life and I am very disappointed to have let Rangers, Scotland, my family and all the fans down. I am also desperately disappointed that I will not be selected again for Scotland at this stage in my career."
In an earlier statement Rangers said: "It is common knowledge that Ferguson and McGregor were involved in a drinking session with other players... on Sunday and that Scotland manager George Burley decided to leave them on the bench for the Iceland match as a result."
However, the club said it was the gestures the two players made on the bench at Hampden Park during the Iceland qualifier that particularly angered Rangers and manager Walter Smith.
"The most disappointing aspect for me was the subsequent reaction on the bench and from the club's point of view I don't think that was a good image to portray," Smith said.
The fall-out from the drinking session had intensified earlier on Friday when George Peat, president of the Scottish FA, ordered an inquiry into the affair.