Summary
If you provide internet access to guests or the public in Türkiye, Law No. 5651 generally requires you to keep access logs, protect their integrity and provide them on request. A logging system automates all three.
Key takeaways
- Law No. 5651 regulates internet publications and defines duties for different types of providers.
- Businesses offering Wi-Fi to the public are usually treated as mass-use providers.
- The core record is the internal IP allocation log: which device had which IP address, and when.
- Hashing and time-stamping make logs tamper-evident, which matters when they are used as evidence.
What is Law No. 5651?
Law No. 5651 is Türkiye's law on regulating publications on the internet and combating crimes committed through them. It defines the responsibilities of content providers, hosting providers, access providers and mass-use providers (toplu kullanım sağlayıcıları), and is supported by secondary regulations that set out technical obligations.
Who needs 5651 logging?
Businesses that give people access to the internet — hotels, cafés, restaurants, shopping centers, campuses, hospitals, co-working spaces and similar venues — are generally treated as mass-use providers. Such providers are expected to keep records of how their internet connection was used, take measures to prevent misuse and hand over records when an authorised request is made.
Obligations can differ for commercial internet cafés, for companies providing internet only to their own employees and for other cases, so always confirm your situation with a legal advisor.
What needs to be recorded?
| Field | Example | Purpose |
|---|---|---|
| Internal IP address | 10.20.4.37 | Identifies the device on your network |
| MAC address | 3C:22:FB:9A:10:7E | Links the IP address to a specific device |
| Session start and end | 2026-10-06 14:02 → 15:47 | Shows when the address was in use |
| Network / location | Hotel lobby SSID | Identifies where the access happened |
| Authentication reference (if collected) | Verified phone or room number | Links the session to a login, subject to KVKK |
Why integrity and time-stamping matter
Logs are only useful as evidence if you can show they have not been changed. A common approach is to group logs into periodic files, calculate a cryptographic hash of each file and obtain a time-stamp from a trusted time-stamp authority. Any later change to the file then becomes detectable.
How a 5651 logging system works
Your hotspot, router or firewall sends DHCP, RADIUS accounting or session data to a central collector. The collector normalises the records, stores them securely, hashes and time-stamps them on a schedule and archives them for the required period. When an official request arrives, authorised staff search by date, IP or MAC address and export a report — without touching the original files.
A short checklist
Identify every network where you provide internet access. Make sure each one forwards session and IP allocation data to a central system. Protect logs with hashing and time-stamping. Define the retention period and archive policy. Restrict and log access to the logs themselves. Inform users through your captive portal and privacy notice, in line with KVKK.
Frequently asked questions
How long must 5651 logs be kept?
The retention period is set by the applicable regulation and is commonly one year for internal IP allocation logs. Because rules can change, confirm the current requirement for your business with a legal advisor.
Is a router's built-in log enough?
Usually not. Built-in logs are often overwritten, stored without integrity protection and hard to search. A dedicated logging system collects, protects and retains them reliably.
Do we also need user consent under KVKK?
Logging for a legal obligation does not normally rely on consent, but you must inform users about the processing. A captive portal with a clear privacy notice is the usual way to do this.