Re: Visitor Counter Filter

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"Samuel Shulman" <samuel.shulman@xxxxxxxxxxxx> wrote in message
news:uQwO8DWEHHA.4256@xxxxxxxxxxxxxxxxxxxxxxx
Hi

I want to count the number of visitors to the website but exclude the
visits by the office staff

I currently use the SessionBegin event to count but how can I avoid the
office staff to be counted


Thank you,
Samuel


As a total amateur of web development, I welcome learning a better way, but
here's my homespun method:

public string determineRunLoc()
{

// .............................. write hit record
................................

// get user ip address:
HttpContext cx = HttpContext.Current;
string requestorIPaddress = this.Context.Request.UserHostAddress;
string firstPart = requestorIPaddress.Substring(0, 8);

// exclude me locally or anybody at my ISP:
if ((requestorIPaddress != "127.0.0.1") && (firstPart != "71.26.94"))
{
runLoc = "internet";

// insert a hitfile record:
hitFile newHit = new hitFile();
string msgBack = newHit.insertHitRecord(this.Page.ToString(),
requestorIPaddress);
}
else
{
runLoc = "local";
}
//
................................................................................

return runLoc;
}





.



Relevant Pages

  • Re: Tying check boxes to data
    ... Specifically I want to exclude the column of data that the check box ... Start out by writing a function that builds the string ... When I check one of the check boxes I ... For the first one it will either blank out the entire graph or allow the ...
    (microsoft.public.access.modulesdaovba)
  • Re: A string & a list
    ... You should exclude those elements from the string: ... The array @- is an internal one, storing the offsets of the substrings found by the last regex pattern match. ... The push of the results of the recursive call is qualified by a call to grepto make sure the new value isn't already in the list. ...
    (perl.beginners)
  • Re: Wondering first caracter for each word in the field
    ... What if we need to exclude some word from showing thir first letter through ... From "Ministry of Foreign Affairs" to retreive "MFA" excluding word ... > Public Function Initialize(strIn As String) As String ...
    (microsoft.public.access.formscoding)
  • Re: Integers behaving like strings
    ... Date/Time data type in the table OR it's a text field that looks like a date? ... so I need to exclude records that might have been ... month field, [cbxMonth], is a combo box with column 1 being MonthID as ... an integer and column 2 being the month name as a string. ...
    (microsoft.public.access.queries)
  • Re: An already compressed file encoding question
    ... >(Computations courtesy of the Emacs calculator.) ... >> If we call the taken data block, the input group. ... >> possible to exclude certain impossible combinations from the input ... Let's take a sample string with length L from a file with a near ...
    (sci.crypt)