Catherine Zeta-Jones isn't having it when it comes to paparazzi snapping photos of her while she's on vacation.

The actress, who was on a beach vacation with her husband, Michael Douglas, took to her Instagram page to share her own sexy photos in a black bikini after she saw that paps had taken photos of her in a bikini as well-particularly her backside. As a bit of revenge, Zeta-Jones went on her page and posted a side-by-side shot of her self in the bikini-both front and back, sharing in her caption that she was doing so because of what she experienced.

 Pissed the paparazzi photographed my ass, thus sharing the photographs my husband took of my ass. Always a better option for viewing .

A photo posted by Catherine Zeta-Jones (@catherinezetajones) on Nov 23, 2016 at 2:27pm PST

"Pissed the paparazzi photographed my ass, thus sharing the photographs my husband took of my ass. Always a better viewing option," she wrote.

Zeta-Jones isn't the only celeb who has taken to social media to share her own photos of a private moment to beat the paparazzi from sharing their own shots and making money off of them.

Anne Hathaway pulled a similar move earlier this year while on vacation with her husband, Adam Shulman, after she saw paps taking photos of her baby belly. She then posted a shot before they sold their of herself on the beach, baring her baby belly (she gave birth to a son Jonathan in April), while wearing a red bikini.

"Happy 2016 to my beautiful Instafriends!," she wrote. "So, posting a bikini pic is a little out of character for me, but just now while I was at the beach I noticed I was being photographed. I figure if this kind of photo is going to be out in the world it should at least be an image that makes me happy (and be one that was taken with my consent. Ans with a filter :) Wishing you love, light and blessings for the year ahead! Annie."