How to download the content of a WordPress site and how to protect the content

In this text, you will learn how you can download the content of a WordPress site, but also how to protect the content of your site. For example, you created a page on the site and did not put it in the menu, like a secret page or a page that appears when someone buys something on the site. You have not placed a link to that page anywhere on the site, you have removed it from the web browser, e.g. using Yoast plugin thinking that you have protected it but that is not true. In every WordPress installation there is an easy way to download content by having an option wordpress search.
The first thing we will do is create a new page and publish it on the site.
How to download the content of a WordPress site and how to protect the content 1
We created a page, see the permalink of the page under the title, we didn't insert it into the menu, we didn't give access to that page on any other page and nobody knows it exists. Or so you think. If you type next to the URL of your site, or any other site, put at the end of the link /?s and search for that page, you'll get a list of all the site's pages. In this way, you can find any page on any WordPress site, regardless of the fact that there is no link to individual pages and that the page is not indexed by Google. See below how you can solve this.
How to download the content of a WordPress site and how to protect the content 2
The next thing that needs to be done is to open the section in the control panel of the site FileManager as you can see in the picture above. It is necessary to install the plugin first File Manager if you don't already have it installed. You need to create a new file and name it functions.php which you will create when you come through the path wp-content/themes/childtheme and create a file inside. Instead of childtheme enter the folder of the theme you are using. Once you have created the file, you need to click on it to edit it and insert the specific lines of code that you will see below.
How to download the content of a WordPress site and how to protect the content 3
In the image above there is a code that needs to be inserted into functions.php file to hide certain pages. The line of code where there is a 0 and 1 needs to be changed, i.e. change those numbers, which represent the specific ID of the page or article you want to hide. In order to find the ID, you need to click in the control panel on pages and open the page you want to hide. When you open the page, you look at its URL and where it says post=569 specifically in this example, that means the number you need is 569 and you write it instead of 0 and save the functions.php file.
After you save the feature, refresh the page you were browsing on and you won't find your hidden page. That way you've hidden your page so people can't find it by searching your site. There is another option, by completely disabling the search option on your site. That function looks like this.
How to download the content of a WordPress site and how to protect the content 4
Once you've saved this feature, if someone tries to search your page, they'll get a 404 error, or a 404 page, similar to the page in the image below.
How to download the content of a WordPress site and how to protect the content 5
I hope that this text was useful for you and that you learned something new, if you are interested in reading more tips for independent work, you can check them out on our blog, and in case you want to consult with professionals, click on this one Link.

Source: youtube

Are you interested in the services of our agency?

Leave us your details so we can contact you for more information.

Author picture

Leave a comment:
Share this article: