Redirct to error page

Asked by Jin Jin Ru

Hello.

I'm going to show redirect page to users if I blocked specific URLs using libeCAP.

How I can solve this problem?

Question information

Language:
English Edit question
Status:
Solved
For:
eCAP Edit question
Assignee:
No assignee Edit question
Solved by:
Alex Rousskov
Solved:
Last query:
Last reply:
Revision history for this message
Best Alex Rousskov (rousskov) said :
#1

I believe you have two options:

1) Call host::Xaction::blockVirgin() and configure your host application to return a redirect response as the block message. Consult your host application documentation or support on how to configure block messages. For example, Squid uses deny_info in squid.conf for that.

2) Use request satisfaction mode to return the redirect response in REQMOD.

The first option simplifies your eCAP adapter code by making the host application responsible for redirection response configuration and generation. The second option allows you to control all aspects of the redirection response in the adapter itself.

Revision history for this message
Jin Jin Ru (myhao840430) said :
#2

Thanks Alex Rousskov, that solved my question.