Let $f: \mathbb{R}^{*}\to \mathbb{R}$ function definied by $f(x )=\dfrac{1+|x|}{x}$
Show that $f(x)=f(y)$ then $|x|=|y|$
Indeed, $$f(x)=f(y)\\ \iff \\\dfrac{1+|x|}{x}=\dfrac{1+|y|}{y} \\ \iff \\ \dfrac{1+|x|}{x}=\dfrac{1+|y|}{y} \\ \iff\\ \left|\dfrac{1+|x|}{x} \right|=\left| \dfrac{1+|y|}{y}\right| \\ \iff \\ \dfrac{1+|x|}{|x|} =\dfrac{1+|y|}{|y|} \\\iff \\ |y|+|xy|=|x|+|xy| \\ \iff \\ |x|=|y| .$$
Is my proof correct? I'm also interested in others methods.
The idea of the proof is correct, however how you wrote it is formally wrong, as some of the relations you marked by an equivalence are just implications. For example, $$\frac{1+|x|}{x}=\frac{1+|y|}{y}\Rightarrow\left|\frac{1+|x|}{x}\right|=\left|\frac{1+|y|}{y}\right|$$ but not the other way around. Be careful with those things!