What is the word for implying something by denying it? [duplicate]

Solution 1:

Wikipedia apophasis

Apophasis (/əˈpɒfəsɪs/; Greek: ἀπόφασις from ἀπόφημι apophemi,1 "to say no")[2] is a rhetorical device wherein the speaker or writer brings up a subject by either denying it, or denying that it should be brought up.[3] Accordingly, it can be seen as a rhetorical relative of irony.
The device is also called paralipsis (παράλειψις) – also spelled paraleipsis or paralepsis – or occupatio,[4][5][6][7] and known also as praeteritio, preterition, or parasiopesis (παρασιώπησις).

(The number are references within the Wikipedia article.)

Incidentally, this Wikipedia reference was the second link on a DuckDuckGo search on your exact phrase:

What is the word for implying something by denying it?

The first hit was your post here.