11
grazor
Re: Getting Spammed through contactus module LOL!!!
  • 2005/12/20 18:41

  • grazor

  • Just popping in

  • Posts: 1

  • Since: 2005/12/20


I've had several attacks on my sites. It's more than annoying when you get 30 or more emails from your contact us page in a matter of hours. The spammers are using an automated system to send spam to multiple sites using the XOOPS contact us form. Since they're based on the same form with the same field names they can essentially fill out one form and send it to all the XOOPS sites they have on file.

I have a workaround for those using XOOPS 2.0.x:

In This file contact/contactform.php:

Change this line
$submit_button = new XoopsFormButton("", "submit", _CT_SUBMIT, "submit");

to this:
$submit_button = new XoopsFormButton("", "sitesubmit", _CT_SUBMIT, "submit");

(note: the new variable name - "sitesubmit" can be called anything you want and I suggest you create your own version of the name.)

Then on /contact/index.php

Replace this line:
if ( empty($HTTP_POST_VARS['submit']) ) {

with this line:
if ( empty($HTTP_POST_VARS['sitesubmit']) ) {

Remember. whatever you name the field must be the same in both places.

this will force the user to use the form on your site.

I hope this helps a few of you out there.

-Grazor

12
Peekay
Re: Getting Spammed through contactus module LOL!!!
  • 2005/12/21 13:38

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Great tip. Many thx. Should go into a 'How to combat spammers and hackers' section in the FAQ, IMHO.
A thread is for life. Not just for Christmas.

Login

Who's Online

385 user(s) are online (283 user(s) are browsing Support Forums)


Members: 0


Guests: 385


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits