Some countries with a wealth of antiquities (like Turkey) have tried to stop looting by banning metal detectors. It doesn't work. Lots of ancient coins are being taken out of Turkey, despite the illegality.
In contrast, England allows detecting, but has strict laws on reporting if you find significant treasure. Their laws on the sale and ownership of the found treasure are also quite fair and reasonable.