News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

How do I disable the "Ask a question" form (Google is indexing for all products)

Started by jdunderhill, March 01, 2015, 19:36:43 PM

Previous topic - Next topic

jdunderhill

Hi

I am really strugling with disabling the "Ask a question" form, I am using VM2 as catalogue only

I have removed the ask a question button\link from the productdetails default.php flypage as far as I can see but for any of the products if you add the following to end the of the URL it will show the "ask a question" form: /askquestion?tmpl=component

It is a new site that I have just launched and I have noticed that google is indexing Ask a question pages for every product

Wondered if the Ask a question form can be disabled altogether? - This is so that I don't receive spam in the future and google doesn't index ask a question pages for every product?

I have tried the forums and can see solutions for VM1 but no luck for VM2 yet

Regards,

Jamie

GJC Web Design

Disallow: /askquestion  in your robots.txt?

check in your Google webmasters robots.txt checker to test
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jdunderhill

Hi

Cheers for the suggestion I have blocked the URL in robots.txt using the below wildcard so that it blocks anything including "/askquestion?tmpl=component" from being indexed:

Disallow: */askquestion?tmpl=component

That seems to work all ok from multiple URLs so that is great

Is there an easy way of stopping the ask a question form from being generated altogether? Just thinking that further down line the spammers could append /askquestion?tmpl=component to any of my products and could autofill out the forms or and it would generate Spam

Cheers,

Jamie



jenkinhill

Enabling recaptcha for the ask question form is the simplest way to prevent bot spam at the moment.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

jdunderhill

Hi

Thanks very much for the help  :D

I will add a recaptcha step to the ask a question page

Cheers,

Jamie