Reply To: Feature – query-parameter masking

Splash Forums Rewrite Users Feature – query-parameter masking Reply To: Feature – query-parameter masking

#26397

This is definitely possible with Rewrite. You just have to create a rule that performs the transformation. You could for example create random strings and maintain a mapping which resolves the real URL from the random string.

However, I don’t think that it makes sense to include a concrete rule in Rewrite as many of the details depend on the specific usecase.

If you want to create such a rule yourself, do something like this:

.addRule()
.when( Direction.isInbound().and( Path.matches( "/private/{token}" ) ) )
.perform( new HttpOperation() {
  @Override
  public void performHttp( HttpServletRewrite event, EvaluationContext context ) {
    
    String realUrl = ...;
    
    Forward.to( realUrl ).perform( event, context );
    
  }
} )

I