In CEF there is CefRequestHandler.OnResourceResponse callback with which you could easily intercept all resources being loaded. However this is not exposed in java-cef. You can still do the same using CefRequestHandler.GetResourceHandler, however that would require implementing CefResourceHandler and use for example CefURLRequest, it's a lot of code.