Mobile app version of vmapp.org
Login or Join
Jessie594

: My website accepts anything infront of www.domain.com I'm experiencing something very strange. Whatever I type in the browser like for instance: qqqqq.mydomain.com the homepage loads. There is even

@Jessie594

Posted in: #Domains #Url

I'm experiencing something very strange.

Whatever I type in the browser like for instance:

qqqqq.mydomain.com the homepage loads. There is even a URL indexed in google which goes something like this:
somesite.comwww.mydomain.com/somearticle
The page loads, and the browser keeps displaying the url above.

Should I be worried? What could cause this?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Jessie594

1 Comments

Sorted by latest first Latest Oldest Best

 

@BetL925

Its a combination of two factors:


You have a wildcard dns entry. In your DNS you have an entry like *.example.com. A record like that will forward all subdomains to the address specified
Your website is set as the default host on your webserver. That means that whatever request comes in for any unrecognized domain, it will get served as your website.


If you remove the wildcard DNS record, you won't have the problem. Users that try to visit somesite.comwww.example.com/somearticle will get an error message at the DNS level saying that that somesite.comwww.example.com could not be found.

You could also change your web server configuration to set your site as a virtual host rather than default host. This way you could choose what to do with the default host. For example you could redirect all those requests to your web site, or you could show an error message.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme