Prevent members.linode.com access

Hi,

How can I prevent my website from being accessed through .members.linode.com? Google has started indexing this second version of my website and I do not want to run into any duplicate content issues.

Many thanks, and sorry if this was the wrong section

Alex

5 Replies

You could create a name-based virtual host for lixx-yy.members.linode.com and place a Deny from all directive in it. Though it's not clear what "duplicate content issues" you would be solving by doing so.

Another option is to create a default vhost for all unrecognized domains that just serves the Apache default "It Worked!" page or does a redirect to your preferred domain.

@act4:

How can I prevent my website from being accessed through .members.linode.com? Google has started indexing this second version of my website and I do not want to run into any duplicate content issues. Is this enabled by default? I'm not seeing anything if I try to go to http://linodexxxxxx.members.linode.com (as seen on the dashboard under Linodes » linodexxxxxx) or http://newarkxxx.members.linode.com, but maybe I'm using the wrong address. Or, maybe my current virtualhost settings are preventing this?

I only have Vhosts. Anything that hits the server by IP or using a hostname that is not currently active gets caught by the first entry in my vhosts.conf file which is "Junk".

That has a simple page which catches any page attempt and displays a simple page indicating that the site they are attempting is either offline or no longer supported. It provides the URI that was attempted and some simple contact info, Nothing else.

First entry in my vhosts.conf file is an unnamed (No ServerName or ServerAlias):

 <virtualhost *:80="">ServerAdmin     "webmaster at domain.com"
    DocumentRoot    /www/vhosts/junk
    ErrorLog        logs/junk.errors
    CustomLog       logs/junk.combined combined</virtualhost> 

The log files provide a good list of hack attempts since a lot of bots used IP based attempts.

Even if there is only 1 web page for the server, I still set it up this way.

Also, you can use a mod_rewrite to force access to your sites to be the hostname that you want it to be accessed by, keeping indexing consistent as well. This will help with search engine listings.

If you prefer everything be http://www.hostname.tld then you can use something like:

RewriteCond %{HTTP_HOST} !^(.*)\.hostname\.tld$ [NC]
RewriteRule ^(.*)$ http://www.hostname.tld/$1 [R=301,L]

You can do it the other way around too if you choose.

additionally, google respects canonical url meta-tags in your html.

http://support.google.com/webmasters/bi … r=139066#5">http://support.google.com/webmasters/bin/answer.py?hl=en&answer=139066#5

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct