Yahoo has come out the victor in a legal fight over some nude photos.

The website was sued after an Oregon woman claimed her ex-boyfriend posted the revealing shots on its website without her knowledge or permission.

In its decision, the 9th U.S. Circuit Court of Appeals said Internet Service providers like Yahoo are generally protected from liability for materials that are published or posted on their sites by outside parties.

However, Yahoo isn't totally in the clear on this case.

The court left open the possibility that the woman could sue Yahoo over whether it had promised to remove the photos and the unauthorized profile.

If the site promised then didn't act on that promise, it could amount to a breach of contract.