If an online service you provide, or part of it, is in scope of the Online Safety Act, you have a duty to protect UK users from illegal content on your service.
If you're not sure if the service you provide is in scope of the Act, you can use our Regulation Checker tool to help you understand if it is.
The illegal content duties require providers of relevant services in scope of the Act to:
- Carry out an illegal content risk assessment
- Put in place protections under the safety and related duties
- Comply with the record-keeping and review duties for these activities
You have three months to complete a risk assessment after launching a service that the Act applies to, and will need to keep that risk assessment up to date. You also need to complete a risk assessment before making a significant change to your service.
Our resources to help you comply with the illegal content rules
- Our Online Safety Act regulatory documents page includes a full list of documents and guidance related to compliance with the illegal content duties, including Ofcom’s risk assessment guidance and Codes of Practice.
- Our digital toolkit will guide you through how to comply with the illegal content duties. The toolkit will provide you with specific compliance recommendations for your service based on your answers to a series of questions. It will help you to:
- identify and asses the risks relevant to your service
- find recommended safety measures to address these risks
- use templates and checklists, if you need them
Illegal content risk assessment duties
The purpose of conducting a risk assessment is to ensure you have an adequate understanding of the risks to your users encountering illegal content on your service, and if you have a user-to-user service, the risk that the service may be used to commit or facilitate certain priority offences.
Your assessment must accurately reflect the risks on your service based on relevant information and evidence. You also need to keep it up to date.
You need to keep a written record of every risk assessment you carry out. You can use the illegal content duties record-keeping template (ODT, 148 KB) to make a record of your risk assessment.
New priority offences
We are currently consulting on updating our regulatory documents and guidance to include new priority offences introduced by the Government in 2025: encouraging or assisting serious self-harm and cyberflashing. Providers will need to take appropriate steps to keep their risk assessments up to date, when such changes are confirmed, and we recommend they do so as soon as practical after the statement is published this summer. We will update this page when changes are confirmed by the statement.
Additional steps for Category 1 and 2A services
Ofcom expects to publish the register of categorised services in July 2026. The providers of services falling into Category 1 or Category 2A will have additional duties relating to their risk assessments.
These duties will create transparency as to how providers of relevant services view the levels of risk they pose to users in the UK.
Illegal content safety duties
The illegal content safety duties, and those relating to reporting and complaints, focus on keeping people safe online. It’s about making sure you have the right measures in place to protect people from harm that could take place on your service.
If you are the provider of a user-to-user service, you must:
- take proportionate steps to prevent your users encountering illegal content
- mitigate and manage the risk of offences taking place through your service
- mitigate and manage the risks identified in your illegal content risk assessment
- swiftly remove illegal content when you become aware of it, and minimise the time it is present on your service
- explain how you’ll do this in your terms of service
- allow people to easily report illegal content and operate a complaints procedure
If you are the provider of a search service, you must:
- take proportionate steps to minimise the risk of your users encountering illegal content via search results
- mitigate and manage the risks identified in your illegal content risk assessment
- explain how you’ll do this in a publicly available statement
- allow people to easily report illegal content and operate a complaints procedure
You can decide for yourself how to meet the specific legal duties; you can apply the measures that apply to your service set out in Ofcom’s Codes of Practice or you can take alternative measures. If you take alternative measures to the ones we recommend, you must also maintain a record of what you have done and how you consider that they fulfil the relevant duties.
Implementing safety measures
Our Codes of Practice set out a range of measures in areas including content moderation, complaints, user access, design features to support and protect users, and the governance and management of online safety risks.
Some measures are targeted at addressing the risk of certain kinds of illegal harms. For example, our Codes of Practice include measures to tackle online grooming. Other measures help to address a variety of illegal harms such as child sexual abuse material (CSAM) and fraud.
The illegal content Codes of Practice include measures in the following areas for user-to-user services:
- Governance and accountability
- Content moderation
- Reporting and complaints
- Recommender systems
- Settings, functionalities and user support
- Terms of service
- User access
- User controls
The Protection of Children Codes of Practice include measures in the following areas for user-to-user services:
- Governance and accountability
- Search moderation
- Reporting and complaints
- Settings, functionalities and user support
- Publicly available statements
Your safety measures will depend on your service
The Act is clear that the safety measures that providers put in place should be proportionate. Different measures in the Codes of Practice would apply to different services based on factors such as:
- the type of service you provide (user-to-user or search);
- the features and functionalities of your service;
- the number of users your service has (size); and
- the results of your illegal content risk assessment.
Some measures will apply to all services. For example, these include naming a individual accountable for online safety compliance and ensuring your terms of service (or publicly available statements) are clear and accessible.
Certain measures may apply to services of differing sizes or risk levels, such as the measures to apply specific automated tools to detect and remove child sexual abuse material from user-to-user services and to ensure that users do not encounter it in or via search services.
In our Codes of Practice, we have defined a large service as a service which has an average user base of 7 million or more per month in the UK. This is equivalent to approximately 10% of the UK population. A user does not need to be registered with the service, or post anything. Just viewing content is enough to count as using that service.
These services may need to put in place more measures, such as providing training for staff working in content moderation.
This is because, generally, providers of large services putting in place these measures will have the most benefits for the most number of users – so it’s proportionate to ask them to do more.
Your illegal content risk assessment must set out if your service has a negligible, low, medium, or high risk of each kind of priority illegal content. These risk levels must accurately reflect the risks on your service.
Some measures apply based on the specific risk level:
- If your service is low or negligible risk for all kinds of priority illegal content, you are a 'low risk service;' and the minimum number of measures apply.
- If your service is medium or high risk for one kind of illegal harm, we call it a ‘single-risk’ service, and more measures may apply.
- If your service is medium or high risk for two or more kinds of illegal harm, we define it as a ‘multi-risk’ service, and further measures may apply.
- Safety measures focused on specific kinds of illegal harm (like child sexual exploitation and abuse and terrorism offences) only apply to services that are medium or high risk for those specific harms.
Further steps you may need to take to comply
Providers of online services must comply with a range of duties under the Online Safety Act.
In addition to complying with illegal content duties, you will need to:
- Complete your children’s access assessment to determine if the protection of children duties apply
- If applicable, carry out your children’s risk assessment, and comply with your record-keeping, safety and related protection of children duties
If you provide a service that publishes or displays pornographic material, you may have further duties to comply with. You can find out more about these on the Adults Only page.