how to blocked username like this?

Started on the old forum in December 2009 · view the original in the archive · old links redirect here

27 replies · 1,172 views · started 16 years ago · 1 min read

6 participants
arg0s12 Developer · 144 posts #1

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..:(❗

joseg Junior · 34 posts #2

Add in index

if($ubr=="http://Anonymouse.org"){

echo "<im src =\"images/notok.gif\" alt=\"*\"/>your block message

";
echo "<a href="index.php"><img src="images/home.gif" alt="*"/>Home</a>";
exit(); }

arg0s12 Developer · 144 posts #3

Ok, thanks sir! Last night, theres someone register on my site, then he/she use phproxy as a username, then my database crashed, , ill try this code, thanks,

subzero Super moderator Fellow · 3,954 posts #4

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... _______…

arg0s12 Developer · 144 posts #5

sir, where in index/register.php i put the code, in anywhere?

arg0s12 Developer · 144 posts #6

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,

subzero Super moderator Fellow · 3,954 posts #7

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... _______…

Ponick Developer · 216 posts #8

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 */

Find me on facebook

ranzit2 Developer · 187 posts #9

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.

Ponick Developer · 216 posts #10

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 */

Find me on facebook

arg0s12 Developer · 144 posts #11

Right, sorry! Thanks! I'll try tommorow, and i post back if working, ,

arg0s12 Developer · 144 posts #12

I forgot, also in login page, ,

huwad Developer · 215 posts #13

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 Developer · 144 posts #14

Thanks bro, if this code not working, i will use zyclone script, , to less bug, theres so many bug in wap.net.ph script?

huwad Developer · 215 posts #15

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.

arg0s12 Developer · 144 posts #16

o.k bro, in core.php i put this code, right?

huwad Developer · 215 posts #17

in all pages that users can add/display text.. xD

hacking is like sex. you get in, you get out and you pray you left nothing behind.

arg0s12 Developer · 144 posts #18

bro, request, ur inbox script in starwap? If you dont mind? Hehehe, ,

huwad Developer · 215 posts #19

my inbox?? whats different in my inbox?? LOL.. wapdesire/wickedempire, starwap, and zyclones uses same script..

hacking is like sex. you get in, you get out and you pray you left nothing behind.

arg0s12 Developer · 144 posts #20

the textarea, when you read the pm,

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close