drop pending members for gender=1 - نوشته شده در (1161 Views)
Average Member
phy1729
مطلب: 589
589
Is there a way to silently drop any pending member that provides a gender of 1? by silently drop I mean don't output an error just delete the record. All the span I have gotten thus far has provided a gender of one so this would eliminate all spam for me.<
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Snitz Forums Admin
ruirib
مطلب: 26364
26364
No code for that, probably you could just use a SQL statement. What database are you using?<
نوشته شده در
Forum Moderator
AnonJr
مطلب: 5768
5768
Originally posted by phy1729
so this would eliminate all spam for me.
Until they figure it out... blackeyedead<
نوشته شده در
Average Member
phy1729
مطلب: 589
589
Well hopefully it's automated so they wouldn't figure it out, but I'm using MS Access 2000 using virtual path. What I was think was that when the bot registered the code would check the gender field just as it would check that the password to match or the email address not to be in use but it wouldn't throw an error the code would just silently drop the request and delete the bot from the database.<
نوشته شده در
Snitz Forums Admin
ruirib
مطلب: 26364
26364
So what you need is a change to the registration code. Are you using email validation / restrict registration?<
نوشته شده در
Average Member
phy1729
مطلب: 589
589
email validation would it be something like
if strEmail = "1" and strRestrictReg = "0" and gender <> "1" then<
نوشته شده در
Snitz Forums Admin
ruirib
مطلب: 26364
26364
I'm just trying to find out where you need to add the code.<
نوشته شده در
Forum Moderator
AnonJr
مطلب: 5768
5768
Originally posted by phy1729
Well hopefully it's automated so they wouldn't figure it out

you'd be surprised... a handful of bots have made it past similar measures I've made. (namely Shaggy's Birthday MOD) They've all been caught by the e-mail validation though.
Please don't misunderstand: I'm not trying to discourage this. (I'll be putting it to use myself) While it will work for the vast majority of the idiots out there, someone will figure it out starting this whole game of cat and mouse all over again.<
نوشته شده در
Average Member
phy1729
مطلب: 589
589
I know but it cuts the number of bots down.<
نوشته شده در
Average Member
phy1729
مطلب: 589
589
would this work? register.asp line 616ish
regHomepage = ""

if strEmail = "1" and strRestrictReg = "0" and gender <> "1" then
'## E-mails Message to the Author of this Reply.<
 
شما باید یک متن وارد کنید