Gayner Posted November 14, 2009 Share Posted November 14, 2009 going to be a prayre site.. like pray4 me dot com or whatever, i'll find a name.. but going to have people post pray requests and see what's up Quote Link to comment https://forums.phpfreaks.com/topic/181537-im-making-a-new-site/ Share on other sites More sharing options...
Gayner Posted November 14, 2009 Author Share Posted November 14, 2009 going to be a prayre site.. like pray4 me dot com or whatever, i'll find a name.. but going to have people post pray requests and see what's up I just need some type of flood control code, i dont want people to type in captcha.. but i also want them toonly beaable to post the upload submit button once every other 30seconds for each user session., Quote Link to comment https://forums.phpfreaks.com/topic/181537-im-making-a-new-site/#findComment-957589 Share on other sites More sharing options...
nrg_alpha Posted November 14, 2009 Share Posted November 14, 2009 I'm confused. Are you asking people to build components of your site for you? If so, we have a freelance section for that. Otherwise, instead of asking for code, perhaps googling what you seek, and/or asking members to 'guide' you in the correct direction (such as what to take into consideration, what to research, etc..) But as it stands, it sounds like you're just holding your hands out and expecting code to be dropped into them (metaphorically speaking of course). Quote Link to comment https://forums.phpfreaks.com/topic/181537-im-making-a-new-site/#findComment-957628 Share on other sites More sharing options...
xcoderx Posted November 15, 2009 Share Posted November 15, 2009 set time limit for next post if if that is what u mean by flood Quote Link to comment https://forums.phpfreaks.com/topic/181537-im-making-a-new-site/#findComment-957856 Share on other sites More sharing options...
xcoderx Posted November 15, 2009 Share Posted November 15, 2009 <?php $last_time = $_COOKIE['last_hit_time']; $now = time(); $wait = 5; if(empty($last_time)) { setcookie('last_hit_time', $now); } else { if(($last_time + $wait) < $now) { die(); } else { setcookie('last_hit_time', $now); } } ?> found this somewhere on the net may help u Quote Link to comment https://forums.phpfreaks.com/topic/181537-im-making-a-new-site/#findComment-957861 Share on other sites More sharing options...
xcoderx Posted November 15, 2009 Share Posted November 15, 2009 another resource whichever u r lookin for http://www.aspektas.com/blog/flood-control-in-php/ Quote Link to comment https://forums.phpfreaks.com/topic/181537-im-making-a-new-site/#findComment-957863 Share on other sites More sharing options...
Gayner Posted November 15, 2009 Author Share Posted November 15, 2009 if (!isset($_SESSION)) { session_start(); } // anti flood protection if($_SESSION['last_session_request'] > time() - 30){ // users will be redirected to this page if it makes requests faster than 2 seconds header("location: /flood.html"); exit; } $_SESSION['last_session_request'] = time(); this is best 1 Quote Link to comment https://forums.phpfreaks.com/topic/181537-im-making-a-new-site/#findComment-957865 Share on other sites More sharing options...
mikesta707 Posted November 15, 2009 Share Posted November 15, 2009 cool story? Quote Link to comment https://forums.phpfreaks.com/topic/181537-im-making-a-new-site/#findComment-958077 Share on other sites More sharing options...
KevinM1 Posted November 15, 2009 Share Posted November 15, 2009 cool story? This just made me lol. Good show. Quote Link to comment https://forums.phpfreaks.com/topic/181537-im-making-a-new-site/#findComment-958083 Share on other sites More sharing options...
waynew Posted November 15, 2009 Share Posted November 15, 2009 Riveting tale chap. Quote Link to comment https://forums.phpfreaks.com/topic/181537-im-making-a-new-site/#findComment-958100 Share on other sites More sharing options...
Gayner Posted November 16, 2009 Author Share Posted November 16, 2009 Riveting tale chap. That's what she said. Quote Link to comment https://forums.phpfreaks.com/topic/181537-im-making-a-new-site/#findComment-958223 Share on other sites More sharing options...
Adam Posted November 17, 2009 Share Posted November 17, 2009 Haha, oh dear. Quote Link to comment https://forums.phpfreaks.com/topic/181537-im-making-a-new-site/#findComment-959109 Share on other sites More sharing options...
waynew Posted November 18, 2009 Share Posted November 18, 2009 Riveting tale chap. That's what she said. Yes Gayner; I'm sure she did. Quote Link to comment https://forums.phpfreaks.com/topic/181537-im-making-a-new-site/#findComment-959918 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.