Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 12-10-2013, 09:57 AM
AlexC's Avatar
AlexC AlexC is offline
Moderator
 
Join Date: Dec 2009
Location: Canada
Posts: 753
Gender: Unknown/Other
Credits: 66,323
AlexC is an unknown quantity at this point
Default Spam Protection?

Does anyone have any tips for spam protection, perhaps something I could implant until the next update (which will hopefully have some spam protection too, haha).

I'm getting a bunch of sign ups from spam bots, and I have a feeling it'll only get worse once I start advertising. I'm removing the register page for now, but it's still an issue I hope to address soon.
__________________
Reply With Quote
  #2  
Old 12-10-2013, 12:30 PM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 19,255
IntoRain is on a distinguished road
Default

The question you put up in the register page would be for that, but for example if it's a math question it will be easier for them to find out. Maybe a captcha installation would be better
__________________


asp.net stole my soul.
Reply With Quote
  #3  
Old 12-10-2013, 03:24 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 111,647
Abronsyth is on a distinguished road
Default

Spambots can get through many captchas (kind of like fleas adapting to flea collars). There are anti-spam measure that can be taken, but I'll have to do more research.

The security question should be a fairly good feature, as long as it's not mathematical or common sense. Something such as "what genus are rats in?" would be good, I'd assume.
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote
  #4  
Old 12-10-2013, 05:11 PM
AlexC's Avatar
AlexC AlexC is offline
Moderator
 
Join Date: Dec 2009
Location: Canada
Posts: 753
Gender: Unknown/Other
Credits: 66,323
AlexC is an unknown quantity at this point
Default

Thanks for the responses. My quest was what was the first letter of the word rodent, but your suggestion is good.

I suppose I'll just make it harder.
__________________
Reply With Quote
  #5  
Old 12-11-2013, 01:03 PM
Tequila's Avatar
Tequila Tequila is offline
The Grim One
 
Join Date: Jan 2009
Location: Souther Tier, New York State
Posts: 1,356
Gender: Female
Credits: 96,094
Tequila is on a distinguished road
Default

You can try to implement this code:
PHP Code:
if (isset($_POST['submit']) && $_SERVER['REQUEST_METHOD'] == "POST") { 
    
$exploits "/(content-type|bcc:|cc:|document.cookie|onclick|onload|javascript|alert)/i"
    
$profanity "/(beastial|bestial|blowjob|clit|cock|cum|cunilingus|cunillingus|cunnilingus|****|ejaculate|fag|felatio|fellatio|****|fuk|fuks|gangbang|gangbanged|gangbangs|hotsex|jism|jiz|kock|kondum|kum|kunilingus|orgasim|orgasims|orgasm|orgasms|phonesex|phuk|phuq|porn|pussies|*****|spunk|xxx)/i"
    
$spamwords "/(viagra|phentermine|tramadol|adipex|advai|alprazolam|ambien|ambian|amoxicillin|antivert|blackjack|backgammon|holdem|poker|carisoprodol|ciara|ciprofloxacin|debt|dating|porn)/i"
    
$bots "/(Indy|Blaiz|Java|libwww-perl|Python|OutfoxBot|User-Agent|PycURL|AlphaServer)/i"

    if (
preg_match($bots$_SERVER['HTTP_USER_AGENT'])) { 
        exit(
"<p>Known spam bots are not allowed.</p>"); 
    } 
    foreach (
$_POST as $key => $value) { 
        
$value CleanUp($value); 

        if (empty(
$_POST['name']) || empty($_POST['email']) || empty($_POST['url']) || empty($_POST['collecting']) ) { 
            exit(
"<p>Name, e-mail, URL and collecting are required fields. Please go back and fill in the form properly.</p>"); 
        } elseif (
preg_match($exploits$value)) { 
            exit(
"<p>Exploits/malicious scripting attributes aren't allowed.</p>"); 
        } elseif (
preg_match($profanity$value) || preg_match($spamwords$value)) { 
            exit(
"<p>That kind of language is not allowed through our form.</p>"); 
        } 

    } 
I'm not sure how to mix it in myself, but I've seen this used on other register.php files.
__________________
Artist. Designer. Gamer. Mother.
[portfolio] [tarot] [Rune Hollow] [freebies]
Reply With Quote
  #6  
Old 12-11-2013, 02:36 PM
AlexC's Avatar
AlexC AlexC is offline
Moderator
 
Join Date: Dec 2009
Location: Canada
Posts: 753
Gender: Unknown/Other
Credits: 66,323
AlexC is an unknown quantity at this point
Default

Thanks, I'll test it next time I get a free moment. :3
__________________
Reply With Quote
  #7  
Old 12-12-2013, 04:01 PM
Ruinily Ruinily is offline
Member
 
Join Date: Mar 2011
Location: England
Posts: 185
Gender: Female
Credits: 22,686
Ruinily is on a distinguished road
Default

Hey I'm very interested in this, I have a spree of spammers signing up with a name like carpenter. :/ Is there any chance it can work on previous Mysidia version too?
__________________

Chocolate butterfly cat pudding. o.o


And since even the programming on this forum doesnt like me anymore heres my sites address. XD
http://felkyocreatures.com/index.php
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mys v1.3.x Anti Spam Security Q&A --> ACP Control LordeCrimson Mys v1.3.x Mods 1 07-16-2020 01:08 AM


All times are GMT -5. The time now is 04:39 AM.

Currently Active Users: 444 (0 members and 444 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636