Context. The magnetic activity of planet-hosting stars is an important factor for estimating the atmospheric stability of close-in exoplanets and the age of their host stars. It has long been speculated that close-in exoplanets can influence the stellar activity level. However, testing for tidal or magnetic interaction effects in samples of planet-hosting stars is difficult because stellar activity hinders exoplanet detection, so that stellar samples with detected exoplanets show a bias toward low activity for small exoplanets. Aims. We aim to test whether exoplanets in close orbits influence the stellar rotation and magnetic activity of their host stars. Methods. We developed a novel approach to test for systematic activity...