Forum

This content is now out of date.

Visit Our Community

Secure specific pages – Hide or Redirect Info.jsp and more!

This guide will show you how to completely lock down specific pages or redirect specific pages unless the user is logged in. This can be used to completely hide info.jsp or require the user to be logged in. This guide can be used for any of Yellowfin's URLs and is not specific to info.jsp.

Completely Lock Down Pages:

1. Ensure you are running Yellowfin 7.1 20151026 or newer.

2. Shut down your Yellowfin Server.

3. Edit your "web.xml" file located in your Yellowfin Installation then - "appserver/conf/."

4. Add the following to the bottom of you web.xml file, just above the final "" tag:

[code]

RestrictRequestFilter
com.hof.adapter.RestrictRequestFilter

SkipPages
info.jsp



RestrictRequestFilter
/*
[/code]

5. Inside the "param-value" tag is where you specify the pages you want blocked. For example "info.jsp". You can add multiple by listing others, separating them with a comma.

6. Save your web.xml file and restart Yellowfin. Test to ensure you have blocked the page correctly.


Redirect Pages for User who are not logged in:


1. Ensure you are running Yellowfin 7.1 20151026 or newer.

2. Shut down your Yellowfin Server.

3. Edit your "web.xml" file located in your Yellowfin Installation then - "appserver/conf/."

4. Add the following to the bottom of you web.xml file, just above the final "" tag:

[code]

RedirectFilter
com.hof.adapter.RedirectFilter

restrictedURL
/RunReport.i4,/RunDashboard.i4,/info.jsp


redirect
http://myyellowfininstance.com



RedirectFilter
/*

[/code]

5. Inside the restrictedURL "param-value" you can specify the pages that users MUST be logged in to see.

6. Inside the redirect "param-value" is where you specify the full URL of the page you want your users to be redirected to if they are not logged in. Please change "http://myyellowfininstance.com" to your required page.

7. Restart Yellowfin and test your redirects are working.

Kind Regards,
Cadell.

Thanks for trying Yellowfin

Please complete the form below to request your copy of Yellowfin today.