HELP! I'm getting spammed!

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #111 (permalink)  
Old 10-31-2008, 09:37 PM
Casual Pligger
Pligg Version: 9.8.2
Pligg Template: yget
 
Join Date: Aug 2007
Posts: 37
You're welcome, cybertooth (cool nickname).

I added another idea for Step 2 in my last post if you're interested. I like it better.

Monitor 'Top Users' or wherever you monitor new signups to see if this works. If it needs revisiting, I'll get back to you early next week.

Last edited by newsome; 10-31-2008 at 09:57 PM. Reason: answering cybertooths 'btw' edit
Reply With Quote
  #112 (permalink)  
Old 11-01-2008, 08:26 PM
Casual Pligger
 
Join Date: Apr 2007
Posts: 65
Quote:
Originally Posted by newsome View Post
You're welcome, cybertooth (cool nickname).

I added another idea for Step 2 in my last post if you're interested. I like it better.

Monitor 'Top Users' or wherever you monitor new signups to see if this works. If it needs revisiting, I'll get back to you early next week.
I think there is an improvement with the registration ... thanks


it would be good if you can share the step 2 with us too ..

this will benefit other members here suffering from spam ..

thanks a lot
Reply With Quote
  #113 (permalink)  
Old 11-03-2008, 11:48 PM
Casual Pligger
Pligg Version: 9.8.2
Pligg Template: yget
 
Join Date: Aug 2007
Posts: 37
Quote:
Originally Posted by cybertooth View Post
I think there is an improvement with the registration ... thanks


it would be good if you can share the step 2 with us too ..

this will benefit other members here suffering from spam ..

thanks a lot
Hi again cybertooth.

I'm glad to hear you see an improvement.

The idea for another version of Step 2 is near the bottom of my post (#109 - quoted below) where it says '~~~~~~~ ANOTHER IDEA ~~~~~~~~'.


Quote:
Originally Posted by newsome View Post
Hi cybertooth.

The suggestions I previously provided were for v.9.8.2, thinking that the next 1 or 2 versions would have similar structure of the files I cited. I see that is not the case. I just downloaded v.9.9.5 and there are major differences with respect to registration. So, possibly try this knowing I'm not an expert on sessions nor Smarty (feedback for experts welcomed):

Step 1:
======
At the top of 'templates/yget/register_center.tpl', add the following:
PHP Code:
{php}
session_start();
    
$stop_spam_now time() + 445544;  // suggestion: change this variable name and its value
    
$stop_spam $stop_spam_now;  // suggestion: change this variable name, too
    
session_register("stop_spam_now");
    
session_register("stop_spam");
{/
php
Note: Thought process - adding this variable behind the scenes to the registration form template makes using this form a requirement for writing to the database versus a bot circumventing this form and calling the registration functions e.g. using their own form from a different server.


Step 2:
======
In 'register.php' at the top inside of either 'function register_check_errors()' or 'function register_add_user()', check for the presence of that variable's value, else stop processing. For example, add before the global statement:
PHP Code:
    if (!isset($stop_spam) || ($stop_spam != $stop_spam_now)) {
        return;
    } 

Note: Actually, you can do this without using sessions, just using normal php variables

HTH.

P.S. I may not be able to respond right away past tonight as I'll be very busy this entire weekend and possibly Monday --


EDIT:
~~~~~~~ ANOTHER IDEA ~~~~~~~~
This may be a bit more secure for Step 2 (for register.php), again using your own variable names:

PHP Code:
    if (!session_is_registered("stop_spam") || !session_is_registered("stop_spam_now")) {
        return;
    } 
Again, it doesn't matter what value you assign to $stop_spam_now nor $stop_spam. Also, you can just use one of the two variables instead of both. No one should know what variable name(s) you are using -- hopefully, they can't use a program to figure it out either(?).
If you try it, please let me know how it works.

Thanks.
Reply With Quote
  #114 (permalink)  
Old 11-04-2008, 01:58 PM
Casual Pligger
 
Join Date: Apr 2007
Posts: 65
hello newsome ,

I tried them both .. but the second one doesnt seem to work ,,
there is an improvement in using the first method .. it slows down the spam registration ..


thanks for the codes .. i'll stick in using the first method ..
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Looks like our Curl User is back REF Help I am being Spammed rmorrill Questions and Comments 1 01-09-2008 11:00 PM
Wiki has been spammed... jrothra Questions and Comments 5 07-14-2007 04:20 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development