My Java application used in blocking certain websites, when the application is running the websites that mentioned in it must be blocked. So, when anyone trying to reach a certain website from any browser I have to read the URL he trying to reach and compare it with the forbidden websites that stored in my application.
This is my problem, I can't connect the browsers that are in the system with my application. kind regards and sorry for that much talk :)
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
HttpServletRequest currentRequest = (HttpServletRequest) ((ServletRequestAttributes) RequestContextHolder.currentRequestAttributes()).getRequest();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.