PDA

View Full Version : IP tracking



wibumba
11-30-2005, 04:51 AM
hey guys, I need to know if there is a way to record the ip address of a person who visits my page. With my security, I have it set to direct anyone to a certain page when detected. I want to be able to get their IP address so I can ban their site account. (their log in)

cr3ative
11-30-2005, 10:41 AM
You can't do this with HTML, but you can with a server-side language. The documentation for PHP, ASP and most other server-side languages explain how to get a user IP.

-cr3

ddadmin
11-30-2005, 10:58 AM
Here's a JavaScript that does close to what you're asking, though for something more robust, a pure PHP (or any server side) script is required: http://www.javascriptkit.com/script/script2/blockip.shtml

Twey
11-30-2005, 05:18 PM
Actually, that script requires SSI. There is no way to obtain the IP address using Javascript.

wibumba
11-30-2005, 09:39 PM
thanks, is there even some lame web service that supplies the PHP code?

ddadmin
12-01-2005, 09:28 AM
Does your server support PHP, even if its a different server than the one you want to display the IP address on? If so, see this tutorial (first page): http://www.javascriptkit.com/javatutors/externalphp.shtml

Twey
12-01-2005, 03:53 PM
Try http://www.openswarm.com/ for free PHP hosting.

mwinter
12-01-2005, 07:42 PM
Try http://www.openswarm.com/ for free PHP hosting.As many people who might try that service won't read the terms and conditions :rolleyes:, I thought I should point out that there are limitations.


Pages will contain banner advertisements. Altering or attempting to remove these banners will lead to account termination.
A site that receives no traffic (either as updates or from visitors) for sixty (60) days will be removed.
Primary content languages are limited to English, French, German, and Italian.
File types are limited, and binary files are limited to 1MB.
There are other legal conditions, and none of them (including those above) are unreasonable. I was interested in the terms, and thought others might benefit from being made aware of the more interesting aspects.

Anyone signing up to a service is binding themselves into a legal agreement, and must read the terms of that contract.

Mike

Twey
12-01-2005, 07:53 PM
Anyone signing up to a service is binding themselves into a legal agreement, and must read the terms of that contract.Don't know about "must," despite the desperate attempts of several honest companies :) "Should," definitely. Permitted file extensions, by the by, are:

js, swf, au, snd, mid, midi, ram, wav, gif, jpg, wrl, vrml, css, html, htm, rtf, png, psd, ico, doc, sqlThis is rather peculiar, since it claims PHP support, but doesn't allow .php files. I daresay that .htm and/or .html files are parsed as PHP.

dead-poetic
12-01-2005, 07:59 PM
you can host with http://xmgfree.com/, they have free php/cpanel/mysql/200 mb of space/2 gb of bandwidth transfer per month.

mwinter
12-01-2005, 08:02 PM
[Reading Ts & Cs] Don't know about "must," despite the desperate attempts of several honest companies :) "Should," definitely.Their choice, of course, but I wouldn't trust a 'free' service as far as I could throw it before reading the contract. :p

I forgot to mention that signing up will automatically mean receiving a newsletter. It can be unsubscribed from, though.

Mike

Twey
12-01-2005, 08:14 PM
Nice.
(adds to top of list of free PHP hosting sites)

peterz
04-13-2006, 04:24 AM
Hi all, I am the Owner of Cafe Networks which operates openswarm.com. I just ran across this forum while checking on a few things for the servers and I am glad I did. I see that our TOS was mentioned here and would like to make a quick comment about it.

We are a rather liberal host and allow most legal activities. We of course have advertising on each page but try to limit it as much as possible with the goal of eliminating it all together one day.

We do offer php hosting and there are no language restrictions. There was a short time when PHP was unavailable because of security reasons but that has been corrected.

Mwinter don't worry about a newsletter. If I am correct, that option is not selected by default. If it is, I will have it changed. We have at most sent out 3 mailings, all of which dealt with server issues such as the aforementioned php problems. Also, most free hosts are run by kiddies from home connections or reseller accounts. Not Cafe Networks. We have been providing hosting related services for nearly a decade and are growing steadily.

Twey, thank you for your recommendation. Please feel free to let me know if you need any additional information.

Cafe Networks (www.cafe-networks.com). A new concept in completely free internet services and tools. www.cafe-networks.com