Forum Moderators: phranque

Message Too Old, No Replies

Mirroring a Dynamic Website

How might one do that?

         

MatthewHSE

11:57 am on Sep 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



From Msg. 15 here [webmasterworld.com]:

If there is NO way for you to exclude your own visits from the log, think about mirroring your site on a seperate hostname only known to you. You use this hostname to visit your site - all the others use the primary hostname.

This is something I've been interested in doing for a long while. I might be able to handle it if my site was static HTML pages; however, it's a dynamic site driven by CGI scripts and a MySQL database. Is there any way I can set up a mirrored site that will be identical, that I can participate in, etc., but won't add my visits to the primary hostname log?

restricted access

1:35 pm on Sep 23, 2004 (gmt 0)

10+ Year Member



Why can't you just filter out your IP address from the site stats, most real log programs let you do that quite easily.

If your hoster doesn't support programs like this maybe it's time to move on to a real hoster.

MatthewHSE

1:52 pm on Sep 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



My IP address changes from time to time, but not often. I guess I could give that a try. Thanks!

(Just need to see if I have a "real hoster" or not . . . I did the last time I checked! ;) )

restricted access

2:09 pm on Sep 23, 2004 (gmt 0)

10+ Year Member



All you have to do is check your IP address, most forum software lets you check you IP address if you are the admin, then all you have to do is add that IP to the filtered list, that's how I do it.

Cable broadband tends to be more static IP wise than DSL, but if you are using a router, basically every time your DSL fails, you get a new IP. If you aren't using a router, every time you connect to DSL you get a new IP.

tomda

2:51 pm on Sep 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If your IP change, why not checking your username as I did

if (username=ME) {
//THEN DO NOTHING
} else {
// THEN WRITE YOUR STAT/LOG INCLUDE FILE }

This way you are sure that your visit are ignored.

MatthewHSE

3:07 pm on Sep 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sounds interesting Tomda. How would I go about doing something like that? In other words, how would the scripting be done, how would my username be known, etc.? Or, what search terms would I even use to try to learn how to do a process like that?

Thanks,

Matthew

tomda

5:41 am on Sep 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Matthew,

Sorry, I thouhgh your page where PHP driven. Also, because you are saying "participate in", I though you had already a membership system installed (register, login, etc.)

Sorry but I can not help you with a CGI driven website. If you use or know a bit of PHP (or ASP), then it should not be a problem to implement this (write an include file and place it at the top of every page of your website).

Need to correct some typo errors above, you should read:
if ($username=="ME") {
//THEN DO NOTHING
} else {
// THEN WRITE YOUR STAT/LOG INCLUDE FILE }

MatthewHSE

11:45 am on Sep 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I see. I had thought this might be done via .htaccess or something. (Can it be done that way?) I'm using third-party .cgi scripts and can't really add anything to them, so it looks like server-side scripting won't be an option for me.

Does anyone have any other ideas?

Thanks,

Matthew