|
Home > Archive > WebSphere Application Server > March 2004 > about how to filter the URL
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
about how to filter the URL
|
|
|
| Dear All,
When some users access URL like http://www.test.com/images/img1.gif, they can see the image; however, I don't want users to try it, I hope the page can automatically redirect to official website like http://www.test.com. Is there any idea about how to blo
ck it or filter it by programming tricks or WAS parameter settings? Any suggestions are welcome...:>
Thanks for your warm hand.....
wip
| |
|
| It depends on where your images are located.
If your images are located in your .WAR file, then you can change the
"file serving" flag to false when you deploy your application.
If your images are located on your webserver (i.e. IBM IHS or Apache),
then you will need to modify your httpd.conf file to prevent access to
that directory.
| |
| David Artus 2004-03-24, 3:34 am |
| But in which case how with the image ever get displayed in the browser
in the intended context of the page? Surely if it's going to be served
then the URL needs to work? And if it isn't then take it out of the WAR.
Phill wrote:
> It depends on where your images are located.
> If your images are located in your .WAR file, then you can change the
> "file serving" flag to false when you deploy your application.
>
> If your images are located on your webserver (i.e. IBM IHS or Apache),
> then you will need to modify your httpd.conf file to prevent access to
> that directory.
|
|
|
|
|