Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm very confused. I'm trying to get my site (let's just say www.example.com) approved for Google AdSense. I submitted the application using "www.example.com" and I got a reply from AdSense saying my application was rejected because "dev.example.com" was unavailable.

"dev.example.com" is my local virtual host that is set up in Apache and my Windows hosts file. It is NOT a public URL and will not work anywhere except my computer. My site uses relative paths, so "dev.example.com" is not in the source code anywhere.

My two questions are HOW is AdSense getting my local virtual host URL, and WHY is it using that URL for approval instead of the URL I submitted in my application?

share|improve this question
Have you checked .htaccess? – Richard Muthwill May 8 '14 at 9:08
Yep, .htaccess is quite normal. It only has code to rewrite to http://www.mysite.com if the user requests http://mysite.com. – Gavin May 8 '14 at 9:17
How about this – Richard Muthwill May 8 '14 at 9:47
dev.mysite.com already doesn't exist (only on my computer). That's why Google denied my AdSense application, because they said dev.mysite.com doesn't exist. Blocking that subdomain won't do anything because the subdomain already doesn't exist. – Gavin May 8 '14 at 10:06
Are you sure you put the correct URL in your application? I suspect you accidentally pasted the wrong thing when you applied. You can apply again and make sure you have it right. – Stephen Ostermiller May 8 '14 at 10:15

The AdSense crawler wouldn't know about your dev site unless you told it about it somehow. Either:

  • You submitted your dev site accidentally when applying for AdSense
  • Your live site links to your dev site somehow

To fix this:

  1. Resubmit your AdSense application and make sure to specify the correct site
  2. Run a crawler against your own live site and make sure it never tries to get to your dev site.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.