Blog | G5 Cyber Security

Website Tracking Without Login

TL;DR

Yes, a website can often tell if you’ve visited before even without logging in, primarily using cookies and sometimes your IP address. This allows them to track basic behaviour like repeat visits.

How Websites Track You Without Login

  1. Cookies: The Main Method
  • Session Cookies vs. Persistent Cookies
  • IP Address (Less Reliable)
  • How to Limit Tracking

    1. Browser Settings: Block Cookies
  • Privacy-Focused Browsers
  • Browser Extensions
  • Incognito/Private Browsing Mode
  • Checking for Cookies

    1. Developer Tools: Most browsers have developer tools to inspect cookies.
      • Example (Chrome): Right-click on a webpage > Inspect > Application tab > Cookies in the left sidebar.

    Code Example: Setting a Cookie (JavaScript)

    document.cookie = "username=John Doe; expires=Thu, 18 Dec 2024 12:00:00 UTC; path=/"

    This sets a cookie named ‘username’ with the value ‘John Doe’, expiring on December 18th, 2024. The ‘path=/’ means it applies to all pages on the website.

    Exit mobile version