how to blocked username like this?
Started on the old forum in December 2009 · view the original in the archive · old links redirect here
Block it fully.
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
$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... _______…
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,
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... _______…
arg0s12 wrote: 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,
thats means u r gonna block "phproxy" word as a user name?
/* I don't know everything hehe */
arg0s12 wrote: 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,
a simple word cant crash sql.
she is beautifull than php.and i love her more than php.
Add this into you register.Php
after $tolog = false; and under if(trim($uid)=="") { echo registerform(1); } ----- 🙂
else if(strlen($uid)==phproxy)
{
echo "Please chose another username";
}
/* I don't know everything hehe */
ranzit2 wrote: a 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
[COLOR="Red"]$cmd [/COLOR]= str_replace("phproxy","NOT ALLOWED",[COLOR="Red"]$cmd[/COLOR]);
hacking is like sex. you get in, you get out and you pray you left nothing behind.
arg0s12 wrote: Thanks bro, if this code not working, i will use zyclone script, , to less bug, theres so many bug in wap.net.ph script?
it will surely work if you know how to use it.. xD
I already expirience that error, and made some actions to prevent it..
and it works
hacking is like sex. you get in, you get out and you pray you left nothing behind.