Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Quick PHP coding question (http://www.mysidiaadoptables.com/forum/showthread.php?t=3508)

herbaceous 03-14-2012 11:01 PM

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?

mapleblade 03-15-2012 02:40 AM

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)

herbaceous 03-15-2012 11:08 AM

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.

mapleblade 03-15-2012 02:08 PM

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 :)

Csar 03-17-2012 04:13 PM

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.


All times are GMT -5. The time now is 07:27 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.