Detecting A Specific Client Computer

We have a company intranet based on ASP (Win2k, IIS 5.0, SQLServer 7.0). For security purpose, my boss wants to block some employees from logging in to our intranet except for from our factory. Our factory has a SBC DSL (one dynamic IP and it's shared). I know how to get the client pc's IP address. But as the IP address is dynamic, I cannot depend on it.

Is there a way that I can detect the user is accessing from our factory (like router's MAC address)? One way I brought up is making a page to record the client computer's ip and making one of our factory's computers automatically call the page. But this scheme is incomplete as you know.

View Replies


ADVERTISEMENT

Session Cookies - Detecting Specific User-agent/IP?

I'm new to using session cookies and need just a bit of help. On the introduction page to my project, I'm setting:

<%@ Language=VBScript %>
<%
response.cookies("user")="authenticated"
%>

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.

Is that possible?

View Replies View Related

Parse An Xml On The Client Side Computer

I have only been doing ASP for 2 days now so I am learning as I go. I am trying to paser through a xml document that is on the clients computer.

I am using the XMLDOM object. The problem is that the path that I supply using <input type="file" name="mFile"> is always looking to the server's hard drive instead of the clients computer. How do I make the XMLDOm object load the xml file from the clients computer. Code:

View Replies View Related

Problem In Detecting Whether The Cookie Is Enabled/disabled At Client Browser

I am writing an application in ASP which needs to decide at server side while the ASP code is executing whether the cookie is enabled/disabled at the client browser or not.

I do got the code which runs accurately when the IP Address is given of the server. It does not work when I access the web server(local development server) by it's name.

Please note that the code below sometimes does not work even when the IP Address was given to access the web site.

The code snippet is as under:-

View Replies View Related

Computer Name

I'm building an Intranet for my company and would like to retrieve the computer name of the users PC which they're using to access the Intranet. Is this possible? If so how?

View Replies View Related

Computer Name In ASP

How can I retrieve the computer name of the browser and output it to the
webpage in ASP/VBScript?

View Replies View Related

Get Computer Name

I need to get the computer name of the computer that is accessing my page.I have a web app on an Intranet (server) that is getting the name "INTRANET" if I use the " Wscript.Network " code. If I access this web app, I need the name of my computer, the one accessing the web app, not the name of the Intranet server.

View Replies View Related

Detecting Page Name

how do u detect what the current pagename is (i.e. page.asp). also if the
command is stored in the include will it return the include file name or the
page that the command is included in name?

View Replies View Related

Detecting Flash With ASP

I have a Javascript to detect whether a client's browser has flash installed, but as so many people are putting me off relying on Javascript, could you please let me know if you know how to detect whether a browser has flash installed using ASP.

View Replies View Related

Detecting Macintosh, Etc.

Is there any way to detect a mac using ASP? I am trying to let a mac with no referer into my site, but NOT any other OS that does not come from my site

for instance:

If OS = Mac & http_referer = "" then
do nothing
else
If OS <> Mac & http_referer <> "http://www.mysite.com/" then
response.redirect "http://www.notmysite.com/"
end if

Here's what I have so far:

View Replies View Related

Detecting Email

I have an ASP website which curently sends emails via CDONTS.
Sometimes emails are not getting sent and there is no way to detect
the error.
I would like to be able to log on a database that an email has been
sucsessfully sent or log an arror on a database if the email has
failed. One ways I have thought of is to call a VB.NET DLL which I
have written (I only have .NET not VB6!!). But i ma not sure how to
call a VB.NET DLL from an ASP page.

View Replies View Related

Computer Can't Count

Essentially all I'm trying to do is add numbers together. If there isn't a record then create one with the number 001.

If there is a record add one to the number (Which in most cases will be 001) so the next number should be 002.

My problem is that it gets to 002 and stops. Any ideas why? Code:

View Replies View Related

Detecting Bandwith

Is it possible to measure the time it takes an amount of bytes to reach the server with asp?

View Replies View Related

Can You Grab The Computer Name?

can you grab the computer name via asp?

View Replies View Related

Detecting Bots

How can you detect if it is a bot that's visiting your page, or a real person? Is it in the 'Request' class or what?

I know you can ban bots from crawling your page, but this is not want I want to do, I just want a script that can define if its a real person thats visitng your webpage, or a spider.

View Replies View Related

Detecting A Spider

I've got a page that increments a count when the page is hit. The problem is, I do not want search engine spiders to affect this count. I'd like to wrap the increment code in an if/then statement so that it doesn't get triggered when it sees that the visitor is a spider.How do I sense that spider? Is it with the server.variables("referrer")? Is there a good list anywhere of the names of the major search engine spiders?

View Replies View Related

Database To Another Computer

I use Sql Server.I want to back up a database on server over network to my computer.I do not have Sql server on my computer.It will be kept as a file.
The questions come to my mind:Should I first back up database from Sql server to server which Sql Server resides? or Is there any possibility to back up database from Sql server directly to my computer over network?If it is not, how should I accomplish this? Using Vbscript?First Create "Scheduled tasks" then using ".vbs" file which I will create to automatically send file to my computer over network.

View Replies View Related

Computer Room

we have 7 computers can access our web application.Is there a way I can use their computer names to identify which computer login?I use asp and javascript.

View Replies View Related

Search For A Certain Computer On A LAN

how to search for a certain computer on a LAN? Using its name for example.

View Replies View Related

Detecting Null

At the moment i am checking that all the fields have been filled out, at the moment i am using the following...

if firstname = "" and surname = "" and address1 = "" and town = "" and
county = "" and country = "" and postcode = "" and phone = "" and email11 =
"" and email2 = "" and password1 = "" and password2 = "" then

is there a better more efficient way of doing this?

View Replies View Related

Install Asp In My Computer

how to install asp into my computer and i know that it needs iis server connection.can u tell me how to do that.

View Replies View Related

Detecting ID Of DB Entry

I have a DB with 3 fields.

ID
Name
EMail

If I write an entry into this DB, Name and EMail, the ID is auto increment. How can I detect what ID has been created ? I want a user to submit details to me, they get the ID as a ticket number ?

View Replies View Related

Retrieve Computer Name

how to retrieve the computer name using ASP?

View Replies View Related

Detecting Resolution

I have a page with a pop up window for a 800x600 resolution. But people using a different resolution will not benefit. So is there an asp script to detect what resolution people are using. And by detecting this it will alter the pop up screen size. Get what i mean?

View Replies View Related

Detecting New Mail?

I am planning out the stages for an application at work, the application
needs to detect when a client has emailed 'us' and then trigger a new row
written to a database and email the client back by return.

I can see how most of what our application needs to do can be achieved with
ASP/SQL Server - but the part I am unsure of is the email detection...I
suppose the closest thing to what we are aiming for would be one of those
'helpdesk' apps that many companies have - you email them - you get an
automated confirmation email back by return with a ticket number etc etc -
anyone got any ideas on how I can achieve this?

View Replies View Related

Request Computer Name

Is there a way to request the computer name (ie. Request.ServerVariables ("REMOTE_ADDR"))? I want to be able to pull the computer name and enter it directly into a form, but I'm not sure how to pull the name.

View Replies View Related

Detecting A File Upload

I have a form that also allows an image to be uploaded.

<input type="file" name="Upload">

How can I detect if a file has been uploaded, example

if [upload has been made] then
Do thing A
else
Do thing B
end if

View Replies View Related

Where Are Exactly Cookies Stored In Computer?

Does anyone know where the cookies are stored in the computer. I guess depending on the brower the client uses, they are stored in diff places.

But when i make a search for cookies, i can find few txt files inside the cookie folder with names userid@websitename[1].txt but i cannot see the any cookies with the domain name iam working ....

View Replies View Related

Detecting Blank Fields

I am writing an application which when the code first loads there is a form which all the fields are blank. I then need to test some date fields to check if the end date is before the start date etc. The form fails to work. So I then wrote a test asp page which has a single box I then use an If...

Else statement if it is Blank then do nothing if it has data in the text box then display a message. The form works ok until I input text and then it does not detect any input text in it and therefore does not display the message. This is totally the oppoisite of the original application which does not detect the form is empty. Code:

View Replies View Related

Open The Asp Page On Another Computer

I have a network. Let's say the ASP pages are on computer 1. I try to open the pages from an other computer, let's say computer 2, in the network. How can I realize this?
I tried to make a drive (M:) on computer 2 which referes to the (shared) map on computer 1 where the ASP pages are. The pages are shown, but the asp-code isn't used in the displayed page. Only all the html-content is shown.
Is there any (other) way to show the ASP pages on computer 2?Computer 2 is not connected to the internet, so over the internet is not an option.

View Replies View Related

About Testing On Local Computer

I have been teaching myself ASP for several months now and seem to have a pretty good handle on it. All along, I have been uploading changed files directly to the website and refreshing to test.

However, today I will be at a location with no internet access and would still like to be able to work and test my programming. How do I go about testing ASP pages on my local computer without an internet connection?

For now I am not worried about testing any databases or anything, just layout and design.

If it is useful, I am running Windows XP Home edition and I use Dreamweaver to write the ASP.

View Replies View Related

Detecting Invalid Dates

I'm writing a script to add documents to a database, that can be sorted via date. As the date doesn't necessarily corrospond with the day the document is being added (i.e. it could have been orignally published in 1999) I have created a series of dropdown menus that allow the user to choose day, month and year. However, they could potentially choose, for exmple, 31st of February, which will generate a database error.

How can my code intelligently detect an invalid date before it generates a database error? Every system I can think of is overcomplicated for such a seemingly simple problem.

View Replies View Related

Detecting A Page Is In Frames

I have a program written in ASP. Normally it is all done by using include file etc.The client has asked for the program to be rewritten using frames. This can be done, but I have of course told the client that includes are better than frames and more easily manageable. Despite that advise the client wants to press on .

I have worked out a means by which I can move everything over to frames. How do I detect and ascertain if a page has been opened in a frame; if it has determine the name of the parent frame; and ensure it cannot be opened else where - ie another frame or window without a frame ?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved