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?
| SitePoint Sponsor |

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?


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.
17-29% of paid ad clicks are fraudulent. Get protected with Improvely, your online marketing dashboard.
→ Conversion tracking, click fraud detection, A/B testing and more.

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.


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.
17-29% of paid ad clicks are fraudulent. Get protected with Improvely, your online marketing dashboard.
→ Conversion tracking, click fraud detection, A/B testing and more.
Bookmarks