desithugg Posted July 28, 2006 Share Posted July 28, 2006 umm i want to ban a user from my website but he has some program to change his ip i want to sue some other information to ban him i tried$_SERVER['HTTP_USER_AGENT']; but im not sure if its different for everycomp.and plus he can just change browsers.is there any predefined variable i can use to ban him which is different for everycomp. Quote Link to comment https://forums.phpfreaks.com/topic/15930-banning/ Share on other sites More sharing options...
Ninjakreborn Posted July 28, 2006 Share Posted July 28, 2006 if it's the right type of site you can just initiate a password protection policy. Give the password to who you trust, or allow them to sign up, in order for him to get into your site, he has to put in a lot of information, just keep deleting his username, because you will know if he's putting in bullshit. Make it a free registry, adn quick login, you don't even have to be that secure, just throw in a few sessions, without even worrying about it, then you can refine stuff in a few weeks if it turns out. Quote Link to comment https://forums.phpfreaks.com/topic/15930-banning/#findComment-65440 Share on other sites More sharing options...
desithugg Posted July 28, 2006 Author Share Posted July 28, 2006 o.o i already have a login/signup system.He keeps signing up and posing stupid stuff.And its been going on for about a week.He must've changed his ip atleast 20 times now Quote Link to comment https://forums.phpfreaks.com/topic/15930-banning/#findComment-65443 Share on other sites More sharing options...
Caesar Posted July 28, 2006 Share Posted July 28, 2006 Is this a forum-based website? You should first approve users before they can post. Quote Link to comment https://forums.phpfreaks.com/topic/15930-banning/#findComment-65453 Share on other sites More sharing options...
Ninjakreborn Posted July 28, 2006 Share Posted July 28, 2006 yes like manually approve them through an admin, if your having that kind of issue.or better yet, get a friend to manually moniter posts, and have to manually approve all of them daily, get like 3 people with username's and passwords into an admin page, and get them too proofread them daily, whoever get's a chance can just empty them, with 3-4 people checking them, regularly it shouldn't delay the postings for very long. Quote Link to comment https://forums.phpfreaks.com/topic/15930-banning/#findComment-65454 Share on other sites More sharing options...
Ninjakreborn Posted July 28, 2006 Share Posted July 28, 2006 actually you probably can I probably have a theory.If you can find out his ip, wait until you have his ip, log the post's via ip. Ok follow me here1. Log all posts via ip, and database them with teh posting id.When you find out you know is him, look up the id, and find out the ip. Set up a script on the login page DON"T BAN HIM, just set up a script on the login page. Put down[code]<?php//check for ip, I don't know how to do that part yet.if (ip = whatever) { // however you check for an ip address$_SESSION['fuckyou'] = false;if ($_SESSION['fuckyou'] = false) {echo "Go to hell your not going to keep posting this bullshit, dumb ass fagget";}?>[/code]Alright now, do this everytime you see a new post, with a new ip, take that ip, and ADD it to an array of ip's, check those ip's each imte, no 2 people can have the same ip, so he will go through a lot of ip changes, and it won't matter, because it'll keep happening, eventually he'll get the point. Quote Link to comment https://forums.phpfreaks.com/topic/15930-banning/#findComment-65455 Share on other sites More sharing options...
Ninjakreborn Posted July 28, 2006 Share Posted July 28, 2006 oh you'll have to redirect him to something that shows him what he islike a certain midget site, that people shouldn't go to, just pop it in the url, and he will be redirected to another page using header, he won't be too ahppy, or find a site you KNOW has a virus, and redirect him to that site, and he will automatically get a virus on his computer.using header, you can redirect them Quote Link to comment https://forums.phpfreaks.com/topic/15930-banning/#findComment-65456 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.