I have a leak at the cistern inlet at the back of my toilet. Originally it was a Heath Robinson of different connectors from the water supply back to the plastic threaded inlet.
I've replaced all of that with an isolation valve that connects to the water pipe, a 6cm length of copper pipe...