I have a website of mine (freeofficefinder.com) that is being cloned (see here: thelawyerserviceratings.org) There are actually over 25 websites that are currently cloning our website.
Obviously this is hurting our SEO ranking greatly due to "duplicate content". Is there something that I could add to the Apache config file to ensure that only our website is rendered at the domain freeofficefinder.com. And for all other domains this is blocked?
Best How To :
As I can see, you web server configured to serve the same virtual host for any requested server name.
# telnet freeofficefinder.com 80
Connected to freeofficefinder.com.
Escape character is '^]'.
GET / HTTP/1.1
HTTP/1.1 200 OK
Date: Wed, 10 Jun 2015 15:54:24 GMT
Server: Apache/2.4.12 (Ubuntu)
Set-Cookie: PHPSESSID=qbe8aar8b58ckr9nvlqbnsdgd2; expires=Wed, 10-Jun-2015 16:54:30 GMT; Max-Age=3600; path=/
Cache-Control: max-age=0, public, s-maxage=604800
Set-Cookie: device_view=full; expires=Thu, 09-Jul-2015 23:00:00 GMT; Max-Age=2531130; path=/; httponly
Content-Type: text/html; charset=UTF-8
... content ...
This means, anybody can set A-record to your web server IP (188.8.131.52) and your site will work on any domain. The cause is you use an asterisk
* as a ServerName Look through your Apache configs, find
ServerAlias directives, having
* as a value, and replace
* with your actual host name (freeofficefinder.com).
Then add another one
<VirtualHost> section above yours and set a
ServerName * for it. This special section will serve requests for all unknown domains like "thelawyerserviceratings.org" etc. You can put there some funny content.