$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>archives - How to prevent archiving and search engine caching in a free Wordpress blog?|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

archives - How to prevent archiving and search engine caching in a free Wordpress blog?

matteradmin10PV0评论

I don't like to have my free Wordpress blog cached by search engines or even worse, archived by the known archiving websites and services like The Wayback Machine. How can I do that?

I don't like to have my free Wordpress blog cached by search engines or even worse, archived by the known archiving websites and services like The Wayback Machine. How can I do that?

Share Improve this question edited Dec 14, 2018 at 20:29 fuxia 107k39 gold badges255 silver badges461 bronze badges asked Dec 14, 2018 at 20:17 Adrian MachinAdrian Machin 1
Add a comment  | 

1 Answer 1

Reset to default 0

Here are a few things you could do.

Use the built in Search Engine Visibility setting

Access WordPress admin area and go to Settings > select Reading > Search Engine Visibility

Check the box that says Discourage search engines from indexing this site. After enabling it, WordPress will edit the robots.txt file and apply disallow rules which discourage search engines from crawling and indexing your site.

Manually Edit robots.text

You can manually edit robots.txt in the root of your site and add the following code.

User-agent:     *
Disallow: /

Password Protection

If you don't have a public site you could password protect it. This is the only guaranteed way to make sure your site does not get indexed. There are a ton of plugins that will do this, here is the one I normally use.

Removing your site for Google Search

If you website has already been indexed by Google, you can follow these steps to get it removed.

  1. You will need to create an account with Google Webmaster Tools.
  2. Log in to your Google Webmaster Tools account.
  3. If the account is new, you will have to add your web site.
  4. Click the "Add a site" button.
  5. Enter your web site URL and click "Continue"
  6. Now you need to access the web site removal tool.
  7. Once you have opened the web site removal tool, click on "New Removal Request".
  8. On the 'Create a new request' page, select the options that match your removal request, fill in the required fields and then click the Submit Request button
Post a comment

comment list (0)

  1. No comments so far