---
title: "How to Remove REST API Links for WordPress Website?"
url: https://nexterwp.com/docs/remove-rest-api-links-for-wordpress/
date: 2023-04-18
modified: 2026-04-15
lang: en
author: "Aditya Sharma"
description: "As web developers, we all know the importance of using REST API links in our WordPress websites. These links allow us to easily communicate between different platforms and provide a..."
image: https://nexterwp.com/wp-content/uploads/2024/05/remove-rest-api-links-for-wordpress-1024x519.jpg
word_count: 192
---

# How to Remove REST API Links for WordPress Website?

## Key Takeaways

- Nexter Extension (Free) removes the REST API link from a WordPress website when the feature is enabled.
- WordPress adds a line of code for REST API in the page source code and additional code in backend PHP files by default.
- Nexter > Extensions > Security opens Advanced Security, where Remove REST API Links is enabled through the gear icon (⚙) and saved with the Save button.

As web developers, we all know the importance of using REST API links in our WordPress websites. These links allow us to easily communicate between different platforms and provide a seamless user experience. However many websites don’t use it for them it is better to remove the link.

With the [Nexter Extension (Free) plugin](https://wordpress.org/plugins/nexter-extension/) you can easily remove the REST API link from your website.

[LIVE EXTENSION LINK](https://nexterwp.com/nexter-extensions/advanced-wordpress-security/)

 

## Why Remove REST API Link?

By default WordPress adds a line of code for REST API in the page source code.

![rest api link](https://nexterwp.com/wp-content/uploads/2023/04/rest-api-link.png)

It also adds some additional code in the backend PHP files. So if you are not using this feature, you should remove the link to remove those extra lines of code.

## How to Remove REST API Link with The Nexter Extension?

To do this, go to **Nexter** > **Nexter Extension** > **Security**.

Then go to the **Advanced Security **section, turn on the toggle, and click **Configure**.

![Nexter Security screen with the Security item selected in the sidebar and the Advanced Security card turned on](https://nexterwp.com/wp-content/uploads/2026/10/nexter-extension-security-advanced-security-card.webp)

This will open the Advanced Security panel, go to **Remove REST API Links** and enable the toggle.

Then click on the **Save** button.

![Nexter Extension Advanced Security panel with the Remove REST API Links setting highlighted and the Save button marked](https://nexterwp.com/wp-content/uploads/2026/10/nexter-extension-advanced-security-restlinks.webp)

Now if you check the page source code you won’t find the link.