100 degrees and 360 auto-receiving JS

The simple and easy-to-use JS delivery and automatic recording tools, which are 100 degrees and 360 consecutive lines, would presumably be able to automatically transfer 100 degrees and 360 times when users view the page, with the alleged increase in the intake rate.

优化解决百度自动推送和360自动收录JS重复推送问题

The idea is good, and unfortunately this JS tool — 100 degrees or 360 degrees — is a semi-product that does not take into account the issue of duplicate delivery. In other words, they are deployed with their JS code, regardless of whether the page has been recorded or not, and whenever someone browses it, automatically sends it to the same link address. It is said that there is a risk that spiders might mistook the article for frequent updates and instability so as to enter the sand river in the short term without showing it, but also waste the amount available for each day.WordPress automatically pushes JS optimization, avoids errors and repeats the delivery problem.Zhang Gobo only shares and solves the 100-degree automatic delivery problem, not the 360 autorelease problem. The two are very similar; they can be done with a tatter. Not every blogger’s director will be able to decode them, so today we’ll bring together 100-degree automatic push and 360 automatically capture the duplicate transmission problems caused by JS code.

Auto-send and360AutoRecruitJSThe solutions to the problem of duplication caused by codes are as follows:

Just add the following code to the last of the files.php?>That’s all right. (This applies to WordPress site, and as for the other program sites, please study their own solutions)

  1. /**
  2. :: Optimizing the resolution of 100-degree automatic push and 360 automatic reloading of JS duplicates
  3. :: Address of article:https://www.yigujin.cn//843.html
  4. :: Optimization of the 100-degree automatic JS code byy Zhango blog
  5. :: Address of article:http://zhang.ge/5100.html
  6. * Reproduced with the permission of the Permanent Mission of Cuba to the United Nations. Thank you for your cooperation.
  7. **/
  8. add_action( ‘wp_footer’, ‘bdPushData’, 999);
  9. / Check 100 degrees for inclusion of the latest improvements
  10. If…(!function_exists(‘baidu_check_record’)){
  11.   function baidu_check_record($url){
  12.     global $wpdb;
  13.     $post_id = (null) $post_id ) ? get_the_ID() : $post_id;
  14.     $baidu_record  = get_post_meta($post_id,’baidu_record’,true);
  15.     If…( $baidu_record != 1){
  16.         $url=’http://www.baidu.com/s?wd=’.$url;
  17.         $curl=curl_init();
  18.         curl_setopt($curlCURLOPT_URL,$url);
  19.         curl_setopt($curl,CURLOPT_RETURNTRANSFER, 1);
  20.         $rs=curl_exec($curl);
  21.         curl_close($curl);
  22.         // If the 100-degree result is not available [submitting web site], it is assumed that this page has been recorded hundreds of times
  23.         If…(!preg_meat_all (‘/presentation of web site/u’,$rs,$match) && I’m sorry, but it’s not like you’re in the wrong place.$rs, $match)){
  24.             update_post_meta($post_id, ‘baidu_record’, 1) || add_post_meta($post_id, ‘baidu_record’, 1, true);
  25.             return 1;
  26.         } else {
  27.             return 0;
  28.         }
  29.     } else {
  30.        return 1;
  31.     }
  32.   }
  33. }
  34. / Check 360 for the inclusion of the latest improvements
  35. If…(!function_exists(‘sll_check_record’)){
  36.   function sll_check_record($sslurl){
  37.     global $wpdb;
  38.     $post_id = (null) $post_id ) ? get_the_ID() : $post_id;
  39.     $sll_record  = get_post_meta($post_id,’sll_record’,true);
  40.     If…( $sll_record != 1){
  41.         $sslurl=’http://www.so.com/s?q=’.$sslurl;
  42.         $csslurl=curl_init();
  43.         curl_setopt($csslurlCURLOPT_URL,$sslurl);
  44.         curl_setopt($csslurl,CURLOPT_RETURNTRANSFER, 1);
  45.         $rs=curl_exec($csslurl);
  46.         curl_close($csslurl);
  47.         // If the key word [submitting web site] does not exist in the 360 result captured, it is considered that the page has been included in 360
  48.         If…(!preg_meat_all (‘/presentation of web site/u’,$rs,$match)){
  49.             update_post_meta($post_id, ‘sll_record’, 1) || add_post_meta($post_id, ‘sll_record’, 1, true);
  50.             return 1;
  51.         } else {
  52.             return 0;
  53.         }
  54.     } else {
  55.        return 1;
  56.     }
  57.   }
  58. }
  59. //output 100 degrees of automatic push and 360 automatically recorded js codes
  60. If…(!function_exists(‘bdPushData’)){
  61.   function bdPushData() {
  62.     If… ($_SERVER[‘HTTPS’] ! “on”) {
  63.         $currentUrl = ‘http://’.$_SERVER[‘HTTP_HOST’].$_SERVER[“REQUEST_URI”];
  64.     } else {
  65.         $currentUrl = ‘https://’.$_SERVER[‘HTTP_HOST’].$_SERVER[“REQUEST_URI”];
  66.     }
  67.     //judge whether it is 100 degrees unrecorded page and if the current page equals a regular URL (get_premalink)
  68.     If…(baidu_check_record(get_permalink()) == 0 && $currentUrl == get_permalink()) {
  69.         echo “<script>(function(){
  70.             var bp = document.createElement(‘script’);
  71.             var curProtocol = window.location.protocol.split(‘:’)[0];
  72.             if (curProtocol === ‘https’) {
  73.                 bp.src = ‘https://zz.bdstatic.com/linksubmit/push.js’;        
  74.             } else {
  75.                 bp.src = ‘http://push.zhanzhang.baidu.com/push.js’;
  76.             }
  77.             var s = document.getElementsByTagName(‘script’)[0];
  78.             s.parentNode.insertBefore(bp, s);
  79.             })();</script>”;
  80.       }
  81.     //judge whether it’s 360 unrecorded pages and whether the current page is equal to a regular URL (get_premalink)
  82.     If…(sll_check_record(get_permalink()) == 0 && $currentUrl == get_permalink()) {
  83.         echo “<script>
  84. (function(){
  85.    var src = (document.location.protocol == ‘http:’) ? ‘http://js.passport.qihucdn.com/11.0.1.js?9d1e70eca6a305e9ff409dcab8478888′:’https://jspassport.ssl.qhimg.com/11.0.1.js?9d1e70eca6a305e9ff409dcab8478888’;
  86.    document.write(‘<script src=” + src + ” id=’sozz’><\/script>’);
  87. })();
  88. </script>”;
  89.       }
  90.    }
  91. }

Of these, remember the key automatically recorded in the modified code for 360 (9d1e70ca6a305e9ff409dcab847888 is a secret and can be replaced directly), each site has its own key, which can be obtained from the 360 station leader platform, as shown below.A detailed tutorial for 360 auto-induction profiles and the addition of 360 automatic entries》。

Advertising words:The above method isboke112 NavigationandThe dreamer.It’s all running, but in…The ancient days.It’s kind of a bit unusual. For example, the links to an article at 100 degrees and 360 searching for Boke112 navigators and dreamers show either the result of the entry or the unrecorded need to submit a site. But the search for an article in the past shows a whole bunch of irrelevant results, and it doesn’t seem that the buttons for submitting a web address are available. The only difference between these three sites is that Zhu Guo is now suffocating to .wang, do not know if this is relevant?

未经允许不得转载:萌萌Apprentissage » 100 degrees and 360 auto-receiving JS

Like (0) 打赏

Comments 0

Protected with IP Blacklist CloudIP Blacklist Cloud
  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏

//下一个脚本特效
//下一个脚本