Get the IP of your Visitor

akala ko mahirap tong ganito.. dali lang pala..

ganito o..
string ipNgBisita = Request.ServerVariables["HTTP_X_FORWARDED_FOR"];  <– eto bale kung naka daan sya sa parang proxy
        if (ipNgBisita== null)
            ipNgBisita= Request.ServerVariables["REMOTE_ADDR"]; <– eto kukuha ng IP nung nagvisit sa site mo
ang tanong.. aanhin mo naman to?
may mga site na nagpapalit ng wika depende sa bisita diba? yun!
Download ka ng csv ng mga bansa at IP nila tapos hanapin mo dun. O kaya… try mo to
didisplay nyan IP mo pag nagvisit ka sa kanya.
This entry was posted in Uncategorized. Bookmark the permalink.

3 Responses to Get the IP of your Visitor

  1. Hello There. I found your blog using msn. This is a really well written article.

    I will make sure to bookmark it and come back to read more of
    your useful information. Thanks for the post. I will certainly return.

  2. type of says:

    There’s certainly a lot to know about this topic. I really like all of the points you have made.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s