473,395 Members | 1,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Check that input is supplied from a particular PC?

I am working on a timecard app. When somebody logs in, it stamps
his/her time.

Problem is, I have to make sure that somebody is not logging in from a
remote site. I want all the logins from one particular, on site,
system.

The app is part of another system, which is ran online. It's not a
local intranet, or anything.

I am wondering if there is something unique I can create on the on-site
system, which can be checked form the remote system, to insure the
employee logs into *that* system.

Jul 23 '06 #1
3 1618
walterbyrd wrote:
I am working on a timecard app. When somebody logs in, it stamps his/her
time.

Problem is, I have to make sure that somebody is not logging in from a
remote site. I want all the logins from one particular, on site, system.

The app is part of another system, which is ran online. It's not a local
intranet, or anything.

I am wondering if there is something unique I can create on the on-site
system, which can be checked form the remote system, to insure the
employee logs into *that* system.
http://us3.php.net/reserved.variables

Take a look at REMOTE_ADDR and REMOTE_HOST.

HTH,
--
Benjamin D. Esham
bd*****@gmail.com | AIM: bdesham128 | Jabber: same as e-mail
Ceci n'est pas une sig.

Jul 23 '06 #2

Benjamin Esham wrote:
walterbyrd wrote:
I am working on a timecard app. When somebody logs in, it stamps his/her
time.

Problem is, I have to make sure that somebody is not logging in from a
remote site. I want all the logins from one particular, on site, system.

The app is part of another system, which is ran online. It's not a local
intranet, or anything.

I am wondering if there is something unique I can create on the on-site
system, which can be checked form the remote system, to insure the
employee logs into *that* system.

http://us3.php.net/reserved.variables

Take a look at REMOTE_ADDR and REMOTE_HOST.
I don't think that would be helpful for me. I need the server to verify
a particular client. That client is behind a NAT, and the client
address is set by DHCP, also the client IP address is very generic,
i.e. 192.168.1.x.

I need the server to check the client for something unique. Maybe a
machine address, or a special hidden file.

I am sure this can be done. Although maybe not from PHP. There are
companies that have web-time-cards. I think the commercial
web-time-card apps, may be initiated from a app on the client side. The
desktop app then connects to the server.

Aug 7 '06 #3

walterbyrd wrote:
Benjamin Esham wrote:
walterbyrd wrote:
I am working on a timecard app. When somebody logs in, it stamps his/her
time.
>
Problem is, I have to make sure that somebody is not logging in from a
remote site. I want all the logins from one particular, on site, system.
>
The app is part of another system, which is ran online. It's not a local
intranet, or anything.
>
I am wondering if there is something unique I can create on the on-site
system, which can be checked form the remote system, to insure the
employee logs into *that* system.
http://us3.php.net/reserved.variables

Take a look at REMOTE_ADDR and REMOTE_HOST.

I don't think that would be helpful for me. I need the server to verify
a particular client. That client is behind a NAT, and the client
address is set by DHCP, also the client IP address is very generic,
i.e. 192.168.1.x.

I need the server to check the client for something unique. Maybe a
machine address, or a special hidden file.

I am sure this can be done. Although maybe not from PHP. There are
companies that have web-time-cards. I think the commercial
web-time-card apps, may be initiated from a app on the client side. The
desktop app then connects to the server.
If the client is behind NAT, then there is no way from your end to
verify, for certain, what machine it is. The best you can do is put
something on the clients end that they must submit that verifies who
they are.

The best way I can think of this would be to use a secondary program
that generates a certificate that is based on the machine they are
using, and that certificate is then submitted to your application for
verifications.

It has to be generated each time so that it has a new time stamp to
prevent coping of the file. The downside is the user has to do this
each time (though, you may be able to use flash or a java applet to
generate it, depending on how much system information is available to
these apps through the webbrowser).

An easier method would be to give the client a certificate and they
resubmit it each time they do the timecard.

On the server side, only issue 1 certificate. If the client requests a
second certificate, then it requires an administrator to do it. This
prevents them from logging into other computeres and simply
redownloading the cert.

Use flash/java (we'll call it The App) to download a certificate from
the server and save it somewhere they can't find it. When they login
they'll have to use The App so that The App can upload the file and the
server can verify the identity.

Don't use an HTML form to upload the file. Then they know where the
cert is and can easily copy and paste it between computers.

The other option is you go to every machine and generate a certificate
for it and upload it to the server.

There's no foolproof way of identifying a computer, especially if it's
behind a NAT. You can use a big combination of cookies, sessions, user
logins, secret passwords, IP addresses, host names, etc, etc, but
they're all easily spoofed and subject to change. If you really,
really, need to identify the computer, you'll have to make something
clientside so you have access to the data on the machine to generate a
unique ID

Aug 7 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: LRW | last post by:
I have no idea if this is more a PHP question or Javascript question, because my problem hinges equally on both. I have a PHP script that queries a database and creates a list of rows for each...
2
by: Shabam | last post by:
I was told that dotnet generates classes for input tags like this: <span class="hello"><input type= "checkbox"></span> The problem here is, the "input" class is overriding the "hello" class....
3
by: Fao, Sean | last post by:
Hello all, As stated in another message, it's been a long time since I've done any C coding and I'm not feeling comfortable that I'm doing this correctly. Basically, I'd like to verify that my...
9
by: kernelxu | last post by:
hi,everybody. I calling function setbuf() to change the characteristic of standsrd input buffer. some fragment of the progrem is: (DEV-C++2.9.9.2) #include <stdio.h> #include <stdlib.h> int...
4
by: Srikanth | last post by:
Hi Can any one say how to check a hashtable by ignoring the case of key supplied. I want the following requirement It should not allow the user to do the following Hashtable table = new...
3
by: pollygw | last post by:
I have a page that dynamically adds rows to a table and the user can also delete any of the rows in no specific order. When the form is submitted I need to do some validation. I can't loop through...
4
by: sugard | last post by:
I have another problem concerning to check if a particular date belongs in a particular range. For example I need to check whether 16th december lies between 10th December and 20th December. I have...
2
by: deepika1 | last post by:
hi , i wrote a code for to delete the particular rows in a table using check boxes.But in that i select the particular rows and click on the delete button these rows didn't delete.plz check...
82
by: happyse27 | last post by:
Hi All, I modified the user registration script, but not sure how to make it check for each variable in terms of preventing junk registration and invalid characters? Two codes below : a)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.