Jump to content

Recommended Posts

Here's the situation. I run a small internal website that I have coded from scratch for my company. Right now it is IP based and stores automatically get logged in. HOWEVER, some stores don't have a static IP and it changes seemingly everyday. This site contact links that auto log the user into some pretty sensitive sites. I was curious if there is a method of storing a file on each stores computer that a script will read and validate based on that.

 

Any help will be greatly appreciated! Thanks in advance!

 

--Brian

Link to comment
https://forums.phpfreaks.com/topic/95591-logging-in-users-via-certificate/
Share on other sites

being as PHP is server-side i cant see that being possible.

 

However you could look at using hosts instead of IP?

 

$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);

 

you could strip it down to local exchange but then you still have possibility of someone getting in who shouldn't. how sencitive is the data?

 

Regards

Liam

I dont know sensitive was the right word. The links redirect the user (and auto logins) to an activation site for a wireless carrier. We like this option b/c users dont know the passwords. Is there perphaps a ceritificate of some kind that I can have php look at before loading? Or perhaps use javascript to get contents of file? I am at a loss ... because everything as of right now is wrapped around the store's ip. Thanks in advance.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.