I have never done so for fanfiction, but I know a bit about how this can be handled for original works.
On freelance platforms such as reedsy, fiverr, upwork, and scripted, you sign all requested rights over to the buyer.
For example, on fiverr this could be as little as non-commercial usage...