Jaat today created more thn 3000 nicks on ma site with auto nick maker nd also was spamming ...how to stop it nd other hacking attacks ? pls help urgent....he is still goin on with nick creation ...
Urgent Help
Collapse
X
-
Urgent Help
<span style="font-size:12pt;line-height:100%"><span style="color:#FF0000">ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt</span></span>Tags: None
-
include("block.php"); in the 2nd line of the index.php,login.php etc php pages that is the include function should be pasted after php start tag <?php
block.php
ban.phpCode:<?php $brws = explode("(",$_SERVER['HTTP_USER_AGENT']); $ban="";// write broswer name like Nokia 6020 if($brws[0]==$ban){ header ('Location: ban.php');} ?>
Code:<?php header("Content-type: text/vnd.wap.wml; charset=ISO-8859-1"); echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>"; echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n"; / echo "<wml>\n"; echo "<head>"; echo "<meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>"; echo "</head>"; echo "<card newcontext=\"true\" title=\"Sorry!\">\n"; echo "<p align=\"center\">\n"; echo "[size="1"]\n"; echo "Sorry: --- [b]*[/b]You cant enter here\n"; echo "[/size]\n"; echo "</p>"; echo "</card>"; echo "</wml>"; ?>
-
i would like to ask you which script are you using? i can stop if you are using mobile chat or chatzone script etc let see put this code in your reg.phpJaat today created more thn 3000 nicks on ma site with auto nick maker nd also was spamming ...how to stop it nd other hacking attacks ? pls help urgent....he is still goin on with nick creation ...[/b]
it will stop auto now lol and just paste in your reg.php before $login=htmlspecialchars(stripslashes(trim($login)) ); no need add ip or browser enjoyCode:$cou = mysql_fetch_array(mysql_query("SELECT `ip`,`soft` FROM `chat_users` order by id desc LIMIT 1")); if($cou[0]=="".getenv(REMOTE_ADDR).""&&$cou[1]=="".getenv(HTTP_USER_AGENT)."") { include "./a.php"; } else {left wap stuff
Comment
-
include("block.php"); in the 2nd line of the index.php,login.php etc php pages that is the include function should be pasted after php start tag <?php
block.php
ban.phpCode:<?php $brws = explode("(",$_SERVER['HTTP_USER_AGENT']); $ban="";// write broswer name like Nokia 6020 if($brws[0]==$ban){ header ('Location: ban.php');} ?>
[/b]Code:<?php header("Content-type: text/vnd.wap.wml; charset=ISO-8859-1"); echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>"; echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n"; / echo "<wml>\n"; echo "<head>"; echo "<meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>"; echo "</head>"; echo "<card newcontext=\"true\" title=\"Sorry!\">\n"; echo "<p align=\"center\">\n"; echo "[size="1"]\n"; echo "Sorry: --- [b]*[/b]You cant enter here\n"; echo "[/size]\n"; echo "</p>"; echo "</card>"; echo "</wml>"; ?>
Thnx rukiya ...i need something tht can make a gap between registration ....nd i use the code u provided already but i write ip+browser the one u gave is only fro browser ??<span style="font-size:12pt;line-height:100%"><span style="color:#FF0000">ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt</span></span>
Comment
-
i would like to ask you which script are you using? i can stop if you are using mobile chat or chatzone script etc let see put this code in your reg.php
where i write 100.20.300.400 rename that ip with spammer/folder ip and also user agentCode:$cou = mysql_fetch_array(mysql_query("SELECT `ip`,`soft` FROM `chat_users` order by id desc LIMIT 1")); if($cou[0]=="".getenv(REMOTE_ADDR).""&&$cou[1]=="100.200.300.400".getenv(HTTP_USER_AGENT)."Mozilla") { include "./a.php"; } else {
mozilla to Opera or phone etc hope it will work for you[/b]
Gill bro m using chatzone script oNly nd wht is a.php in tht ?? ...<span style="font-size:12pt;line-height:100%"><span style="color:#FF0000">ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt</span></span>
Comment
-
Gill bro m using chatzone script oNly nd wht is a.php in tht ?? ...[/b]
paste in reg.php it will stop auto if last user will try to make new nick you can check with your own browser/ ip let me know whats result
in a.php put this codeCode:$cou = mysql_fetch_array(mysql_query("SELECT `ip`,`soft` FROM `chat_users` order by id desc LIMIT 1")); if($cou[0]=="".getenv(REMOTE_ADDR).""&&$cou[1]=="".getenv(HTTP_USER_AGENT)."") { include "./a.php"; } else {
Code:<? echo "<card title=\"IP Blocked\">"; echo "<p align=\"center\">"; echo "<big>Your IP Address is [b]Blocked[/b] "; echo "Be Nice Next Time...;-) [b]yourmail@site.com[/b]</big>"; echo "</p></card></wml>"; @mysql_close(); ?>
left wap stuff
Comment
-
But bro jaTT uses a lot of ip's nd proxies how many wud i put in there ? isnt there any oder way tht user ones registered with ip cnt register for some time ??MAKE IT a.php UPLOAD IN SAME DIR[/b]Code:<? echo "<card title=\"IP Blocked\">"; echo "<p align=\"center\">"; echo "<big>Your IP Address is [b]Blocked[/b] "; echo "Be Nice Next Time...;-) [b]yourmail@site.com[/b]</big>"; echo "</p></card></wml>"; @mysql_close(); ?>
<span style="font-size:12pt;line-height:100%"><span style="color:#FF0000">ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt</span></span>
Comment
-
OOps ok got u wud use this code ....paste in reg.php it will stop auto if last user will try to make new nick you can check with your own browser/ ip let me know whats result
in a.php put this codeCode:$cou = mysql_fetch_array(mysql_query("SELECT `ip`,`soft` FROM `chat_users` order by id desc LIMIT 1")); if($cou[0]=="".getenv(REMOTE_ADDR).""&&$cou[1]=="".getenv(HTTP_USER_AGENT)."") { include "./a.php"; } else {
[/b]Code:<? echo "<card title=\"IP Blocked\">"; echo "<p align=\"center\">"; echo "<big>Your IP Address is [b]Blocked[/b] "; echo "Be Nice Next Time...;-) [b]yourmail@site.com[/b]</big>"; echo "</p></card></wml>"; @mysql_close(); ?>
<span style="font-size:12pt;line-height:100%"><span style="color:#FF0000">ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt</span></span>
Comment
-
so what if a user has to fill out one more field, thats what captcha systems are made for to stop bots from registering and what notnah thats just one more field to fill out. log browser and ip, n write a piece of code to stop browsers and ips saved from registering more than once say per day or week[/b]
Comment
-
can u give example of code how wud i make it like u say ?? ...like this code given by gill bro wud stop same ip +browser registering twice ...how to add time limit ??nah thats just one more field to fill out. log browser and ip, n write a piece of code to stop browsers and ips saved from registering more than once say per day or week[/b]
amylee i dont have any idea abt captcha system are u talking abt validation system by entering a code ?? nd in ma case the Jatt used a software to make nicks so its like bot only ....Thnx to all for ua comments ....Code:$cou = mysql_fetch_array(mysql_query("SELECT `ip`,`soft` FROM `chat_users` order by id desc LIMIT 1")); if($cou[0]=="".getenv(REMOTE_ADDR).""&&$cou[1]=="".getenv(HTTP_USER_AGENT)."") { include "./a.php"; } else {<span style="font-size:12pt;line-height:100%"><span style="color:#FF0000">ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt</span></span>
Comment
-
Ok hun i wud try for it ...it also stops ppl using a "auto nick maker" as an app cant decipher randomly generated images
i have had ppl using these sort of apps exploiting my register page and a captcha image like what you see on my site now along with user validation has stopped this crap from happening full stop[/b]<span style="font-size:12pt;line-height:100%"><span style="color:#FF0000">ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt</span></span>
Comment

Comment