Bella Thorne beat a hacker to the punch when she posted nude photos of herself that the alleged creep threatened to leak.

“F—k and the power u think you have over me,” Thorne, 21, tweeted Saturday, along with screenshots of texts between her and her alleged hacker, as well as several topless photos. “I’m gonna write about this in my next book.”

Thorne also posted a lengthy missive describing the ordeal.

BELLA THORNE, MOD SUN BREAKUP GETS UGLY

“For the last 24 hours I have been threatened with my own nudes I feel gross, I feel watched, I feel someone has taken something from me that I only wanted one special person to see,” the former Disney star wrote. "For too long I let a man take advantage of me over and over and I’m f—king sick of it, I’m putting this out because it’s MY DECISION NOW U DONT GET TO TAKE YET ANOTHER THING FROM ME. I can sleep tonight better knowing I took my power back. U can’t control my life u never will.”

BELLA THORNE ROCKS BIKINI AFTER MOD SUN SPLIT

“In other words here’s my boobies,” she concluded, referencing the topless photos she'd attached to her original tweet. “So here f—k u, and the last 24 hours I have been crying instead of celebrating my book while doing my book press. Oh yea, the fbi will be at your house shortly, so watch. your Mother. F—kin. Back.”

Thorne did not identify her hacker in the posts.

BELLA THORNE GETS CANDID ABOUT HER BISEXUALITY

The drama in her life doesn't end there.

The erstwhile "Famous in Love" actress has been at odds with ex-boyfriend Mod Sun, accusing him of keeping her scriptwriter computer and passport from her and causing her to miss out on a "big work opportunity."

CLICK HERE TO GET THE FOX NEWS APP

Thorne alleged that the rapper wouldn't return her things, but Mod Sun denied the accusations, telling TMZ that Thorne retrieved her personal belongings the night she was accused of breaking into his home. He also told the site that Thorne called him "out of the blue" just two hours before she had to fly to Paris in order to retrieve her passport.

Thorne and Mod Sun split in April after more than a year together.