Mobile app version of vmapp.org
Login or Join
Ann8826881

: How do I prevent spam domains from pointing to my site or IP? I came across an issue where I saw a domain xyz.com that is pointing to mydomain.com. How do I prevent spam domains from pointing

@Ann8826881

Posted in: #Domains #Security #Tomcat

I came across an issue where I saw a domain xyz.com that is pointing to mydomain.com.

How do I prevent spam domains from pointing to my domain? I read some posts about setting my virtual hosts and such, but nothing specific about how to prevent it in the first place.

I searched on Google, but most answers are for Apache or IIS, and I'm using Tomcat 7 to serve content directly.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Ann8826881

2 Comments

Sorted by latest first Latest Oldest Best

 

@Lee4591628

If the offending domain is showing a copy of your site, then you certainly want to avoid letting it continue lest you end up getting penalised for duplicate content. This post on Stack Overflow appears to have a helpful answer for your case, since you know the domain that's the problem:


There isn't a way to set this up as easily as you're able to with Apache. The closest thing would be to make a servlet or jsp to handle the redirect and then map it to the URL you want to redirect from.


As @bybe mentioned, contact your hosting company and ask if they can do anything to help. It would also be worth tracing the domain back to its registrar and contacting their technical support to see if they'd be willing to get involved.

10% popularity Vote Up Vote Down


 

@Tiffany637

Anyone can point their DNS at your IP address. If you don't have control over that domain then there is nothing you can do, but nothing you need to do. Just ignore it and/or do a 301 redirect to your preferred domain for requests with a different domain in the header.

In a shared hosting environment multiple sites can run on the same address, it is quite normal for multiple unrelated domains to point to the same IP address although these requests should not hit your actual site.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme