Alright i need some help with getting a script that will help me get users
IP adresses and getting codes so i can have
like ways to ban people i want a Ip ban, a 6 hour ban and a perm ban
and other kind of ban's please help if you can....
Smackie
~To those who disrespect the one they call Smackie you will be bannished from the face of the earth at midnight on the birth of your first child~
getting Users ips
Moderator: General Moderators
- shiznatix
- DevNet Master
- Posts: 2745
- Joined: Tue Dec 28, 2004 5:57 pm
- Location: Tallinn, Estonia
- Contact:
smackie is the gayest name i have ever heard
$HTTP_SERVER_VARS["REMOTE_ADDR"]
get the ip's of the ppl who are visiting ur site, one good way to ban ppl is to make a txt file, chmod it to 777. 1st check the file to see if their ip is located in the ban list. if it does redirect em to a page that laughs at them, if it isnt continue to the site
the txt file could be like this
1.123.543.2, 123.564.78.32,
and u could use explode() to seperate the ips and individually match them up to the ip of the person visiting ur site
do it
$HTTP_SERVER_VARS["REMOTE_ADDR"]
get the ip's of the ppl who are visiting ur site, one good way to ban ppl is to make a txt file, chmod it to 777. 1st check the file to see if their ip is located in the ban list. if it does redirect em to a page that laughs at them, if it isnt continue to the site
the txt file could be like this
1.123.543.2, 123.564.78.32,
and u could use explode() to seperate the ips and individually match them up to the ip of the person visiting ur site
do it
When i put this it only gives me my ip address i need to get other peoples ip address same with
Code: Select all
$_SERVERї'REMOTE_ADDR']Code: Select all
$HTTP_SERVER_VARSї"REMOTE_ADDR"]- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact: