Rinehart had been trying to force West Australian Newspapers to surrender all letters, faxes, emails, legal advice, memos, text messages and recordings between their journalist Steve Pennells and her son, John Hancock.
Hancock and his sister Bianca Rinehart are embroiled in acrimonious legal proceedings with their mother, an iron ore heiress with an estimated Aus$22 billion (US$20 billion) fortune, over a family trust established by their prospector grandfather Lang Hancock.
But the state's Supreme Court tossed out Rinehart's application in a judgement late Tuesday by judge Janine Pritchard.
"WAN's application to set aside the subpoena should be upheld in part, on the ground that the subpoena is oppressive and constitutes an abuse of process," Pritchard said in her judgment.
More From This Section
Editor Brett McCarthy said it was a win for the newspaper and for journalism, being the first test of Western Australia's new "shield laws" protecting journalists from revealing their sources.
Australia's journalists' union welcomed the decision and said it was "outrageous that, even with shield laws in place, Steve Pennells was forced through a very lengthy, expensive and stressful series of court procedures before this decision reiterated the position of the law".
"The court's decision underscores the need to acknowledge and respect journalist privilege in relation to the journalists' ethical requirement to refuse to disclose their confidential sources," said union secretary Chris Warren.
Another journalist, Fairfax's Adele Ferguson, is awaiting verdict on a similar bid for source material by Rinehart relating to her unauthorised biography about the outspoken mining baroness who made waves with a series of share splurges in media companies last year.
"I think it is a great win for journalism and press freedom," said Ferguson of the Pennells ruling.
"The judgment was strong and made it clear that sources should be protected and journalistic ethics respected.