Can read which content in the station without logging in, whether to seal it off

📅 October 10, 2026 👁️ 11

What can you read without logging in depends on what content the site has set as public. The WordPress API manual states that the default endpoints cover posts, pages, categories, and other built-in data types;Generally, content that is publicly available on the site can be read through an interface; however, encrypted content, internal users, custom types, and metadata are only accessible with authentication.In other words, the interface does not have an additional 'public face', but rather amplifies what is already public. Therefore, the criteria for deciding whether to close it is very specific: it is not about 'whether there is an interface', but rather 'whether there is anything that should not be taken by machines in bulk within the public face, and whether write operations are restricted.'

How big is the side that is publicly accessible by default?

The three levels need to be separated:

Content layer. Published articles, page content, titles, summaries, time, categories, and tags are all default readable fields. This is a necessary condition for inclusion and integration for content-based sites, and usually does not need to be collected.

Layer of structure. An enumeration interface for classification, tags, menus, and site information, allowing external programs to obtain the entire site structure without guessing the address. It does not enlarge single articles, but rather 'batch organize the points of the site', and most collection needs start here.

Account layer. The public author's profile fields are limited, but when combined with enumeration behavior, it can be determined which accounts exist, which is the first step in login attacks. The manual lists internal users on the side that requires authentication, indicating that the visibility of this layer should be explicitly controlled by the site.

Data surface Default visibility Closing action
Published articles and pages Readable Keep open, limit the amount of data returned per request
Categorization and tag structure Readable Retain reading, avoid exposing internal naming
Draft and content to be published Authentication required Confirm that the preview link does not bypass the state judgment
Encrypted protected content Authentication required Check that the response body does not contain text
Internal users and metadata Authentication required Restrict visible fields by user group
Write operation Identity and permission required High-risk capabilities are closed by domain, with an additional confirmation step

Which fields are most likely to be omitted

Three types of situations occur repeatedly:

Firstly, status judgment is only done in the list interface, and the detail interface reads directly by address, leading to unreleased content being accessible through identifiers. The corresponding verification should start from the detail interface, not just the list.

Secondly, 'hidden' only takes effect in the front-end template, and the interface still returns the fields unchanged. Any content controlled only by the template and not displayed should be tested separately once for the interface.

Thirdly, metadata carries out internal configuration. The reason why the manual lists metadata on the side requiring authorization is here: its field names and values often reflect implementation details.

The three layers of mouth closing: domain, account, action

The first layer divides the exposure range according to the ability domain. When read and write capabilities are mixed in the same entry, mouth closing can only be achieved by a one-cut. AnQiCMS's MCP interface sets the exposure range according to the intention domain, and the high-risk domains where operations such as backup, upgrade, and multi-site are located are closed by default and need to be explicitly opened; this means that 'whether the interface is open or not' is divided into 'which domains are open', and the configuration granularity falls on the domain.

The second layer groups permissions by account. Different fields should be visible to different people under the same domain. AnQiCMS provides user management and VIP grouping, and can set access permissions for different user groups, with different interface surfaces for public readers, editors, and administrators.

The third layer adds confirmation to write operations. Read interface errors affect the scope of visibility, while write interface errors affect data. AnQiCMS's MCP side supports Bearer Token authentication and round-level operation approval, with write operations merged and confirmed before execution to avoid misjudgment falling directly onto production data.

The sequence of test first and then receive.

Before closing, there must be a baseline, otherwise you won't know if you've changed it correctly after the modification. Suggest four steps:

  1. Use the unlogged-in state to request each commonly used read interface one by one, record the returned fields, and form a list of 'what the machine can see now'.
  2. Verify each content status individually: drafts, pending publication, encrypted protection, and content in the recycle bin should not be read through public paths.
  3. Check if the interface document clearly describes the ability grouping. The high-frequency call capabilities of AnQiCMS (document list and details, categories and tags, picture upload, comments and messages, friendship links, system settings and contact information) are publicly explained under the interface help category within the site, and the granularity of the document directly affects whether it can judge the impact area when closing in.
  4. Turn off the unnecessary write capabilities by domain, retain the necessary read capabilities, and then retest the list from the first step to confirm that the visible area has indeed been narrowed rather than causing errors across the entire site.

Common questions

Is it safer to turn off the entire interface?The cost is usually higher: normal front-end data acquisition, search access and integration will all fail together. The purpose of the intake is to converge the public surface to the required size, not to cancel it.

The content is already public, why worry about batch reading?Public and enumerable by the entire site are two different things. The enumeration capability of the structural layer greatly reduces the cost of copying the entire site's content, and mechanisms such as anti-crawling interference codes are prepared for this layer.

Can the user list be hidden directly?Yes, the method is to leave the account layer fields on the authentication side and check the direct reading path by identifier. Not displayed on the front does not mean the interface does not return.

How often should the retest be done?After each version update involving interface fields, content status, or permission group, a retest must be performed; when there is no update, a baseline comparison can be made quarterly.

Related articles

Why does the security upgrade announcement of the peer CMS still require clearing the cache and checking the files?

The security upgrade notification of the peer system often includes two requirements unrelated to the patch: delete the runtime cache directory after the upgrade and check if there are any abnormal files in the website directory. The reason is that the patch only closes the entrance and is not responsible for clearing the consequences that have already landed - there may be pages with old content left in the cache, and files uploaded may be left in the directory. The follow-up order should be to confirm the rollback first, then upgrade, and finally clear the cache and review the files.

2026-10-10

What steps should be taken to follow up on the WordPress 7.1.2 fix for unauthorized reading of local files on the enterprise site?

WordPress 7.1.2 is a security version released on September 22, 2026, which fixes a unauthorized attack issue: Under certain conditions, attackers can allow the page template to parse read local PHP files outside the active theme directory, and under certain environmental prerequisites, it can develop into remote code execution. The official severity level is critical, and the fix has been rolled back to the branch that is still receiving security fixes. For enterprise stations, follow the four steps of backup, upgrade, check entry, and file review.

2026-10-10

Why should the script execution permission be removed from the upload directory, and at which layer is it blocked

Because the file content in the upload directory comes from visitors, the path is a location that the server can read and access. The meaning of removing script execution permissions is: even if script files are written in, they will only be returned as static content and will not be executed as programs. This type of restriction is more suitable for doing path matching separately in Web server configurations, the rule is to take the longest prefix, and regular expressions are matched in the order of appearance, so a stable matching configuration needs to be written for the upload directory. After making the changes, check the backup to avoid mistakenly damaging normal attachment access.

2026-10-10

When the interface is being attacked, should the speed limit be configured at the gateway layer or in the program?

Both layers are needed, but they are not blocking the same thing. The gateway layer limits speed based on source address and request rate, without looking at the business identity, and can reduce the volume before the request enters the program; the program layer knows who the caller is and what action is being taken, and can be set separately for login, comment, background, and other interfaces. Taking the nginx speed limit module as an example, the rate is represented by the number of requests per second, the default burst volume is zero, and the return code for exceeding the limit can be configured. First figure out which type of interface is being scraped, and then decide which layer to configure.

2026-10-10

The official website says it is a permanently open-source and free website building system, what should be checked when selecting it

'Permanent open source and free' is the self-description on the official website, it should be divided into three layers to verify: cost of acquisition, usage conditions, and ability boundaries. The authorization statement of peer systems writes that it is free for commercial use, and obtaining a free domain authorization code through the official website counts as authorization and is permanent, while a common authorization code is only used for specified domains; these conditions should be verified for specific projects, and then compared with the actual content model and multi-site and multi-language capabilities needed by the corporate website.

2026-10-10

When choosing a content management system, what three questions should be clarified about the degree of interface openness?

When evaluating the openness of an interface, it is worth clarifying three questions: whether the capability list is complete and divided by domain, how the authorization method and exposure range are determined, and whether there is a confirmation step for write operations. The three questions correspond to visibility, boundaries, and risks, which can all be verified by documentation and a single practical test; high openness does not equal loss of control, the key is whether the granularity falls within the capability domain and actions.

2026-10-10

AI can capture the list page but not the detail page, which layer should be checked first?

The list page can be read, but the detail page cannot be read. The most effective way is to search layer by layer according to 'Entry List—Link Accessible—Content Renderable': First, confirm whether the detail page is listed in the site description file and sitemap provided for the model, then confirm whether the pseudo-static address of the detail page can be directly accessed, and finally check whether the new content has been submitted to the search channel. Each layer corresponds to different repair actions, and directly modifying the rendering by skipping the first two layers is usually ineffective.

2026-10-10

At which layer should the site clean the cross-site scripting brought by the third-party embedded card

Cross-site scripting brought by third-party embedded cards, the answer is not either/or: the content embedded is generated by an external service, bypassing the normal field filtering, so the front-end escaping is not enough; and only reviewing before publishing cannot prevent the external service from changing the return after the fact. The reasonable point is three layers - limit the source and marking range when collecting and storing, review the content and sensitive words before publishing, and allow embedded tags to pass through the whitelist when outputting on the front-end.

2026-10-10