The User class
The User class is designed to extract and manage user-related network information from a browser cookie. It provides methods to access this data and control user flow, such as blocking suspicious users or redirecting them to another page.
You can use this class anywhere inside any PHP code in our cPanel Hosting.
How to use it?
Public Methods:
Sends a 403 Forbidden HTTP status and stops the script.
Redirects the client to the provided URL using the Location header.
Returns all user data (IP, domain, country, timezone, ASN, ASN name, ISP, proxy status, DNS).
Returns the user's IP address.
Returns the domain the user accessed.
Returns the user's country code.
Returns the user's timezone.
Returns the Autonomous System Number (ASN).
Returns the name of the ASN (usually the ISP or organization).
Returns the name of the user's Internet Service Provider.
Returns proxy/VPN status (e.g., yes or no).
Returns the user's DNS server IP.


