这是一个专门讨论 idea 的地方。

每个人的时间,资源是有限的,有的时候你或许能够想到很多 idea,但是由于现实的限制,却并不是所有的 idea 都能够成为现实。

那这个时候,不妨可以把那些 idea 分享出来,启发别人。
wangjincp

Apache 拒绝垃圾流量,我想跳转到指定页面或者 301 到其他页面怎么做?

  •  
  •   wangjincp · Dec 4, 2018 · 2667 views
    This topic created in 2709 days ago, the information mentioned may be changed or developed.
    在百度了一下。Apache 直接可以屏蔽一些垃圾 User-Agent

    <Directory "/var/www">
    SetEnvIfNoCase User-Agent ".*(FeedDemon|JikeSpider|YandexBot|AskTbFXTV|AhrefsBot|CrawlDaddy|Java|Feedly|UniversalFeedParser|ApacheBench|Swiftbot|ZmEu|oBot|jaunty|Python-urllib|lightDeckReports Bot|YYSpider|DigExt|YisouSpider|HttpClient|MJ12bot|heritrix|EasouSpider|Ezooms|Barkrowler|archive|coccocbot|SemrushBot|HeadlessChrome|Sogou|GrapeshotCrawler).*" BADBOT
    Order allow,deny
    Allow from all
    deny from env=BADBOT
    </Directory>


    问题来了,这个怎么指定跳转到那个页面去?或者 HTTP 跳转也行。
    这个默认跳转到 Apache 欢迎页面。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1023 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 23:34 · PVG 07:34 · LAX 16:34 · JFK 19:34
    ♥ Do have faith in what you're doing.