Re: Web-site management + ethics
- From: travel2light <everything2light@xxxxxxxxxxx>
- Date: Tue, 20 Jan 2009 18:25:18 -0800 (PST)
On 20 Jan, 02:42, Jeff <dont_bug...@xxxxxx> wrote:
travel2light wrote:
Hi,
This is my first time here I hope someone can help me with an ethical
dilema I have encounted..
I have recently started studying PHP and MySQL and I have been
developing a script for registering users to website. It is based on a
tutorial project I found here:http://phpsense.com/php/php-login-script.html
(which is really great btw!). So I have been playing with the code and
adding features such as the ability to block users temporarily and
also to block IP addresses. For implementing this I have been using
MySQL. I have got one table called 'ip_log' which is the source of my
concern.. it consists of the following fields:
* ID
* IP_ADDRESS
* LAST_LOGIN
* COUNT
The logic is that everytime the user logs in from a new IP_ADDRESS
than their ID along with the other fields are added to ip_log.
LAST_LOGIN stores the date and time that the user last logged in from
that IP address. If the user has already logged in from this IP
address then COUNT is incremented by 1. If the user has not logged in
from this IP address before, then a new record is inserted and COUNT
is set to 1.
It's not clear to me what the problem is.
As far as ethics, it's your website and you can control access any
way you want. Although I think tracking IP addresses is poorly suited,
particularly since dynamic IPs are widely used on the ISP side. Many if
not most ISPs charge extra for a static IP.
Now, if you are worried about collecting information, take a close
look at your server logs, you can parse a lot more out of that then what
IP they dialed in from.
Jeff
I did not know it was possible to do this. Where can I find the server
logs? I am running Apache with wampserver.
Michael
.
- Follow-Ups:
- Re: Web-site management + ethics
- From: Jeff
- Re: Web-site management + ethics
- References:
- Web-site management + ethics
- From: travel2light
- Re: Web-site management + ethics
- From: Jeff
- Web-site management + ethics
- Prev by Date: Re: Web-site management + ethics
- Next by Date: Re: Web-site management + ethics
- Previous by thread: Re: Web-site management + ethics
- Next by thread: Re: Web-site management + ethics
- Index(es):
Relevant Pages
|