Is there a fast way, with Classic ASP, to determine if a user agent is a search engine
spider?
I know that ASP.NET has Request.Browser.Crawler, I'm looking to see if classic ASP has
something built in, or do I have to look for strings in the user agent.
How do I get the User-Agent?I searched but didn't find anything. The reason I am asking is because I have a php script which accesses an ASP script via PHP:cURL for legacy reasons. I want it so that if the User-Agent matches what the php script sends, the asp should take a slightly different action.
I was just wondering: is it possible to put something in ASP code that would be able to tell the difference when my site gets visited by a live user or a bot?
My website is setup to email me every time there's a visit, but it notifies me when it is visited by web crawlers as well, which I don't care about, I only want to know about real people. How do I teach my script to tell the difference? Any suggestions?
I am trying to change the useragent in asp.I come in to that page using a user agent : something i want to change it to somethinganything..can it be done using asp.
Then, on subsequent pages, I'm checking for the cookie, and redirecting if it's not there:
<%@ Language=VBScript %> <% If NOT request.cookies("user") = "authenticated" Then response.redirect "http://somepage" End If %>
What I need to do is incorporate an ignore element (by user-agent or IP) into where it checks for the cookie. For instance, if a user has an IP of 127.0.0.1, it ignores whether they have the cookie or not and lets them view the page.
The reason I'm doing this is I have a search engine that's crawling the site and it doesn't always go through the front page - therefore, it's getting redirected on most of the pages it sees. So what I'd like to do is have the script see that user-agent or IP, then ignore the cookie requirement.
I wrote a web site in csharp and I'm using forms authentication for some of the pages in the root folder. The site is fully accessible from the web no problem, but when I request crawler Yahoo to index the site, it returns a '500 server internal error', and then Yahoo can't not index this web site at all.
Have anyone there experinced that already? I spoke to the ISP and they know nothing about it.
I wrote a web site in c# and I'm using forms authentication for some of the pages in the root folder. The site is fully accessible from the web no problem, but when I request crawler Yahoo to index the site, it returns a '500 server internal error', and then Yahoo can't not index this web site at all. Have anyone there experinced that already? I spoke to the ISP and they know nothing about it.
i keep getting locked up, ctrl/alt/delete and a window opens up and say's web back agent not responding. is there a way to overcome this problem. it happens no matter what program i'm working with.
I need to develop a web-based NetworkManagement Software on windows platform(planning to use ASP,HTML ). The Networking devices provide support for SNMP. Is there a way i can construct the SNMP PDUs from my ASP pages and get response from the SNMP Agent ? Can anyone suggest what would be the best approach for the WebNMS to talk to the SNMP Agent
I've developed a html page that uses the Microsoft Agent object with default character. When I try to view the page, the animation works properly,the baloon appears with the text,but the character does not speak. It happens with the Spanish language, but when I change the language ID, it seems to work without problems.My OS is 2000 in spanish as well as the IE6.0.IIS5.
Robby.LanguageID = &H0409 ' Works OK Robby.LanguageID = &H0C0A ' Does not work
Does anyone know of an ASP-based search engine that uses a crawler/spider? Preferably, I'd like one that uses markup tags so that I can, for example, exclude blocks of text from being indexed, such as the header or navigation borders.
here is some background on the page I made. It's a calendar page with events listed. No database, just used id="" to display certain months depending on the option chosen from the jump down menu.
The question I have is this: I would like to display the current month's events when they land on the page. I used
<% id=request.querystring("id") %>
and created an <%elseif id="1" then%> and so on for each month. Is there a way can request the month and display that id? Thanks for you help. I have the code for the page if need be
Is there a way to determine the actual width and height of a image file ? I'm using aspsmartupload to upload the image, how can determine and save the width and height value ? seems that aspsmartupload doesn't have this property. If so, is there any method to determine it in asp in the simpliest way? I will prefer to maintain the aspsmartupload method.
I have many servers which will be reghosted everyday with different OS (Win2000, Win2003, WinXP...). How could I write the ASP code to get the information of other servers' OS?
Let say the asp page is hosted on Server A, how can I check the OS version of Server B and Server C?
Somewhere in my program I ask users to provide their website URL. I would like to determine if the given website exists or not.How can I determine a website with given URL exists?
I am creating an ASP page for members of my team to add and delete records from specified tables. This table is choose by the user and I am dynamically creating text boxes. I also wish to include the type of the attribute to assist the user.
<% for s_intCounter=0 to objRs.Fields.Count -1 %><tr> <td width="34%"><% objRs.Fields.Item(s_intCounter) %>: <input type="text" id = <% objRs.Fields.Item(s_intCounter) %> > </td>
<td width="66%">Type: <% INSERT ASP FOR RETRIVING TYPE</td> </tr> <%next%>
I want to use asp to assign a css class to <td> tag. I was thinking an If statement, but i've not come across trying to assign a class to a table cell before! I want the cell background to be highlighted red determined by a database table with - yes or null. (null remains white, yes - red) At the moment it simple like this: Code:
My web hosting account lets me use ASP and so I thought I'd try to learn and use some. There is only one thing that I would like to know, and that is how to find out what version of ASP is running. Preferably, what I am looking for is something similar to the PHP php_info() function. Is there anything like this for ASP?
I have an ASP/ADO application querying an SQL Server DB. I want know the most efficient way to determine if more than one row is returned from a query. If more than one row is returned, the user will be presented with a choice of which row to process. If only one row is returned, I want to skip this stage, and process that single row immediately.
I can think of a number of ways of acheiving this (eg. .recordcount) but I'm looking for the slickest and most efficient method.
This may be a trivial question, but I was wondering how can you determine if a value contains an Integer or Float. I know there is a function called IsNumeric, however you can't determine what type it is.
I built a simple scheduling application using an access db.
The relevent fields are eventRoom, startDate, startTime and endTime.
When I go to add a new event, what method can I use to make sure the eventRoom is available for the selected date and time slot? Id like to just display an alert with the conflicting times and suggest the next available startTime.
I need to figure out if this file is over a day (or however many hours) and if it is, i need to delete it. If its not i redirect the user to it Code:
If (fs.FileExists(workFile))=true Then set f=fs.GetFile(workFile) If (f.DateLastModified > Date-1) Response.Redirect "/" & tFileName & "/" & reqString & ".html" Else f.Delete End If set f=nothing End If
obviosuly the date-1 is wrong, i can't fid the appropriate syntax to save my life.
Just wondering if anyone knows how to determine someones connection speed in asp the reason for this being so i can redirect the user to a different media file depending on their connection speed.
I have a recordset with two three fields. One is an autonumber field called ID , one is a text field called Name and the last is a date/time field called DateEntered. How can I programatically determine the autonumber field ? Code:
is there anyone here who can help me to determine google's pagerank with asp code. Just like pagerank tools are doing, where do they request data from, how do they get it, etc..
First I would question why you want to do this. If they get to the page by any means it should respond appropriately, whether refresh or by link. This is a stateless environment after all.
That being said...
I would take the approach of setting a session variable that gets set the first time they hit the page:
<% if session("NotTheFirstTime") = "" then 'write the onload session("NotTheFirstTime") = true end if %>
then based on that variable write or don't write the onload.
Of course, if the user can access the page from multiple links and the onload is valid for each link, regardless of how many times they hit the page, this won't work....