How to close the home page of a personal blog website during the filing period and fail to access it; articles and other pages can be accessed normally

Li Yang's Blog 2022-11-14 7.43 K Reading 8 Comments

Tips: This article has exceeded five hundred and nineteen No update in days, please note whether relevant content is still available!

Since I became a developer, I found that the needs of each blogger are different, which really overturned my point of view. Whether it is page layout or SEO related settings, it may be because the site properties are different, so the needs are different. Slowly, I will add some custom interfaces to the theme to meet the needs of different people. Some people need PCs that cannot access normally, However, the mobile terminal is guaranteed to be normal. Some people need to visit the PC terminal normally, the mobile terminal jumps to other pages, and so on. Today, let's briefly talk about how to not close the website during the domain name filing without affecting the filing review.

 How to close the home page of a personal blog website during the filing period and fail to access it? Articles and other pages can normally access the first page

This may be an operation method that requires that the home page cannot be accessed, but does not affect other pages and crawlers. There are many online course , can be used directly. I didn't plan to record this article, because several netizens wanted one, so I came here. The code is as follows:

JS code:

 <script>$("html").hide();     $(function() {         $("body").html('<p class="">\u7f51\u7ad9\u5efa\u8bbe\u4e2d</p>');         $("head").html("<title>\u7f51\u7ad9\u5efa\u8bbe\u4e2d</title>");         $("html").show();         $("html").css({             "width": "100%",             "height": "100%",             "overflow": "hidden"         });         $("body").css({             "width": "100%",             "font-size": "0",             "height": "100%",             "background": "#ffffff",             "display": "flex",             "align-items": "center",             "justify-content": "center",             "flex-direction": "column",             "font-size": "28px",             "font-weight": "bold"         });     });</ script>

First of all, this is a piece of JS code. If you want to make the home page unable to open, you can copy the code directly and put it on the home page of the page. As long as it is the home page, you can choose any position at the top and bottom. Then we will prompt when we open the home page of the website“ Website construction In other words, the code " u7f51 u7ad9 u5efa u8bbe_4e2d" can be written directly if you do not understand conversion.

If you want to achieve the effect of the whole site, you can put the code under the footer template. Of course, other templates should also be so named. If you want to achieve the crawler to continue to crawl, you can copy the code into the js file or create a new beian.js blank file, delete the pre and post<script>tags, paste the code into the js file, and then import the js file into the page:

 <script src="Access address/beian. js"></script>

As for whether the crawler will crawl the js file now, there is still a dispute. Regardless of this, after all, we are only for temporary filing, not for long-term operation. The filing time varies from place to place, and the filing can be completed within 7-20 days on the substrate. In addition, it is not important whether the website can be accessed after waiting for the filing auditor to pass, I don't know where this scheme can be used, but if there is a need, there is a purpose. Well, the record is over, and I will move the bricks. Leave a feedback message if there is a problem!

Article copyright notice: unless otherwise noted Lao Li's Notes For original articles, reprints or copies, please use hyperlinks and indicate the source.

Comment

Quick reply: expression:
 Addoil Applause Badlaugh Bomb Coffee Fabulous Facepalm Feces Frown Heyha Insidious KeepFighting NoProb PigHead Shocked Sinistersmile Slap Social Sweat Tolaugh Watermelon Witty Wow Yeah Yellowdog
Comment List (Yes eight Comments, seven thousand four hundred and thirty-four People around)
 Netizen nickname: Wen Xi
Wenxi V Super VIP  Google Chrome 107.0.0.0  Windows 10 x64 summer sleeping mat
2022-12-14 From Jiangsu reply
I don't understand the top articles. They are good and well written!
 Netizen nickname: Li Yang Blog
Li Yang's Blog V Blogger  Sogou Explorer  Windows 10 x64
2022-12-15 From Liaoning reply
@Wenxi Heyha[Heyha][Heyha][Heyha]
 Netizen nickname: Huachenyuexi
2022-11-29 From Jiangsu reply
I don't understand the top articles. They are good and well written!
 Netizen nickname: Li Yang Blog
Li Yang's Blog V Blogger  Sogou Explorer  Windows 7 x64
2022-11-30 From Liaoning reply
@Morning and evening Thank you, Master Hua!!!
 Netizen nickname: Rohan
Rohan V Iron powder  Google Chrome 86.0.4240.198  Windows 7 x64 chair
2022-11-29 From Fujian reply
Learning
 Netizen nickname: Li Yang Blog
Li Yang's Blog V Blogger  Sogou Explorer  Windows 7 x64
2022-11-30 From Liaoning reply
@Rohan Learning together!
 Netizen nickname: Bad Disciple
A scoundrel V Iron powder  Google Chrome 95.0.4638.69  Windows 10 x64 sofa
2022-11-14 From Heilongjiang reply
It's really great. It's absolutely good according to Brother Yang's advice. I just used [Applause]
 Netizen nickname: Li Yang Blog
Li Yang's Blog V Blogger  Sogou Explorer  Windows 10 x64
2022-11-15 From Liaoning reply
@A scoundrel Thank you for your support!
 cancel
 WeChat QR code
 WeChat QR code
 Alipay QR code