Letting Google AdSense index your private boards


Well-known member
I would like to have more relevant ads in the private areas of my site that google can not index. AdSense has a tool where you can give login credentials for the adsense bot to enter your private forums and crawl content for more relevant ads, while not having them show up on search results.

Does anyone know the correct values to enter into this form? The plaintext password for a user does not work.


Jake Bunce

XenForo moderator
Staff member
Cool feature.

Restricted Directory or URL: the URL of your private forum

Login URL: http://www.yoursite.com/forum/index.php?login/login

Login method: POST


login = username here
password = password here
redirect = http://www.yoursite.com/forum/index.php

The "redirect" parameter might not be required, but in my testing with a regular browser I encountered redirect problems when submitting the form without a redirect specified.


Well-known member
The redirect isn't working, as the : character isn't allowed in that field. I'll leave it off for now and see if it works.


Active member
I can't get Adsense to show on my forum - I now have a default style and still no show. The code works on wordpress fine. But here it's just a white space.

<xen:hook name="ad_sidebar_top" />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2340283517533441";
/* mlm-forums */
google_ad_slot = "8848259061";
google_ad_width = 250;
google_ad_height = 250;
<script type="text/javascript"
What can I do to fix this?


Well-known member
Your ads must not be on the same page as adult content. Use a conditional to keep the ads from showing on that private subforum.