turn off registration from any other sites

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

38 replies · 1,685 views · started 17 years ago · 1 min read

TL;DR · summary of 38 replies
  • subzero suggested using a time limit for registration, with a message indicating the user needs to wait 30 seconds after registering.
  • coder4u proposed adding captcha functionality in the registration process.
  • GiLL provided a suggestion to use an IP ban file (ipban.php) and include it in the registration script.
  • CreativityKills pointed out vulnerabilities in session handling that could be exploited by bots, such as not destroying the session after validation.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

14 participants
bijaybd Developer · 178 posts #1

is there any code to stop auto bot registration like someone is using my registration page from other site coded . like he is just typing the id in his page and its auto registering ids like 1 2 3 4 5 autometically so is there any code or .httacccess to stop this and the registration will only allowed from my site registration page ???

kei_ki7 Senior · 431 posts #2

.. try captcha code

Did I help you? You can help me too Your donations will help me finance my studies.

bijaybd Developer · 178 posts #3

i ma using capcha but it doesnt work for me

WhiteWarrior Principal · 1,419 posts #4

change it, use a good capcha! like numbers and letters or something..

bijaybd Developer · 178 posts #6

the capcha i am using is image capcha with 4 numbers but i think the are creating a lot of ids with just a single capcha how to possbile that from any other site like reffer site registration will not be allowed like i saw before if i come from any site it shows reffer site in some sites so is it possible to do that by this way

subzero Super moderator Fellow · 3,954 posts #7

Random code in sign up reg time limt alot aways you can stop it

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

bijaybd Developer · 178 posts #8

i tried a lot of times even i requested but nothing works for me i just wanted that it will take 30 seconds after register to enter the site and also the cookies thing cookie banning or put a cookie after registeration so that user will not able to register again but i am failed to do all those things that because why i requesting time by time for those things and i am facing huge problem of flooding spamming auto registration massive pproblem atleast 300 register per day

subzero Super moderator Fellow · 3,954 posts #10

why dont you filter the reg page

if($ip == "$filer") { echo " NO GO AWAY!"; }else{ echo "YES U MAY SIGN UP"; }

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

ranzit2 Developer · 187 posts #11

gill wrote: i am sure they are using auto fill app and you shuld use email verification i know who are they ...here ashu owner of mansoon.net and coder4u let me get free time wil f@@ stupid they dont know what is result of "hacking" and they call themself Hacker just creating nicks or abusing in chat room it is their work ...why ? they want turn off other sites that users can buy sites from them and they are using lava script.

rider already complaint here about ashu about spamming..and regarding auto fill.there are some russian scripts.i had not seen how they work but they are for same purpose..

she is beautifull than php.and i love her more than php.

bijaybd Developer · 178 posts #12

subzeero bro i can't do that because the problem if shared ip of mobile internet providers like same ip used by 100 users so if i filter 1 ip then the other user will not able to register so i need something like auto validation also mobile users basically dont have email address of their own so thats another pproblem with email varification so if i get a auto validatation or a cookie set then the flooder will not able to register a lot of ids in a single mins and i dont know how they are working and from which site but i am working on it and trying to find it out

ranzit2 Developer · 187 posts #13

bijaybd wrote: subzeero bro i can't do that because the problem if shared ip of mobile internet providers like same ip used by 100 users so if i filter 1 ip then the other user will not able to register so i need something like auto validation also mobile users basically dont have email address of their own so thats another pproblem with email varification so if i get a auto validatation or a cookie set then the flooder will not able to register a lot of ids in a single mins and i dont know how they are working and from which site but i am working on it and trying to find it out

whats the problem with random code at registration.does not that block flooding.

she is beautifull than php.and i love her more than php.

bijaybd Developer · 178 posts #14

you mean say capcha i dont know how they are doing this also using proxy as well from pc they are using application i guess or something else so i need 30 seconds wait to get validated

subzero Super moderator Fellow · 3,954 posts #15

NO you can have it to delete with time.

You can place a message sayin

Hello sorrry, Some one else sign up with same ip as you. All you need is wait for 30 secs then Try Again Sorry for any confiests

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

GiLL Senior · 356 posts #16

try this in your reg.php if your using mobile chat script etc

$cou = mysql_fetch_array(mysql_query("SELECT `ip`,`soft` FROM `chat_users` order by id desc LIMIT 1"));

if($cou[0]=="".getenv(REMOTE_ADDR)."") { include "./ban.php"; } 

make a ban.php

<?
echo '<card title="'.getenv(REMOTE_ADDR).'@ NO ACCESS  banned!">';
echo "<p align=\"center\">";
echo"<b>banned  by staff !</b><br/>";
echo"<b>Contact Site Owners  admin@yoursite.com</b><br/>";
echo "<a href=\"index.php\">BACK</a><br/><b>© your site</b>";
echo "</p></card></wml>";
@mysql_close();
?>

or use this for ban ip range or seg make a php file called ipban.php and in reg.php put this on top after header codes

include "./ipban.php";

<?

$getip = $_SERVER["REMOTE_ADDR"];
$banned_ip = array();

// Here you  change ips which  you   want   ban  
$banned_ip[] = '172.99.*';
$banned_ip[] = '200.145.131.216*';
$banned_ip[] = '193.*';

foreach($banned_ip as $banned)
{
$blacked=str_replace('*', '', $banned);
$len=strlen($blacked);
if ($ip==$blacked || substr($getip, 0, $len)==$blacked)
{

echo 'You are banned!';
exit;
}
}

?>

left wap stuff

coder4u Developer · 76 posts #17

random bot

plz put captcha.php number and alphabet ok u can secure ur register its a auto bot 😍

coder4u Developer · 76 posts #18

hmm

gill u gv here code its a live chat reg secure not forum secure lol

coder4u Developer · 76 posts #19

captcha.php

<? session_start(); header('content-type: image/jpeg'); $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); ?>
GiLL Senior · 356 posts #20

coder4u wrote: captcha.php

<? session_start(); header('content-type: image/jpeg'); $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); ?>

what you wana say it doesnt make sense what the h** your talking about mr poor hacker ? dont teach me ok ?and stop flooding here

left wap stuff

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