Skip to content

Commit

Permalink
Support disable spider.
Browse files Browse the repository at this point in the history
  • Loading branch information
ruibaby committed May 14, 2019
1 parent 9342fa7 commit 1c1030f
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ public enum OtherProperties implements PropertyEnum {
/**
* 是否禁止爬虫
*/
SPIDER_DISABLE("spider_disable",Boolean.class,"false");
SPIDER_DISABLED("spider_disabled",Boolean.class,"false");

private final String value;

2 changes: 1 addition & 1 deletion src/main/resources/templates/common/web/robots.ftl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<#if options.spider_disable!false>
<#if options.spider_disabled!false>
User-agent: /
Disallow: /
<#else>

0 comments on commit 1c1030f

Please sign in to comment.