![]() |
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?
|
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)
|
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. |
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 :) |
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:
Quote:
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.