Author Topic: spam on ask a question after deleting the function  (Read 3458 times)

erwin_m

  • Jr. Member
  • **
  • Posts: 86
spam on ask a question after deleting the function
« on: November 28, 2013, 22:47:22 pm »
At the moment that I was getting spam from the product inquiry, I've installed a captcha, this didn't work. So, I've installed another one and so on. At the end I have deleted the code in flypage.tpl which puts the inquiry on the page. So, it's totally gone. The spam was stopped for some time. When it started all over I have deleted the flypage.tpl variants and the standard theme with the same files. It helped again for some time. After that I've deleted my previous flypage.tpl which where renamed, it stopped for a couple of days and again its started.

I don't have a clue where this emails are generated and how to stop this effectively. Can anyone help me with this? It doesn't have to be a beautiful way. I'm already started with a new site, but this will take a few more months. So, I would really like to get rid of the spam. At the highest point I was getting 300 mails a day....

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10299
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: spam on ask a question after deleting the function
« Reply #1 on: November 28, 2013, 23:57:57 pm »
The problem is just removing the links from the flypage isn't enough.. if they know the url they can reach the form

e.g http://www.YOURSITE.www/index.php?page=shop.ask&flypage=flypage.tpl&product_id=6&category_id=1&option=com_virtuemart
will take them there

go to file administrator/components/com_virtuemart/html/shop.ask.php

add just after the joomla check

Code: [Select]
<?php 
if( !defined'_VALID_MOS' ) && !defined'_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
echo 
'go away';
die();

that should stop it.. feel free to put something much ruder...
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

erwin_m

  • Jr. Member
  • **
  • Posts: 86
Re: spam on ask a question after deleting the function
« Reply #2 on: November 29, 2013, 00:17:59 am »
This code was already there, in the beginning of the document, on the absolute top. In this place it doesn't help. Do I have to place it somewhere else? You mention the joomla check, can you give me a hint where to find it?

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10299
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: spam on ask a question after deleting the function
« Reply #3 on: November 29, 2013, 00:20:14 am »
which code was already there?

echo 'go away';
die();

??
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

erwin_m

  • Jr. Member
  • **
  • Posts: 86
Re: spam on ask a question after deleting the function
« Reply #4 on: November 29, 2013, 07:33:57 am »
Sorry, I was to fast. Have placed the extra code, let's wait...

Thank you!

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10299
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: spam on ask a question after deleting the function
« Reply #5 on: November 29, 2013, 09:03:19 am »
as a check go to http://www.YOURSITE.com/index.php?page=shop.ask&flypage=flypage.tpl&product_id=6&category_id=1&option=com_virtuemart
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation