Results 1 to 4 of 4
Hybrid View
-
27th Mar 2011, 07:58 PM #1MemberWebsite's:
warezxtc.com_SERVER vars are already strings, don't need to typecast them.
Also you may wanna use regex instead of strpos in the '// ban certain IPs' loop. It will be slower (microseconds slower) but more accurate. E.g. banned ip is '192.168', will ban '*.*.192.168' and '*.192.168.*' and '192.168.*.*'. Using regex you can say it starts with that, not just contains it. Example: '#^192.168#'
The code is fine though really. But it won't help in detecting most proxies since there is no real efficient way to do that.
Also 'ip' is a unique field in the table so you don't need a while loop. Just one call of mysql_fetch_assoc will do.CyberJ37 Reviewed by CyberJ37 on . [PHP/MySQL] Proxy check script I was bored and decided to code this to test my skills. Please feedback and report any bugs if found :) <?php /* -------------------- Proxy Block Script -------------------- Created by NewEraCracker Date 2011/07/08 Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[Selling] PHP + MYSQL script
By tmworks in forum Marketplace (Buy, Sell and Trade)Replies: 2Last Post: 4th Aug 2012, 01:23 AM -
I need script php mysql
By softpk in forum Web Development AreaReplies: 4Last Post: 25th May 2012, 04:29 PM -
How do I check if MySQL database is to large for phpmyadmin
By Webmin in forum Server ManagementReplies: 2Last Post: 2nd Apr 2012, 05:55 PM -
PHP/MySQL Script Ideas?
By MiKE! in forum Web Development AreaReplies: 4Last Post: 20th Mar 2011, 10:15 AM -
MySQL script Error
By SᴩiDᴇЯ in forum Technical Help Desk SupportReplies: 3Last Post: 15th Aug 2009, 01:15 AM
themaCreator - create posts from...
Version 3.53 released. Open older version (or...