XF 1.2 How to block Google from testing area?


Well-known member
I'm trying to block Google from my testing area (open to the public due to different reasons, but not many have the direct URL to it). I need Google to enter my site since I need to play with Google Adsense. When I blocked Google with robots.txt, I couldn't see any AdSense on my testing area, and therefore couldn't adjust them to my needs.

Is there a way to let Google to enter my testing area (which is on a sub-domain), but not letting it to index threads/messages?


Well-known member
User-agent: Mediapartners-Google

User-agent: *
Disallow: /testing_area/