hi! to all coders.. how to blocked user that use "phproxy" username in my site.. someone register in my site and use phproxy as a username..
how to blocked username like this?
Collapse
X
-
Block it fully.
Code:function banned_browser($banned_browser) { $var[1] = 'http://Anonymouse.org/'; $var[2] = 'http://'; $result = count($var); for ($i=0;$i<$result;$i++) { $ausg = stristr($banned_browser, $var[$i]); if(strlen($ausg)>0) { die("Unauthorised browser detected.<br/> Please use your main browser"); } } }
index.php / registrar.php
Code:$banned_browser = $_SERVER['HTTP_USER_AGENT']; banned_browser($banned_browser);
Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
Visit: WapMasterz Coming Back Soon!
_______
SCRIPTS FOR SALE BY SUBZERO
Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
_______
Info & Tips
php.net
w3schools.com
Comment
-
sir, where in index/register.php i put the code, in anywhere? And may i ask something, this code is for browser detector? Coz, my problem is when someone register and put in the input box, "phproxy" as a username,e.g[br/] Username: phproxy pasword: ****** then my site crashed, and i need to delete phproxy user to work my site fine,Last edited by arg0s12; 14.12.09, 13:55.
Comment
-
you need too add at code at them pages...Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
Visit: WapMasterz Coming Back Soon!
_______
SCRIPTS FOR SALE BY SUBZERO
Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
_______
Info & Tips
php.net
w3schools.com
Comment
-
Originally posted by arg0s12 View Postsir, where in index/register.php i put the code, in anywhere? And may i ask something, this code is for browser detector? Coz, my problem is when someone register and put in the input box, "phproxy" as a username,e.g[br/] Username: phproxy pasword: ****** then my site crashed, and i need to delete phproxy user to work my site fine,PHP Code:/* I don't know everything hehe */
Comment
-
Originally posted by arg0s12 View Postsir, where in index/register.php i put the code, in anywhere? And may i ask something, this code is for browser detector? Coz, my problem is when someone register and put in the input box, "phproxy" as a username,e.g[br/] Username: phproxy pasword: ****** then my site crashed, and i need to delete phproxy user to work my site fine,she is beautifull than php.and i love her more than php.
sigpic
Comment
-
Add this into you register.Php
after $tolog = false; and under if(trim($uid)=="")
{
echo registerform(1);
}
-----
PHP Code:else if(strlen($uid)==phproxy)
{
echo "Please chose another username";
}
PHP Code:/* I don't know everything hehe */
Comment
-
Originally posted by ranzit2 View Posta simple word cant crash sql.
LOL his right..
its not in your database.. its a bug from your script.. do replace that text..
replace red text with yours
Code:[COLOR="Red"]$cmd [/COLOR]= str_replace("phproxy","NOT ALLOWED",[COLOR="Red"]$cmd[/COLOR]);
Comment
-
Originally posted by arg0s12 View PostThanks bro, if this code not working, i will use zyclone script, , to less bug, theres so many bug in wap.net.ph script?
I already expirience that error, and made some actions to prevent it..
and it worksLast edited by huwad; 15.12.09, 05:49.
Comment
Comment