Log in

View Full Version : Nagging emails from Google about my site



theremotedr
08-01-2020, 09:05 AM
Morning,
I keep getting email from Google with regards this page.
https://www.theremotedoctor.co.uk/m-images/emailref/?C=D;O=A

The page in question is only for my quick reference.
If you go here https://www.theremotedoctor.co.uk/index.html then click on the UK SELLER icon this is where i have placed it.

Attached is what i am being told each time so looking to fix this issue.

coothead
08-01-2020, 10:18 AM
Hi there theremotedr,


your link..

https://www.theremotedoctor.co.uk/m-images/emailref/?C=D;O=A

...actually points to a directory, not a page, and worse still,
gives a visitor access to all of its contents. :eek:

I would cure that by placing an index.html file in all
directories of a similar nature.

Here is an example on my site...

https://coothead.co.uk/images/

A very quick look at your site shows these unprotected
directories...


m-images
emailref
css
js
favicon-logo


Here is the code for an index.html file that you could use
to protect your vulnerable directories...



<!DOCTYPE HTML>
<html lang="en">
<head>
<base href="https://www.theremotedoctor.co.uk/">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1">

<title>No peeping</title>


<link rel="shortcut icon" href="favicon-logo/favicon.ico" type="image/x-icon" >
<link rel="stylesheet" href="css/latestChanges.css" media="screen">

</head>
<body>

<h1>Hi there peeper !!</h1>

<div>
<p>I know that you are just being inquisitive but I would</p>
<p>rather not let you view the contents of this directory.</p>
</div>

</body>
</html>


Just change the wording to suit and add styling to your
latestChanges.css file.


As for your Google problem, you have not defined the
offending page(s).




coothead

theremotedr
08-01-2020, 10:36 AM
Hi,
Ive read it a few times but a touch confused as to where i am to place that code ?

coothead
08-01-2020, 10:50 AM
Hi there theremotedr,



amend the wording of the code that I have supplied.
save it as index.html.
place a copy of it in each of the vulnerable directories I listed,
test that it is working with links like this..

https://www.theremotedoctor.co.uk/css/
https://www.theremotedoctor.co.uk/js/
https://www.theremotedoctor.co.uk/m-images/





coothead

theremotedr
08-01-2020, 12:56 PM
Hi,
Ive now done as advised,clicking the links then shows the message.

With regards Google the page in question was that Directory.
See attached screen shot.

Ihave now removed the link so when you click on the image nothing happens.

The reason why it was there is because some people would say to me, can you advise how i can get HON 026 to work ??

Now i have no way to know what item is HON 026, Hence i would click the image then select HON 026 hyperlink & voila up pops the item in question.
Can you advise maybe the same thing but maybe with a password box etc ?

Did i explain ok for you.
Thanks

coothead
08-01-2020, 02:00 PM
Hi there theremotedr,


what is HON 026?
Is it an img file,an HTML file or something else?

Alternatively, can you remove the index.html file from the emailref
folder temporarily, so that I may see the actual contents again.

I will then meditate upon the problem to see if I can come up with
a suitable solution.



coothead

theremotedr
08-01-2020, 02:24 PM
That was an example of a part number from my site.

Some people just quote me a part number and I have no idea what the item is.
So that directory just had part number hyperlinks that went to a HTML page.
In that page it showed me a photo. The part number & the cost.


I’m not home at present but will check once in.

theremotedr
08-01-2020, 03:10 PM
Hi,

Index file now removed.

The main reason is when i am out & about this was a quick way of looking at the part number in question.
Otherwise it would need to wait until i got home.

I suppose anything password protected that i could apply the password to then see this data would work.

Thanks

coothead
08-01-2020, 06:10 PM
Hi there theremotedr,


save this code...


<!DOCTYPE HTML>
<html lang="en">
<head>
<base href="https://www.theremotedoctor.co.uk/">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1">

<title>Part Peeper</title>

<link rel="shortcut icon" href="favicon-logo/favicon.ico" type="image/x-icon" >
<link rel="stylesheet" href="css/latestChanges.css" media="screen">

<style media="screen">
body {
background-image: url( m-images/background.png );
text-align:center;
}
h1, p {
color: #009;
}
form {
display: inline-block;
padding: 2em 1em 1em;
border: 1px solid #009;
background-color: #fff;
font-size: 1.25em;
}
input {
width:90%;
margin: 1em 0;
font-size: 1em;
text-align: center;
}
</style>

</head>
<body>

<h1>Part Peeper </h1>

<form action="#">
<label for="part">Enter part number</label><br>
<input type="text" id="part" placeholder="( Form: Honda006 )" ><br>
<input type="button" value="Show part">
</form>

<p>
Remove the placeholder="( Form: Honda006 )" and this
line if you don't want visitors to see the part
</p>

<script>
(function( d ) {
'use strict';
d.querySelector('form').reset();
d.querySelector('input[type="button"]').addEventListener( 'click',
function() {
location.href = '/m-images/emailref/' +
d.querySelector( '#part' ).value +
'.html';
} , false );
}( document ));
</script>

</body>
</html>

...as index.html and place it in your emailref folder.

Hopefully it will meet you requirements.


coothead

theremotedr
08-01-2020, 06:29 PM
Hi,
It doesnt seem to work for me.

See example part number in screen shot.
I keep seeing File not found (404 error)

If i type HONDA 020 then press the Enter button im taken to the home page,only come across this by hitting button by mistake.

oTHERWISE I CANT GET ANY NUMBERS TO WORK

theremotedr
08-01-2020, 06:34 PM
MY mistake sorry.,

Now i got it working

coothead
08-01-2020, 06:42 PM
Hi there theremotedr,


I have just tested your page...

https://www.theremotedoctor.co.uk/m-images/emailref/

...and it is working OK for me. :D

Make sure that there is No Spacing in the input - Ford002 and
that you are not using the capital "O" instead of the number "0".



coothead

theremotedr
08-01-2020, 06:49 PM
Just a thought.
Is there any reason why i cant rename these files called INDEX
I ask as my home page is INDEX

Its just like me to do something to one page that then has an effect on the other because of the same name.

coothead
08-01-2020, 07:07 PM
Hi there theremotedr,


the index.html file is the root file of the directory.

A link to a directory like...

https://www.theremotedoctor.co.uk/m-images/emailref/

...that does not have an index.html file or other protection
will, as we have discovered, display the entire contents of
that directory.

I hope that this explanation helps.

If not, I will try to find a link that might explain it better than I. ;)


coothead

theremotedr
08-01-2020, 07:22 PM
Nope that’s fine and I understand.

Thanks for the time works great.

coothead
08-01-2020, 07:29 PM
No problem, you're very welcome, :D

I did find a link though...

Understanding the Index.html Page on a Website (https://www.lifewire.com/index-html-page-3466505)

...just in case my explanation fell short.



coothead