朱纯树博客
VPS测评推荐网站
cloudacead cloudacead

PHP简单防止网站被镜像(反代)代码

php
简单粗暴,不一定能全防(防小白搞的反代还是可以的,某些大佬搞的防不了),如果你有更好的思路但不会用代码描述,您可以评论出来,我们一起解决

<?PHP $domain="zhuchunshu.com";/*网站域名*/ $agreement="https://";#网站协议(http,https) ?>
<?php if ($_SERVER['HTTP_HOST']!=$domain): #如果当前域名不等于$domain变量设置的域名那么则重定向到$domain变量设置的域名 ?>
    <?php header("location:".$agreement.$domain); ?>
<?php endif ?>
赞(0) 打赏
未经允许不得转载:VPS测评推荐网站 - 朱纯树博客 » PHP简单防止网站被镜像(反代)代码

评论 57

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #60

    how does accutane work Obeid M, Tesniere A, Ghiringhelli F, Fimia GM, Apetoh L, Perfettini J L, Castedo M, Mignot G, Panaretakis T, Casares N 2007 Calreticulin exposure dictates the immunogenicity of cancer cell death

  2. #59

    Darell IbYPrzzFhs 5 29 2022 clomid and cialis

  3. #58

    Public Health Section, Community Health Sciences University of Dundee, Dundee, DD2 4BF, UK do porn stars use viagra This attempts to match photos with similar Гў but not identical Гў ones online

    Tuhshoole1周前 (01-29)回复
  4. #57

    com 20 E2 AD 90 20C 27est 20Quoi 20Le 20Medicament 20Viagra 20 20Generic 20Viagra 20Injection c est quoi le medicament viagra Our Classified websites Photos, Motors, Jobs and Property Today use cookies to ensure you get the correct local newspaper branding and content when you visit them 20 mg nolvadex pct

    inwakly2周前 (01-27)回复
  5. #56

    can you buy priligy online Hormone and Metabolic Research Effect of vitamin D supplementation on testosterone levels in men

    Chiellare2周前 (01-24)回复
  6. #55

    what is stromectol 3 mg used for The relationship between the MEMSCaps adherence rate and self reported CTSQ adherence was assessed using bivariate Pearson product moment correlation coefficients

    tomipieft2个月前 (12-17)回复
  7. #54

    nolvadex on cycle For patients with line associated candidemia, most experts recommend line removal as delayed removal has been associated with increased mortality and morbidity

    Plettemok2个月前 (12-16)回复
  8. #53

    We next compared the microarray results of parental and MCF7 ERОІ expressing cells treated with estrogen plus 40 nM endoxifen to estrogen treatment alone generic zithromax over the counter

    NultitNer2个月前 (12-14)回复
  9. #52

    ivermectine online 056 at P60 measurement, Fig 7H

    Voppido3个月前 (11-21)回复
  10. #51

    doxycycline rash pictures cialis bula tylenol gotas 200mg Hot on the heels of the Michelin awards, Zagat has released the results of its restaurant rankings for New York City, giving the top spot to French seafood eatery Le Bernardin for the fifth straight year in a row

    Apabili3个月前 (11-20)回复
  11. #50

    clomiphene goodrx coupon Van Kruchten M, de Vries EG, Brown M, et al

    refeInnob3个月前 (11-17)回复
  12. #49

    Compound A9 is prepared using general procedure 19 does lasix lower blood pressure Monitoring During Tamoxifen Nichi iko tamoxifen citrate Therapy

    Inpuncmut3个月前 (11-16)回复