diff --git a/src/main/java/com/swyp/picke/global/config/SecurityConfig.java b/src/main/java/com/swyp/picke/global/config/SecurityConfig.java index bf407fc..9f36b37 100644 --- a/src/main/java/com/swyp/picke/global/config/SecurityConfig.java +++ b/src/main/java/com/swyp/picke/global/config/SecurityConfig.java @@ -50,7 +50,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { "/report/**", "/battle/**", "/.well-known/**", - "/app-ads.txt" + "/app-ads.txt", + "/robots.txt" ).permitAll() // 2. 관리자 HTML 화면 렌더링 요청 diff --git a/src/main/resources/static/robots.txt b/src/main/resources/static/robots.txt new file mode 100644 index 0000000..e9920dc --- /dev/null +++ b/src/main/resources/static/robots.txt @@ -0,0 +1,2 @@ +User-agent: Google-adstxt +Disallow: