@@ -0,0 +1,1592 @@
+package cfvbaibai.cardfantasy.web.aspects;%0D%0A%0D%0Aimport javax.servlet.http.HttpServletRequest;%0D%0Aimport javax.servlet.http.HttpServletResponse;%0D%0A%0D%0Aimport org.aspectj.lang.ProceedingJoinPoint;%0D%0Aimport org.aspectj.lang.annotation.Around;%0D%0Aimport org.aspectj.lang.annotation.Aspect;%0D%0Aimport org.aspectj.lang.annotation.Pointcut;%0D%0Aimport org.springframework.beans.factory.annotation.Autowired;%0D%0A%0D%0Aimport cfvbaibai.cardfantasy.web.beans.Logger;%0D%0A%0D%0A@Aspect%0D%0Apublic class AntiBotAspect %7B%0D%0A%0D%0A    @Autowired%0D%0A    private Logger logger;%0D%0A    %0D%0A    @Pointcut(%22execution(public * cfvbaibai.cardfantasy.web.controller.AutoBattleController.play*(%22 +%0D%0A            %22javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, ..))%22)%0D%0A    public void outputWebResponse() %7B%7D%0D%0A    %0D%0A    @Around(%22cfvbaibai.cardfantasy.web.aspects.AntiBotAspect.outputWebResponse()%22)%0D%0A    public void setEncoding(ProceedingJoinPoint pjp) throws Throwable %7B%0D%0A        try %7B%0D%0A            logger.info(%22AntiBot advice activated on: %22 + pjp.getSignature().toShortString());%0D%0A            Object%5B%5D args = pjp.getArgs();%0D%0A            HttpServletRequest request = (HttpServletRequest)args%5B0%5D;%0D%0A            if (request.getHeader(%22AntiBot%22) == null) %7B%0D%0A                logger.info(%22Botting request from %22 + request.getRemoteAddr() + %22 found. Banned!%22);%0D%0A                HttpServletResponse response = (HttpServletResponse)args%5B1%5D;%0D%0A                response.setStatus(403);%0D%0A            %7D%0D%0A        %7D catch (Exception e) %7B%0D%0A            e.printStackTrace();%0D%0A        %7D finally %7B%0D%0A            pjp.proceed();%0D%0A        %7D%0D%0A    %7D%0D%0A%7D%0D%0A

Add missing AntiBotAspect.java