VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: blackrat999 on July 28, 2014, 10:43:25 AM

Title: Google listing invoices in my safe path
Post by: blackrat999 on July 28, 2014, 10:43:25 AM
Hi.
i have several "safe path" folders on my server for various virtuemart installations and it seems if you "google" a telephone number for instance from any of them the invoices are listed in pdf's on the search results ! not vert satisfactory at all - how can i prevent search robots accessing these folder or if i password protect them will VM2 still be able to access them ?

/public_html/vmfiles/invoices/invoices

thanks
Title: Re: Google listing invoices in my safe path
Post by: GJC Web Design on July 28, 2014, 11:17:39 AM
but /public_html is just that - public - your safe path must be ABOVE the public_html folder

it needs to be the full server path - get it from e.g. your Joomla temp path

e.g.
/home/xxxxxxxxxxxx/public_html/tmp

so your safe could be

/home/xxxxxxxxxxxx/invoices
Title: Re: Google listing invoices in my safe path
Post by: blackrat999 on July 28, 2014, 11:31:37 AM
Ideal many thanks i think i have accomplished that !
cheers
Title: Re: Google listing invoices in my safe path
Post by: Milbo on July 28, 2014, 11:42:54 AM
The reason it is also called safe PATH and not URL. in fact we wanna provide a suitable htaccess so that you can keep it in your public_html folder. We cannot provide that automatically, because it depends on the server environment.
Title: Re: Google listing invoices in my safe path
Post by: StefanSTS on July 28, 2014, 15:38:52 PM
Your provider will probably allow to restrict the access to a folder only to a user that provides a password.

Password protect your folder through that function in your providers backend.

Otherwise you have to set that manually with a .htaccess file. Google will tell you how to add a user and password through htaccess.

Stefan