Phone: 0 (552) 380 25 25  |  Weekdays 10:00–18:00 · Technical support 24/7

🇹🇷 TR

Digital Bridge Blog

Cyber Security & Compliance

Law 5651 Log Retention in Türkiye: What Businesses Offering Guest or Staff Wi-Fi Must Record and Keep

Who does Türkiye's Law 5651 log retention duty cover, what is an internal IP allocation log and how long is it kept? A 7-step plan that also fits KVKK.

10 min read  · Digital Bridge Engineering Team
Law 5651 Log Retention in Türkiye: What Businesses Offering Guest or Staff Wi-Fi Must Record and Keep

Law 5651 log retention is the Turkish requirement for organisations that provide internet access to keep records answering one question: which internal IP address was assigned to which device, and when. They must also prove the records are unaltered. Most hotels, hospitals, schools, cafés and offices offering guest or staff Wi-Fi in Türkiye fall within it.

Why a guest network can make you a regulated provider

A guest SSID in reception, staff phones on the corporate wireless network, an access point for contractors on the factory floor: nobody thinks of this as providing an internet service. Then a prosecutor asks who, at a given date and time, made a connection from your public IP address.

Often the firewall has already overwritten last week's records, or the records show only the public address and nothing about which internal device held which IP. The organisation cannot demonstrate compliance, and innocent staff or guests end up under suspicion.

This guide covers the legal and technical side of keeping those records. Using logs to detect attacks is a different job, explained in our SIEM and log management guide. What follows is a practical framework, not legal advice.

Law 5651 log retention: who keeps what, and for how long

Law No. 5651, Türkiye's law regulating internet publications, sorts online actors by role. A "public use provider" (toplu kullanım sağlayıcı) is anyone who gives people internet access at a particular place for a particular period. The definition does not require a commercial purpose, so in practice it is applied well beyond cafés and hotels: corporate guest and staff networks, hospitals, schools, dormitories and residential complexes.

Article 7 states that all public use providers, commercial or not, must take the measures set by regulation for keeping access records. The law also defines traffic data: the parties' IP addresses, source and destination ports, start and end time of the service, type of service, volume of data transferred and, where available, subscriber identity.

According to the Regulation on Internet Public Use Providers as published in the Official Gazette in 2007, the core technical duty is to record "internal IP allocation logs" electronically. Such a log shows the IP address handed out on the internal network, when its use started and ended, and the MAC address of the device using it. The regulation defines a "commercial" public use provider narrowly: someone offering internet access for a fee in internet lounges and similar places open to the public, essentially internet cafés. These providers must also obtain a permit from the local governor and, using software supplied by the competent authority, record the logs every day together with a value confirming their accuracy, integrity and confidentiality, keeping this data for one year. The authority named in the regulation (the Telecommunications Communication Presidency, TİB) was closed in 2016 and its duties passed to the Information and Communication Technologies Authority (BTK), so follow BTK's current guidance on tools and method.

Regulations can be amended, so confirm your position against the current consolidated text and with local counsel.

RoleTypical exampleRecords to keepPeriod (legal text)
Commercial public use providerInternet café, internet lounge or similar public place offering internet access for a feeInternal IP allocation log plus daily integrity value; also a permit from the local governorOne year under the regulation
Public use provider (outside the commercial definition)Corporate office, factory, hospital, school network; hotels, cafés and shopping centres offering guest Wi-Fi (get legal advice on classification)Internal IP allocation log, stored electronicallyNo figure in the regulation; integrity-protected storage for a defined period is advisable
Access providerInternet service providersTraffic dataLaw: not less than six months, not more than two years
Hosting providerHosting and server rental servicesTraffic data for hosted servicesLaw: not less than one year, not more than two years

What poor or missing logs cost

The first cost is regulatory. Under Article 7, the local governor (mülki amir) may impose a warning, an administrative fine or a suspension of business for up to three days on commercial public use providers that breach their obligations. For a business in this category, three days of closure can easily hurt more than the fine itself.

The second is evidential. Without records, internal devices cannot be told apart and uninvolved people get drawn in; records whose integrity cannot be shown carry weak evidential value.

The third is security. Verizon's 2026 Data Breach Investigations Report found that exploitation of vulnerabilities was the most common initial access vector in breaches, at 31%. With patchy network records, reconstructing which internal device an attacker moved through becomes largely guesswork.

According to the Turkish Data Protection Authority's 2025 Annual Report, 551 complaints filed in 2025 concerned organisations failing to erase, destroy or anonymise personal data.

That figure is the other side of the coin. Logs kept indefinitely "just in case" fix a 5651 problem by creating a data protection problem.

Law 5651 meets KVKK: retention is processing too

KVKK is Türkiye's Personal Data Protection Law (No. 6698), broadly comparable to the GDPR. An internal IP allocation log holds MAC addresses and timestamps, and if your captive portal also collects a phone or room number, each record links directly to a person. In most cases that makes 5651 logs personal data. The legal basis is the statutory obligation itself, but transparency, access control and retention rules still apply.

In practice that means three things. Show a short privacy notice on the guest portal; the difference between a notice and consent is covered in our privacy notice versus explicit consent article. Add the log category to your data inventory and your retention and disposal policy, and be able to show that expired records are deleted automatically, with the deletion itself logged.

Staff networks need more care. Keeping a 5651 record is not the same as monitoring which sites an employee visits, and the two should run under separate purposes and permissions; see our guide to employee personal data under KVKK. Replacing a shared Wi-Fi password with individual corporate credentials also makes the device-to-person link reliable (say so in your privacy notice), and single sign-on keeps those identities in one place.

How to comply with Law 5651: seven steps to a logging set-up

The first three steps come before buying any hardware.

  1. Map your networks. List every SSID and who it serves: guests, staff, contractors, production, cameras, IoT. Put guest and corporate traffic on separate VLANs, and check whether production and camera networks reach the internet at all.
  2. Establish your role. Commercial or not? Do you also host services for others? Your role determines requirements such as the permit, the retention period and the integrity record.
  3. Choose the log source. Allocation logs usually come from the DHCP server, the firewall or the hotspot (captive portal) system. Where there are several, collect them all centrally.
  4. Use one time source. Every network device should sync to the same NTP server. A clock two minutes adrift gives the wrong answer to "who had this IP at 14:32?".
  5. Make integrity provable. Generate a hash of each day's log file and store it separately; add a qualified electronic timestamp where stronger evidence is needed. Only the collection service should have write access to the log store.
  6. Automate retention and deletion. When the defined period ends, records should be deleted automatically and the deletion recorded. Backups must follow the same period.
  7. Write the request procedure. Decide who responds to an official request, which query they run and how the output is handed over, and log the query itself. Rehearse it once a year with a sample request.

Test the result against this checklist.

CheckGood answerCommon gap
Which device held a given internal IP at a given time last month?MAC and time range from DHCP or hotspot records within minutesRecords kept for only a few days
How do you prove the logs are unaltered?Daily hash, stored separately with a signature or timestampPlain text files on a share anyone can write to
Are all device clocks consistent?Single NTP source, drift monitoredAccess points still on factory time
Are guest and corporate networks separate?Separate VLANs and log sourcesGuests on the corporate network
What happens to expired records?Automatic deletion with a deletion recordIndefinite archive, old logs left in backups
Who can read the logs?Role-based access, with access loggedEveryone in IT

The same evidence supports the logging and monitoring controls in ISO 27001 for SMEs. If basic network hygiene is not yet in place, start with our SME cyber security checklist.

Common Law 5651 logging mistakes

The most common mistake is treating 5651 compliance as a hardware purchase. An appliance produces records, but without clock sync, network separation, a retention period and a request procedure those records are of little use. The second is keeping the public IP and skipping the internal mapping, when the internal device is exactly what official requests ask about.

The third is turning 5651 records into an employee monitoring tool: logs kept for a statutory duty and then used in a disciplinary case create a KVKK risk. The fourth is a guest network disconnected from front-desk registration; organisations that manage arrivals with QR code visitor access can limit guest Wi-Fi to the length of the visit.

How Digital Bridge approaches Law 5651 logging

We start with discovery, not hardware. Through our cyber security consultancy we map your topology, SSIDs, DHCP and firewall configuration, existing log sources and retention periods.

We then pilot collection, clock sync, the daily integrity value and a sample query on one guest network, and test together whether you can answer "who had 10.0.20.57 last Tuesday at 14:32?" in minutes. Records from mixed-vendor network equipment, hotspot software or building systems are brought into one store through our system integration services.

If the archive is to live in the cloud, immutable storage and access logging go into the plan from day one as part of our cloud migration and infrastructure consultancy. Privacy notices, inventory entries and retention rules are handled with our data protection compliance team, following the same path as our KVKK compliance roadmap.

Where the logs should also feed incident detection, we connect the same pipeline to a SIEM so you can build a timeline within the 72-hour breach notification window. More guides are collected on our Cyber Security & Compliance hub.

Next step

Ask three questions this week. How many wireless networks do your premises run, and who is each one for? Could you find which device held an internal IP a month ago? Is the deletion date written down?

If any answer is unclear, contact us and we will map your networks and log sources with you. Discovery ends with a prioritised list of gaps.

Let us look at your case

Tell us about your process; after a needs analysis we send a written proposal with scope, phases and cost.

Request a Quote +90 552 380 25 25
Questions we hear most often

Frequently Asked Questions

Which businesses does Law 5651 log retention apply to?

The law treats anyone who gives people internet access at a particular place for a particular period as a public use provider, and it does not require a commercial purpose. In practice it is applied not only to cafés and hotels but also to companies offering guest or staff Wi-Fi, hospitals, schools and residential complexes. Base your own assessment on the current regulation and advice from Turkish counsel.

What is an internal IP allocation log?

It is the record of which IP address your own network assigned to a device, when that assignment started and ended, and the device's MAC address. It is usually produced by the DHCP server, the firewall or the hotspot system. When an official request arrives with your public IP and a timestamp, this is the record that links it to a specific internal device.

How long must 5651 logs be kept?

The published regulation sets one year for commercial public use providers. The law itself sets between six months and two years for access providers, and between one and two years for hosting providers. Define your period according to your role, write it down, delete records automatically when it ends and keep a record of each deletion.

Do 5651 logs conflict with KVKK?

No, provided they are handled properly. Logs kept to meet a statutory duty have a legal basis under KVKK, but the usual rules still apply: give a privacy notice, list the logs in your data inventory and retention policy, restrict access by role and delete them when the period ends. Using the same logs for other purposes, such as employee monitoring, needs a separate assessment.

How can we prove our logs have not been altered?

The standard method is to generate a hash of each day's log file and store it apart from the logs, so any later change becomes detectable. A qualified electronic timestamp adds stronger evidence where needed. Restricting write access to the collection service and syncing every device to the same time source are also part of proving integrity.

What is the penalty for not keeping 5651 logs?

Under Article 7, the local governor may impose one of three sanctions on commercial public use providers that breach their obligations, depending on the seriousness of the breach: a warning, an administrative fine or a suspension of business for up to three days. Beyond the sanction, the real risk is being unable to produce records for a criminal investigation. Check current amounts against the legal text.

Do we need a dedicated 5651 logging appliance?

Not always. Internal IP allocation records can often be taken from your existing DHCP server, firewall or hotspot system. What matters is collecting them centrally, syncing every device to one time source, producing a daily integrity value and deleting records automatically when the retention period ends. A separate logging appliance or software is worth considering only when your current infrastructure cannot do these things.

Have a different question? Ask Us

Talk to an Engineer

Tell us what you need to solve. We'll come back with a written proposal.