Showing posts with label ASP. Show all posts
Showing posts with label ASP. Show all posts

Wednesday, September 30, 2009

Setting ASP Buffer Limit on IIS

ASP Buffer Limit has been set to 4MB by default, if your ASP application is pulling more data through HTML response.

Use the following command to get the present limit for command prompt
cscript.exe adsutil.vbs GET w3svc/aspbufferinglimit
Similarly you can use the following command from command prompt to set the limit

cscript.exe adsutil.vbs SET w3svc/aspbufferinglimit LimitSize

Thursday, April 17, 2008

Getting IP address of client browser

Recording IP address of client browser is necessity from security point of view. It helps in filtering unwanted or malicious access from a particular location.

Active Server Pages (Microsoft's ASP) has a built-in object called ServerVariables. This object holds useful information on Environmental Variables of the client browser. One the variable is "REMOTE_ADDR" which holds the IP address of the visitor.

To request the IP address of host machine, use the following code in the ASP page:

Client IP is <%= Request.ServerVariables("REMOTE_ADDR") %>



Subscribe free via email

Enter your email address:

Delivered by FeedBurner

...