Create Robots.txt for all virtual hosts on Wamp and Windows
I am looking to create a way by which all my localhost website are not accessible by search engine robots. Adding robots.txt to each virtual host is one option but I am looking for a way to do this for all previous and new virtual as you may know Wamp allow creation of virtual host through GUI so it would be good to add a way so that all new virtual host automatically refer to a robots.txt file so they are not being tracked
apache wamp
|
show 2 more comments
I am looking to create a way by which all my localhost website are not accessible by search engine robots. Adding robots.txt to each virtual host is one option but I am looking for a way to do this for all previous and new virtual as you may know Wamp allow creation of virtual host through GUI so it would be good to add a way so that all new virtual host automatically refer to a robots.txt file so they are not being tracked
apache wamp
Unless you changed the access in Apache. Nothing from outside your PC can access your sites in WAMPServer, Virutally Hosted or not :)
– RiggsFolly
Nov 14 '18 at 14:44
Sorry this is fresh wamp installation , havent changed anything. Almost all of the website I download have Analytics/tracking code added and I am now identifying they are being shown over tracking dashboards
– June
Nov 14 '18 at 14:45
Do you actually want your sites to be visible from the internet?
– RiggsFolly
Nov 14 '18 at 14:46
If this is Google analytics calls made from javascript on your web pages, then therobots.txt
is not going to stop that from happening.robots.txt
only applies to search engines searching your site. And even then it is not enforcable, they can ignore it if they are bad robots :)
– RiggsFolly
Nov 14 '18 at 14:50
1
Alternatively, I seem to remember Google allow you to setup a "Please Ignore" if calls are made from specific IP addresses. Thats mainly used to stop inhouse dev/testers affecting the stats, but you could use that to stop calls from your IP address from being logged
– RiggsFolly
Nov 14 '18 at 14:55
|
show 2 more comments
I am looking to create a way by which all my localhost website are not accessible by search engine robots. Adding robots.txt to each virtual host is one option but I am looking for a way to do this for all previous and new virtual as you may know Wamp allow creation of virtual host through GUI so it would be good to add a way so that all new virtual host automatically refer to a robots.txt file so they are not being tracked
apache wamp
I am looking to create a way by which all my localhost website are not accessible by search engine robots. Adding robots.txt to each virtual host is one option but I am looking for a way to do this for all previous and new virtual as you may know Wamp allow creation of virtual host through GUI so it would be good to add a way so that all new virtual host automatically refer to a robots.txt file so they are not being tracked
apache wamp
apache wamp
asked Nov 14 '18 at 14:39
JuneJune
20721035
20721035
Unless you changed the access in Apache. Nothing from outside your PC can access your sites in WAMPServer, Virutally Hosted or not :)
– RiggsFolly
Nov 14 '18 at 14:44
Sorry this is fresh wamp installation , havent changed anything. Almost all of the website I download have Analytics/tracking code added and I am now identifying they are being shown over tracking dashboards
– June
Nov 14 '18 at 14:45
Do you actually want your sites to be visible from the internet?
– RiggsFolly
Nov 14 '18 at 14:46
If this is Google analytics calls made from javascript on your web pages, then therobots.txt
is not going to stop that from happening.robots.txt
only applies to search engines searching your site. And even then it is not enforcable, they can ignore it if they are bad robots :)
– RiggsFolly
Nov 14 '18 at 14:50
1
Alternatively, I seem to remember Google allow you to setup a "Please Ignore" if calls are made from specific IP addresses. Thats mainly used to stop inhouse dev/testers affecting the stats, but you could use that to stop calls from your IP address from being logged
– RiggsFolly
Nov 14 '18 at 14:55
|
show 2 more comments
Unless you changed the access in Apache. Nothing from outside your PC can access your sites in WAMPServer, Virutally Hosted or not :)
– RiggsFolly
Nov 14 '18 at 14:44
Sorry this is fresh wamp installation , havent changed anything. Almost all of the website I download have Analytics/tracking code added and I am now identifying they are being shown over tracking dashboards
– June
Nov 14 '18 at 14:45
Do you actually want your sites to be visible from the internet?
– RiggsFolly
Nov 14 '18 at 14:46
If this is Google analytics calls made from javascript on your web pages, then therobots.txt
is not going to stop that from happening.robots.txt
only applies to search engines searching your site. And even then it is not enforcable, they can ignore it if they are bad robots :)
– RiggsFolly
Nov 14 '18 at 14:50
1
Alternatively, I seem to remember Google allow you to setup a "Please Ignore" if calls are made from specific IP addresses. Thats mainly used to stop inhouse dev/testers affecting the stats, but you could use that to stop calls from your IP address from being logged
– RiggsFolly
Nov 14 '18 at 14:55
Unless you changed the access in Apache. Nothing from outside your PC can access your sites in WAMPServer, Virutally Hosted or not :)
– RiggsFolly
Nov 14 '18 at 14:44
Unless you changed the access in Apache. Nothing from outside your PC can access your sites in WAMPServer, Virutally Hosted or not :)
– RiggsFolly
Nov 14 '18 at 14:44
Sorry this is fresh wamp installation , havent changed anything. Almost all of the website I download have Analytics/tracking code added and I am now identifying they are being shown over tracking dashboards
– June
Nov 14 '18 at 14:45
Sorry this is fresh wamp installation , havent changed anything. Almost all of the website I download have Analytics/tracking code added and I am now identifying they are being shown over tracking dashboards
– June
Nov 14 '18 at 14:45
Do you actually want your sites to be visible from the internet?
– RiggsFolly
Nov 14 '18 at 14:46
Do you actually want your sites to be visible from the internet?
– RiggsFolly
Nov 14 '18 at 14:46
If this is Google analytics calls made from javascript on your web pages, then the
robots.txt
is not going to stop that from happening. robots.txt
only applies to search engines searching your site. And even then it is not enforcable, they can ignore it if they are bad robots :)– RiggsFolly
Nov 14 '18 at 14:50
If this is Google analytics calls made from javascript on your web pages, then the
robots.txt
is not going to stop that from happening. robots.txt
only applies to search engines searching your site. And even then it is not enforcable, they can ignore it if they are bad robots :)– RiggsFolly
Nov 14 '18 at 14:50
1
1
Alternatively, I seem to remember Google allow you to setup a "Please Ignore" if calls are made from specific IP addresses. Thats mainly used to stop inhouse dev/testers affecting the stats, but you could use that to stop calls from your IP address from being logged
– RiggsFolly
Nov 14 '18 at 14:55
Alternatively, I seem to remember Google allow you to setup a "Please Ignore" if calls are made from specific IP addresses. Thats mainly used to stop inhouse dev/testers affecting the stats, but you could use that to stop calls from your IP address from being logged
– RiggsFolly
Nov 14 '18 at 14:55
|
show 2 more comments
1 Answer
1
active
oldest
votes
just change the alias for robots.txt inside your host configuration and point it to the same file.
hey there.. maybe have a look at How to Answer to get better feedback next time
– LuckyLikey
Nov 14 '18 at 15:01
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53302725%2fcreate-robots-txt-for-all-virtual-hosts-on-wamp-and-windows%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
just change the alias for robots.txt inside your host configuration and point it to the same file.
hey there.. maybe have a look at How to Answer to get better feedback next time
– LuckyLikey
Nov 14 '18 at 15:01
add a comment |
just change the alias for robots.txt inside your host configuration and point it to the same file.
hey there.. maybe have a look at How to Answer to get better feedback next time
– LuckyLikey
Nov 14 '18 at 15:01
add a comment |
just change the alias for robots.txt inside your host configuration and point it to the same file.
just change the alias for robots.txt inside your host configuration and point it to the same file.
answered Nov 14 '18 at 14:51
kevoppkevopp
1
1
hey there.. maybe have a look at How to Answer to get better feedback next time
– LuckyLikey
Nov 14 '18 at 15:01
add a comment |
hey there.. maybe have a look at How to Answer to get better feedback next time
– LuckyLikey
Nov 14 '18 at 15:01
hey there.. maybe have a look at How to Answer to get better feedback next time
– LuckyLikey
Nov 14 '18 at 15:01
hey there.. maybe have a look at How to Answer to get better feedback next time
– LuckyLikey
Nov 14 '18 at 15:01
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53302725%2fcreate-robots-txt-for-all-virtual-hosts-on-wamp-and-windows%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Unless you changed the access in Apache. Nothing from outside your PC can access your sites in WAMPServer, Virutally Hosted or not :)
– RiggsFolly
Nov 14 '18 at 14:44
Sorry this is fresh wamp installation , havent changed anything. Almost all of the website I download have Analytics/tracking code added and I am now identifying they are being shown over tracking dashboards
– June
Nov 14 '18 at 14:45
Do you actually want your sites to be visible from the internet?
– RiggsFolly
Nov 14 '18 at 14:46
If this is Google analytics calls made from javascript on your web pages, then the
robots.txt
is not going to stop that from happening.robots.txt
only applies to search engines searching your site. And even then it is not enforcable, they can ignore it if they are bad robots :)– RiggsFolly
Nov 14 '18 at 14:50
1
Alternatively, I seem to remember Google allow you to setup a "Please Ignore" if calls are made from specific IP addresses. Thats mainly used to stop inhouse dev/testers affecting the stats, but you could use that to stop calls from your IP address from being logged
– RiggsFolly
Nov 14 '18 at 14:55