SitePoint Sponsor

User Tag List

Results 1 to 16 of 16

Thread: Urgent Help regarding security

  1. #1
    SitePoint Evangelist Tapan's Avatar
    Join Date
    May 2005
    Location
    India
    Posts
    515
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Urgent Help regarding security

    Hi,

    I am using php/mysql.

    I need to find a way to make sure that the user is accessing the site from the pc from which they registered. How do i achieve this ?

    Thanks.

  2. #2
    SitePoint Enthusiast
    Join Date
    Jun 2008
    Location
    South Florida
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How do you want to track the PC? By IP address?

  3. #3
    SitePoint Evangelist Tapan's Avatar
    Join Date
    May 2005
    Location
    India
    Posts
    515
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by EJohnson72 View Post
    How do you want to track the PC? By IP address?
    No! IP gets changed etc. for some users (as their isp does not provides static IP's) so this option is No!

    I need some full proof way like detecting hardware or something like that or get MAC address of the lan card etc. ? But the thing is how to get the MAC address using php ?

    Thanks.

  4. #4
    ¬.¬ shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    8,990
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    The simple method of doing this. Forget it, not possible with PHP at all.
    In any case such a limitation would annoy users more then anything.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  5. #5
    SitePoint Guru
    Join Date
    Jul 2005
    Location
    Orlando
    Posts
    634
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Tapan View Post
    No! IP gets changed etc. for some users (as their isp does not provides static IP's) so this option is No!

    I need some full proof way like detecting hardware or something like that or get MAC address of the lan card etc. ? But the thing is how to get the MAC address using php ?

    Thanks.
    Hoo boy. This is what happens when people start doing web programming without understanding how the web works.

  6. #6
    SitePoint Addict
    Join Date
    Dec 2007
    Posts
    348
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Tapan View Post
    But the thing is how to get the MAC address using php
    the short answer is you can't..

  7. #7
    secure webapps for all Aleksejs's Avatar
    Join Date
    Apr 2008
    Location
    Riga, Latvia
    Posts
    755
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And besides... MAC address can be changed (sometimes even easier) just as IP address.

  8. #8
    SitePoint Zealot shoorace's Avatar
    Join Date
    Jun 2005
    Location
    Florida
    Posts
    142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, drop the idea of tracking such matters.
    Cookie is only the way by which server can access the client pc.
    But, cookie will also not helpful for your requirement.

  9. #9
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,109
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    This would be possible ( but not easy ) if you were on a private network, however, trying to do this over the internet is impossible I'm afraid without some sort of client side application.

  10. #10
    SitePoint Evangelist Tapan's Avatar
    Join Date
    May 2005
    Location
    India
    Posts
    515
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Arrow

    Quote Originally Posted by SilverBulletUK View Post
    This would be possible ( but not easy ) if you were on a private network, however, trying to do this over the internet is impossible I'm afraid without some sort of client side application.
    Hi,

    I can use a client side application but please suggest the method to use it. I mean how can i use client side application in conjunction with php in order to restrict access ?

    Thakns.

  11. #11
    reads the ********* Crier silver trophybronze trophy SitePoint Award Recipient longneck's Avatar
    Join Date
    Feb 2004
    Location
    Tampa, FL (US)
    Posts
    9,854
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    even a client application won't guarantee that the use is using the same PC they registered with. any software can be fooled to think it's on a particular piece of hardware.

    what is the purpose of this requirement?
    Check out our new Industry News forum!
    Keep up-to-date with the latest SP news in the Community Crier

    I edit the SitePoint Podcast

  12. #12
    SitePoint Evangelist Tapan's Avatar
    Join Date
    May 2005
    Location
    India
    Posts
    515
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    The purpose is that user should be on same system from which they registered. If its another pc they have to register a new account. Its kinda complicated. I already knew that it was'nt possible but I thought that I should double check just in case if its possible, you never know!

    Thanks.

  13. #13
    ¬.¬ shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    8,990
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    But why is the world would you do such a thing?
    There is no security enhancement doing that.
    It will only annoy your users.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  14. #14
    SitePoint Evangelist Tapan's Avatar
    Join Date
    May 2005
    Location
    India
    Posts
    515
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by logic_earth View Post
    But why is the world would you do such a thing?
    There is no security enhancement doing that.
    It will only annoy your users.
    This is not about user. Users will be taught to work in that type of enviornment. Its for security. You cannot tell a bank that they should not put a big vault coz the robber will get annoyed.

    Hope you get my point. Its not about the user coz very few people will access the site (its kinda private) so the level of security must be maintained.

    Thanks

  15. #15
    ¬.¬ shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    8,990
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Use a strong authentication system then with strong passwords. The point of having a web application or anything on the web is so it can be accessed anywhere from any computer that is on the same network. This same principle applies to the internet and the intranet of applications.

    Restricting to a single computer reduces te usefulness of a web application without offering anything in return. There security you think you would get is debatable. With the right knowledge and tools it can be broken.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  16. #16
    SitePoint Evangelist Tapan's Avatar
    Join Date
    May 2005
    Location
    India
    Posts
    515
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    Yes i know but my client does'nt knows anything about all the techie talk and is just keeps on saying that they should not be able to access. Anyways thanks for all the help. Now atleast i am 100% sure that its not doable and no one else would be able to offer so I am in safe zone!

    Thanks.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •