...

View Full Version : Automatic IP save + encryption



Temper
12-31-2003, 06:36 PM
I want to be able to IP ban people from my site if they make a fuss, so is it possible for me, when they sign up using a login script, to save their IP along with their username and store it in the database using crypt() ? Are there any tutorials on how to do this?
Thanks
-Mike

firepages
01-01-2004, 07:11 AM
<?
echo $_SERVER['REMOTE_ADDR'] ;
?>


will give the IP address of the user , blocking IP's can have issues in that you can end up blocking a whole heap of users who never did a thing wrong ;)

perhaps set a 'banned' cookie on the offenders computer when they next login and check for that whenever someone logs in.

that wont stop users without cookies of course but perhaps try that before the IP thing , `most` surfers wont realise what happened unless they are technically inclined.

whackaxe
01-01-2004, 01:47 PM
banning by IP isnt a good idea. because alot of people have dynamic IPs someone with the same ISP might get assigned that IP and they wron't understand why they are banned. cookies sounds good,, but the best is to have closed user system so that if the person really wants to annoy you hes going t have to create a new user etc etc.

dniwebdesign
01-02-2004, 10:09 PM
When the user signs up have him enter his e-mail, a username, and full name.
Set it so a user can only have one username per e-mail

Have a term that users are only allowed 1 account or be banned.

Have another term that they have to supply their real name or be banned.

Then if the user annoys you, you can ban his e-mail, and username. The user, if using the same e-mail, won't be able to re-join. If the user uses a different e-mail and still uses his full name you can see and remove him. I do that with a set of my forums and seems to work well.

Socraties
01-02-2004, 11:28 PM
Another possible solution is to have an attitude adjustment set. What I have done is put a colum in my authentication db and if they irritate me or do somethign they aren't supposed to that flag gets checked (Usually automatically). As soon as that column has a value in it no matter where they go on my site they get either never ending browser crashing pop-ups, or annoying messages instead of the content they are looking for, and things like that. There is always an alert box that lets them know they have irritated the god (me) of the site and must send an email of apology and an explanation of their actions for me to remove the flag from the db :).

whackaxe
01-02-2004, 11:41 PM
damn socraties, thats harsh. you know of this trick?

WARNING DO NOT CLICK IF YOU HAVE UNSAVED DOCUMENTS! THIS LINK WILL CRASH YOUR COMPUTER!(windowpe anwyays :p)

here (file://C:\con\con)

Socraties
01-03-2004, 12:15 AM
hahah yes I do. If people annoy me especially when it is about something stupid or not any problem of mine (especially when they are using a browser that I don't support) they deserve what I dish out to them :)

scroots
01-03-2004, 07:00 PM
whackaxe no fair, that link is not opera compatiable.

scroots

marek_mar
01-03-2004, 11:20 PM
WARNING DO NOT CLICK IF YOU HAVE UNSAVED DOCUMENTS! THIS LINK WILL CRASH YOUR COMPUTER!(windowpe anwyays :p)

here (file://C:\con\con) [/B]
It doesn't work. My computer didn't crash. I tryed everything.

Nightfire
01-04-2004, 12:27 AM
Think that only worked in IE5 and below, not sure though

whackaxe
01-04-2004, 05:58 PM
nah, works IE6. tried it. :p

marek_mar
01-06-2004, 06:01 PM
It doesn't. I also have IE6.

whackaxe
01-06-2004, 06:09 PM
it's OS independant then. i'm running win 98. well if you got time to spare have a bash :p

Mhtml
01-06-2004, 06:27 PM
It doesn't work in IE 6 or firebird on win xp pro 2166... I know there used to be another one of those, it caused an inescapable BSOD.

me'
01-06-2004, 06:37 PM
I'm quite a fan of the ol' <input type> (http://diveintomark.org/archives/2003/05/03/the_importance_of_humanreadable_markup). Shame it's fixed now...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum