SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    Jun 2008
    Posts
    192
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    About banning users by PHP

    We all generally ban users on the basis of $REMOTE_ADDR for ip and $HTTP_USER_AGENT for browser. But this block other users having same ip and browser combination. Is there any other variable or function to detect unique identity of a user?

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You can set a cookie, but the user can delete it. Otherwise, no, there is no way to uniquely identify the user on the internet.

  3. #3
    SitePoint Zealot
    Join Date
    Jun 2008
    Posts
    192
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well, I dont know much about cookie thats why im asking you is there any way in coding to block a user the cookie?

    I have heard about apache_headers_request() function which gives some uniquity but it gives huge info which will load database. Thats why I am asking for alternative way.

  4. #4
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    This is how you set a cookie, which you can then access through $_COOKIES.

    http://us2.php.net/setcookie

    However, as I said, the user can just delete the cookie from their browser.

    There is no reliable way to ban someone from a site permanently or without potentially blocking other people.


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
  •