Computing.Net > Forums > Web Development > Tracing Viewers

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Tracing Viewers

Reply to Message Icon

Name: Ruisu
Date: May 22, 2009 at 01:29:02 Pacific
OS: Windows XP Pro -32
CPU/Ram: 4400GHz, 6GB
Product: Gigabyte / Nvdaacpi
Subcategory: General
Comment:

Hey,
This is defiantly going to sound wacko.
I'm going to make my server also available
from the internet.
I know about the dangers that this creates
yes, but i'm going to do it anyways. It is going
to act as more of a website than what was
originally intended. This will allow me to
access all of my other scripts remotely as
well. This makes everything much simpler,
although of course i'm going to have to change
the way my passwords are stored :P

As this is now also going to be a website, that
several of my friends will probably use (I have
taught them a lot about batch and other
languages, files will be a lot easier to share
and send once i've set up the web server.
(None of this is the problem by the way, i just
want to confirm my unusual idea)

I also know that there are many sites that offer
a service to do this but I want to keep this as
internal as possible.

Has anyone got a script that will (Without
some kind of counter) print a log of all the ip
addresses that access what pages on my site
so that I can keep a closer, yet further, eye on
what my friends do?

I know that I am probably not in the best
position to be teaching anyone anything, but I
was asked, and of course i'm always willing to
help those in need :D

I don't mind what languages it uses but MySQL is so darn confusing that I would prefer it didn't use a database.

Thanks ahead,
Atoru.



Sponsored Link
Ads by Google

Response Number 1
Name: shutat
Date: May 28, 2009 at 05:56:17 Pacific
Reply:

What you could do is have a main page with masked links to your content, and when you process the masked link, create a log with whatever data you need stored.

As a basic example,

<a href="mysite/mainpage?req=file1">file 1</a>
<a href="mysite/mainpage?req=page1">page 1</a>

When the handler receives the request, server up whatever you need using a header(...)


<?php
$req = $_GET["req"];
if($req === "file1") {
// log user info
header("Content-type:
application/x-unknown");

header("Content-Disposition:
attachment;filename=' . $file1);

} else if($req === "page 1") {
// log user info

header("location: " . $page1);
}
?>

Something like that *may* suffice. I'm not that familiar with them, but another approach might be htaccess files.
here's a tutorial for them.

HTH

uggg... I can't stand this "code" formatting here.


0

Response Number 2
Name: Ruisu
Date: June 2, 2009 at 23:13:52 Pacific
Reply:

Thanks shutat.
Sorry about my once again delayed reply.
One of my friends had to go into hospital and I havent had a chance to get on, he is a little sore, but better now.
Your responce seems to be somewhat along the lines of what im after. But you'll have to wait for me to read that tutorial you gave me.
Thanks a heap,
Ill get back to you.
And sorry about not responding to your PM also.
Sorry, im still kind of worried about this friend of mine...

Thanks again shutat, for your vast knowledge of web development :)


0

Response Number 3
Name: shutat
Date: June 7, 2009 at 03:53:14 Pacific
Reply:

Best wishes to your friend. :)


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Tracing Viewers

How to execute a program from site www.computing.net/answers/webdevel/how-to-execute-a-program-from-site/3103.html

scanned images www.computing.net/answers/webdevel/scanned-images/955.html

Webhosting With ICS www.computing.net/answers/webdevel/webhosting-with-ics/1742.html