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 03-14-2012, 11:01 PM
herbaceous herbaceous is offline
loves layouts
 
Join Date: Feb 2012
Posts: 26
Gender: Male
Credits: 2,631
herbaceous is on a distinguished road
Default Quick PHP coding question

I've gone through my users list and found a large number of what could be spam accounts. Does anyone know how I can edit the coding and MySQL data tables so that user ISPs also come up?
Reply With Quote
  #2  
Old 03-15-2012, 02:40 AM
mapleblade mapleblade is offline
Epicness sausage
 
Join Date: May 2009
Posts: 180
Gender: Male
Credits: 19,921
mapleblade
Default

Try the first answer in http://stackoverflow.com/questions/8...sp-through-php and implimenting it into the register script (and maybe change it at login)
__________________
Need coding help? send me a PM! :)
Reply With Quote
  #3  
Old 03-15-2012, 11:08 AM
herbaceous herbaceous is offline
loves layouts
 
Join Date: Feb 2012
Posts: 26
Gender: Male
Credits: 2,631
herbaceous is on a distinguished road
Default

I'm new to coding, so I'm still kind of fumbling with MySQL/PHP. e.o;

Like, would it make a difference where I edit in the code to track ISPs?
And, how would I change the tables of the MySQL database accordingly so that ISPs come up in the last column?

u_u; I should probably sit down and really start learning this spring break.
Reply With Quote
  #4  
Old 03-15-2012, 02:08 PM
mapleblade mapleblade is offline
Epicness sausage
 
Join Date: May 2009
Posts: 180
Gender: Male
Credits: 19,921
mapleblade
Default

I'm pretty sure enough members can help you with this, i however can't. I'm busy with my exams ( ;l )
1. You should find the right area to add new code / change
2. Don't forget to add another ,'$isp' at the end of the register query
3. Update the isp at login
4. at your mysql table index click structure next to the users table
5. click add a new row or something like that and call it isp (varchar 255)

U should keep those things in mind :)
__________________
Need coding help? send me a PM! :)
Reply With Quote
  #5  
Old 03-17-2012, 04:13 PM
Csar Csar is offline
Member
 
Join Date: Oct 2011
Posts: 7
Gender: Male
Credits: 783
Csar is on a distinguished road
Default

Well, remember that spammers are not identified by their ISP (or country). Even worse, if they're just bots they'll appear as totally normal users with standard ISPs.

It is considered as an error to handle spammers by IP or ISP. You should use more powerful tools like login limitations or traps on your registration pages.

One simple trick is to use this html in registration page:

Quote:
<div id="countermeasure"><label for="email_"></label><input type="text" name="email_" /></div>
<script type="text/javascript">document.getElementById('countermeasur e').style.display = 'none';</script>
After that simply check if your user is a bot:
Quote:
<?php $is_a_bot = !empty($_POST['email_']); ?>
The trick behind this is simple: for a normal user the field will be hidden and therefore they won't fill anything into it, a bot will fill in the field and you can detect it by the caused error and kick it or send it to fake pages.

NOTE: This sometimes causes small errors with the autocomplete feature of browsers, you should handle it by adding autocomplete="off" to your form.

--------------------

If the spammers are human idiots who just want to bother you you can IP ban them and send them cookies that will detect if they changed IPs. But ISP blocking them would be insane, blocking millions of ISP clients because of one idiot would be a extreme measure.

--------------------

Adding a country-wide block is just as bad as an ISP block. It would just help if you had legal restrictions in that country and would need to avoid people visiting the site.
Reply With Quote
Reply


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
Quick question Aasixx Questions and Supports 12 08-25-2012 08:42 PM
Quick Question LilPixie Questions and Supports 3 09-04-2009 05:36 PM
Quick question. lollicat Questions and Supports 1 03-31-2009 08:38 AM
Quick Question about Images.. Lady Questions and Supports 4 03-05-2009 05:28 PM
Just a quick question LilPixie Questions and Supports 3 02-26-2009 12:49 AM


All times are GMT -5. The time now is 03:54 PM.

Currently Active Users: 9306 (0 members and 9306 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