Contents
If you offer internet access to guests at your hotel, café or business, you have almost certainly heard the phrase "5651 logs". In this article we explain the technical side of the subject in plain language: which records are kept, how their reliability is ensured, and why the records kept by your existing modem are often not enough.
Important note: This article is general information and does not replace legal advice. Legislation may change over time. Always confirm with your legal adviser and the current text of the legislation which obligations your business is subject to, what the retention periods are and whether a permit is required.
What is Turkish Law No. 5651?
The full name of Turkish Law No. 5651 is the "Law on the Regulation of Publications on the Internet and Combating Crimes Committed by Means of Such Publications" (İnternet Ortamında Yapılan Yayınların Düzenlenmesi ve Bu Yayınlar Yoluyla İşlenen Suçlarla Mücadele Edilmesi Hakkında Kanun), and it came into force in 2007. The Law defines different roles on the internet: content provider, hosting provider, access provider and mass use provider.
The Law defines a mass use provider as one that gives people the opportunity to use the internet at a particular place and for a particular period. Hotels, cafés, restaurants and similar businesses that offer Wi‑Fi to their guests are, in practice, mostly assessed within this definition. The details are set out in the regulation based on the Law.
The legislation may provide for different obligations for those who offer internet access as their commercial activity itself and those who offer it as an ancillary service. You need to clarify with your adviser which group your business falls into and any related additional obligations, such as permits or filtering.
Which records are kept, technically?
The most frequently discussed obligation for mass use providers is keeping IP assignment records for the internal network. Put simply: a record of which internal IP address was given to which device, over which time interval.
When a device connects to the guest network, the following information is usually generated:
- The device's hardware address (MAC address)
- The internal IP address assigned to the device
- The start and end time of the connection
- If a hotspot is used, whom the session belongs to (for example a phone number verified by SMS, or a room number)
A well-built system collects these records automatically, files them at regular intervals and stores them. In some installations, address translation (NAT) records are also kept separately, so that the mapping between internal and external addresses can be traced. Which records to keep should be decided together with the legislation and your adviser's assessment.
Why does timestamping matter?
A log file loses much of its value if it cannot be proven that it was not altered afterwards. A timestamp is a method used to verify that a particular file existed at a particular moment and has not been changed since then. Log files are signed with a timestamp at regular intervals; this way, the integrity of a file can be demonstrated when needed.
There are two more things to watch alongside timestamping:
- Clock synchronisation: If the clocks on the devices keeping the records are wrong, the time information inside the records will also be wrong. The router, hotspot controller and log server should run synchronised to a reliable time source (NTP).
- Uninterrupted flow: A power cut, a full disk or a configuration change can stop the log flow. There should be an alert mechanism that lets you notice when the flow stops.
Where and how should records be stored?
Collecting the records is not enough; they also need to be stored securely. From a technical point of view, good practice is:
- Keeping the records on a separate device or archive that cannot be reached from the guest network
- Limiting access to authorised people and logging who accessed them
- Keeping a copy of the records on a different medium; not relying on a single disk
- Regularly destroying records whose retention period has expired, according to a defined rule
The retention period and the format of the records are set out in the legislation. Read the current period in the text of the regulation and confirm it with your adviser; we deliberately do not state a period in this article.
"My modem already keeps logs. Isn't that enough?"
This is one of the questions we hear most often in the field. Many modems and routers have a "log" screen; however, these records are often:
- Held in the device's memory and erased on restart,
- Written to limited space, with old records overwritten by new ones,
- Not signed with a timestamp, so their integrity cannot be proven,
- Not a regular, readable record of which IP was assigned to which device.
For this reason, a device's log screen on its own may not be a substitute for a sound logging system. A short technical review to see what your existing infrastructure records and what is missing is a good place to start.
Personal data and KVKK
Guest network records can be linked to personal data such as a phone number or room number. This is why KVKK (Turkish Personal Data Protection Law No. 6698) also comes into play. Providing guests with a privacy notice, restricting access to the data and setting retention and destruction rules are assessed within this scope. We recommend that you define the legal framework together with your adviser and build the technical side to fit that framework.
Short checklist
Can you give a clear answer to the following questions for your business?
- Is the guest network separated from the staff and business networks?
- Are the internal IP addresses assigned to guest devices, and their times, recorded automatically?
- Are the records signed with a timestamp?
- Are the clocks of the devices keeping the records linked to a reliable time source?
- Who is notified when the log flow stops?
- Is there a second copy of the records, and who can access it?
- Have the retention period and the destruction rule been set in writing?
- Have your legal obligations been assessed with an adviser?
If any of the answers is "I don't know", it is time to clarify them.
What does BOBiH do in this area?
We take on the technical side of the job: separating the guest network, setting up the hotspot login, collecting the records, signing them with a timestamp, storing them securely and monitoring the log flow. You can find the scope in detail on our Law No. 5651 logging systems page. The legal assessment is your adviser's area; dealing with the two together is the soundest approach.
Sources
- Text of Law No. 5651, Legislation Information System (Mevzuat Bilgi Sistemi): https://www.mevzuat.gov.tr/mevzuat?MevzuatNo=5651&MevzuatTur=1&MevzuatTertip=5
- Law No. 6698 on the Protection of Personal Data, Legislation Information System (Mevzuat Bilgi Sistemi): https://www.mevzuat.gov.tr/mevzuat?MevzuatNo=6698&MevzuatTur=1&MevzuatTertip=5
- Regulation on internet mass use providers: can be searched by name in the Legislation Information System, https://www.mevzuat.gov.tr/
- Information and Communication Technologies Authority (BTK): https://www.btk.gov.tr/