Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

Modifying the default block response page

We have ASM policies across several applications in our environment. One of the things we'd like to do is add some additional information to the blocking response page in order to give users more information (basically a help desk number) if they feel they've received a message in error.

We'd really like to be able to add this information to 1 place and have it affect all policies, not have to modify the response page of every ASM policy. Is there a way to do this? Maybe by modifying the default page?

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

You can't modify the default policy. You could script the modification of the custom response in all policies using tmsh and just run the script once to loop through all policies and change them. Also if you have BIG-IQ managing ASM it can be done centrally from BIG-IQ

0
Comments on this Answer
Comment made 4 weeks ago by Effrum 103

Thanks for the response.

I'll definitely look into those to try to simplify it for us. It would be really helpful to be able to modify the response pages centrally.

/edit Looking at the BigIQ options - while it would probably be slightly faster than going to each individual ASM policy, it still doesn't really accomplish the task of "modify once and it takes effect for all". Is there perhaps another method that you're aware of?

0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Hi Effrum,

An other option would be to choose the Redirect URL option for all ASM policies to redirect the user to an external website, e.g. http://www.example.com/blocking_page.php?support_id=<%TS.request.ID()%>;

With this option you have 1 central place where you manage the block page. Based on the Referer header you know from what webpage the user is coming and can decide to show additional or different content.

Leon

0
Comments on this Answer
Comment made 2 weeks ago by Effrum 103

Apologies for the delay, but thank you for the suggestion!

0