You require $D^*f = Df$, and you have shown that $D^*f = 2fDf \text{ }$ $(1)$
Equating, $2f(Df) = (Df)$ gives $(2f-1)(Df) = 0$
Therefore either $2f-1 = 0$ or $Df = 0$.
This means that either $f = \frac{1}{2}$ or $f$ is such that $\frac{df}{dx} = 0$ everywhere. But the condition that $\frac{df}{dx} = 0$ everywhere tells you that $f$ is a constant function. Therefore $f$ is a constant. There can be no non-trivial solutions if statement $(1)$ does indeed hold for every $f$
However,
$D^*f = \lim_{h \rightarrow 0}\frac{(f(x + h) - f(x))(f(x + h) + f(x))}{h} = \lim_{h \rightarrow 0} (f(x+h) + f(x)) \cdot Df$
Let $D^*f = Df$ to obtain $\lim_{h \rightarrow 0} (f(x+h) + f(x)) = 1$, under the strict assumption that $Df \neq 0$
Clearly, for the above to be true when $f \neq \frac{1}{2}$, $f$ must be a discontinous function. I assume you could define an $f$ such that $f(x)$ equals both $1$ and $0$, but I have no rigourous definition of this function. I am thinking along the lines of a function like $\sin(x)$, where $\sin(x+h) = \sin(x)\cos(h) + \cos(x)\sin(h)$, but with a discontinous function instead. Let $f(x+h) = f(x)g(h) + g(x)f(h)$. Let it be so that taking the limit of h to $0$ gives $g(h) = 0$ and $f(h) = 1$. This holds if we let $g(x) = 1-f(x)$
Here you have it so when $f(x) = 1$, $f(x+h) = 1 \cdot 0 + 0 \cdot 1 = 0$, and when $f(x) = 0$, $f(x+h) = 0 \cdot 0 + 1 \cdot 1 = 1$. Any discontinous function of $x$ swapping between values of $0$ and $1$ will satisfy the above condition, and I'm sure this can be extended to any values you like. This of course is under the assumption that the function indeed has this property. I believe that since this function is discontinuous everywhere, $Df$ cannot be properly defined and as such dividing by $Df$ poses a problem, but ignoring this it holds.