[HELP]don't allow access folder in web root, but allow dowload files in it?

Hi all!
I got a big problem, at least ... with me .. uhm ... I have a web application, which I allow user upload file on, I save that file in a folder below the web root, I mean ... www.mywebapp/files/uploadFile.zip <--- something like that...
I don't want user to able to access files folder, but ... I allow who has already login as admin of my web app can download that files :( ...
how can I do that ... plz help me :(
thanks in advance :(

Put the "files" folder under the WEB-INF directory.
Nothing can access the WEB-INF directory directly.
Then write a servlet that will get requests, and send back the file.
Alternatively you can use web.xml security constraints, to define who can/can't access the files.

Similar Messages

  • Does Dream Weaver allow access to localised web servers?

    Does Dream Weaver allow access to localised web servers, to test scrips?
    Thanks in advance

    Of course.  I use WAMP server.  Some people prefer XAMPP or MAMP.  Whichever local testing server you use, be sure to put your site folder inside the local server's default web directory. On Wamp that is www.  XAMPP & MAMP, use htdocs.
    C:\wamp\www\yourSiteName
    C:\xampp\htdocs\yourSiteName
    Site > Manage Sites > Edit Site...  See screenshots.
    Advanced
    Final
    Nancy O.

  • HT1311 I have two iTunes accounts an. Am trying to get rid of he primary one because I don't have access to that email anymore but it seems impossible?

    I have two iTunes accounts an. Am trying to get rid of he primary one because I don't have access to that email anymore but it seems impossible?

    Just cahnge the e-mail account asssociated with the account.  There was no need to start another account.
    You cannot delete and account, nor would you want to.  All purchases made with an account will always be tied to that account.

  • I can access my employers web site, but when i try to access the employees section of the web site it says that i need netscape, can someone help

    Hi, My employer has a web site & as a part of the service to the employees, the employees can access personal details through the web site. I can access my employers web site not a problem, BUT - when i try to access the employees part of the web site it tells me "This browser is not supported.
    You must be running Netscape 7.1 or greater."
    Can someone please help?

    It is possible that the server gets confused by the user agent that is modified by your Ubuntu distribution and adds Ubuntu/10.10 (maverick)
    Mozilla/5.0 (X11; U; Linux i686; en-AU; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13
    You can try to reset the pref general.useragent.extra.* that add that part.<br />
    See [[Web sites or add-ons incorrectly report incompatible browser]]

  • Website requires Silverlight 4 (4.0.60831.0). How do I get Firefox to allow access to the now outdated but required plugin? Thanks

    I used to have Firefox 18.0.1. Now have Firefox 19.0.2. I use a website where Silverlight 4 is required. Silverlight 5 is incompatible with the website. Firefox 18 allowed use of Silverlight 4. Firefox 19 has disabled the plugin as outdated. How can I force acceptance of Silverlight 4?

    Have you tried uninstalling the current version of Silverlight and installing version 4? What happens when you try to install version 4? What is the error message you are receiving?

  • Please Help!!  I can rip cd to Nano but can play files only on my computer.

    Hello. I have a new iPod Nano and a new Philips compact stereo which can rip CDs directly to mp3 players. When I follow the procedure, all goes well, but when I try to replay the tracks on the iPod, they don't appear in any of the folders. Then, when I connect the iPod to my computer, the files appear and I can play them through the computer itself. I contacted Apple and they say that only music directly from iTunes is compatible. I need to know either how to convert the files to be compatible with iTunes or to get the iPod to accept these files as ripped. I hope I have used the correct terminology to describe my problem but if not, let me know and I'll try to clarify what's happening.
    The Apple support person I spoke with told me to check this forum for help. She figured someone out there has been able to do this successfully. Thanks for any assistance.
    HP   Windows XP  

    You can play standard MP3s on your Nano... but you MUST use iTunes to MANAGE your music. You don't have to use any special "iTunes compatible" format. What it sounds like you did was simply drag the music files directly to your Nano... or ripped them directly to your Nano using it as an external drive. The software in the Nano will not allow you to do that. When you connect it to your computer, your computer sees it just as an external drive and will let you play the files just as you would on any external drive. You should copy the files to your iTunes library... or just let iTunes manage your music for you. You will then be able to sync your music to your Nano. Basically, you have to use iTunes to put your music on your Nano.
    Message was edited by: JoeyR
    Looks like Rich beat me to it... but I'm glad my post was pretty much along the same lines as such an esteemed poster!

  • Disable folder creation in root but not in subfolders

    Hello everybody, we have a shared network drive and i have already set the structure of the root folders in C:\. I want to restrict users to create a new folder or move  a file in the root directory C:\ but to be able to create, move etc in the subfolders
    of c:\
    How is that possible?

    You can configure options like those from within the Advanced security settings options.
    Go into the properties of C:\, Security tab and then click Advanced. By default permissions are configured for "This folder, subfolders and files", but within here you can add permissions for subsets of those.
    Add a new permission for your required group with the restricted permissions you require for C:\ and set it to "This folder only". Then add another permission for the same group but this time for the less restricted permissions you want them to have elsewhere,
    and set that to "Subfolders and files only".
    They'll then have the higher permissions for subfolders, while allowing you to restrict what they can do in the root of c:\ (with the obvious exception of any folders which are set not to inherit their permissions from the root of C:\).

  • HELP! Moved website from one mac to another but lost some files...

    I recently purchase an iMac (my wife already owns a MacBook)... I had created a website using iWeb and transferred the DOMAIN files to my new computer... I worked on the website for several hours last night, published it to a folder and everything looks fine.. HOWEVER< this morning I tried to open iWeb and some problems are occuring...
    iWeb opens and starts to pull up my website to work on but ALL of the necessary files are reportedly missing... the interesting thing is that all of the files are actually on the desktop in the Site folder.. hmmm... I copied the domain file to Aplpication Support/iWeb/ - was this not correct?
    I am hoping that this is an easy fix.. maybe I just need to have the domain file in the same folder as the files it is looking for...
    any thoughts?
    thanks in advance for your help...

    You can keep the domain file anywhere you like as long as it is in its own folder.
    If its not in the default location -Home Folder/Library/Application Support/iWeb- all you do is double click the domain file to launch it in iWeb.
    Try quitting iWeb, delete the preference file - Home Folder/Library/Preferences/com.apple.iWeb.plist, restart your Mac and run Disk Utility to repair permissions.

  • "Preview in Firefox" for pdf web pages but not for file links ?

    Hi,
    I like the preview pdf in Firefox feature but I seem to be having a bit of a problem with it.
    In options>applications I have the pdf entry set to preview in Firefox and when I click a link to pdf webpages they load in Firefox just fine.
    The problem seems to be with download links to pdf files. When I click a link to a pdf file the only options are to save the file, open with my pdf viewer (Foxit Reader) or other. Preview with Firefox is not an option any more.
    I've been trying everything to get that option back.
    I know I have seen it there before but I've no idea how it disappeared.
    Any suggestions?

    The build-in PDF Viewer only works for files that are send as application/pdf and not for other MIME types.<br />
    So it won't work for links that open a download dialog and you would need an extension to open such a file as application/pdf.
    *Open in Browser: https://addons.mozilla.org/firefox/addon/open-in-browser/

  • HELP!  Can not access Web Service

    I get error below if webservice asmx and URL of domain do not
    match...
    they both have to have
    http://www or no 'www' in order to run...
    otherwise I get the following error below BUT my cross domain
    is at
    the root of the webserver!! what am I doing wrong???:
    [RPC Fault faultString="Security error accessing url"
    faultCode="Channel.Security.Error" faultDetail="Unable to
    load WSDL. If currently online, please verify the URI and/or
    format of
    the WSDL
    http://www.velocitytrading.net/VTOrdEnt.asmx?WSDL)"
    at mx.rpc.wsdl::WSDLLoader/faultHandler()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::dispatchRpcE\
    vent()
    at
    mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::faultHandler\
    at mx.rpc::Responder/fault()
    at mx.rpc::AsyncRequest/fault()
    at DirectHTTPMessageResponder/securityErrorHandler()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/redirectEvent()
    CROSS DOMAIN
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM
    http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
    <allow-access-from domain="
    http://velocitytrading.net"/>
    <allow-access-from domain="
    http://www.velocitytrading.net"/>
    <allow-access-from domain="*.*"/>
    </cross-domain-policy>

    Hi CJSteu,
    Can u add this crossdomain.xml in ur server bin and dtd also
    if needed and check the server is able to invoking the
    crossdomain.xml by
    url ex:
    http://localhost:7001/crossdomain.xml
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM
    "cross-domain-policy.dtd">
    <cross-domain-policy>
    <site-control permitted-cross-domain-policies="all"/>
    <allow-access-from domain="*" to-ports="*" />
    <allow-http-request-headers-from domain="*"
    headers="*"/>
    </cross-domain-policy>

  • File folder in web link

    As you know, we can define URL in web link assignment block . So  user touch the web link can direct to the URL. But now the user has a new requirement. User want to put the path of share file folder in web link, but should not  work.How to map the path of share file folder into URL? or how to put the path into web link? Thanks.

    Hi Ben,
    Yes, there are definitely security implications. It works ok with IE and FF if you are opening local folders. It won't work if you're trying to access files/folders from remote servers - we tried to open folders from other servers on our domains and it wouldn't do it.
    You can, as you say, edit settings to get around this (and, yes please, I'd like to see what settings you're changing). You can also "log in" to the remote system using login/password parameters in the url - but, as you quickly realise, this is even less secure!
    In some instances, you can get around it by changing the url slightly:
    file://localhost\c:/etc
    This sometimes tricks the browser into thinking you're accessing files from the local machine. Another alternative, which we couldn't use, was to map a drive on your machine - again, this only worked sometimes.
    I could not find a solution that worked in all situations. Fortunately, for us, we got our users to login to our networks remotely using F5 and this allowed access to files.
    Regards
    Andy

  • My iPad is disabled, connect to iTune, but when i connect to iTune, iTune showing to allow access please respond on iPad

    My iPad is disabled, connect to iTune, but when i connect to iTune, iTune showing to allow access please respond on iPad. but in long time it is not showing on device list of iTunes.
    can any one help me.

    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    You may have to do this several times.
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just canceling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
    ~~~~~~~~~~~~~
    iPad not appearing in iTunes
    http://www.apple.com/support/ipad/assistant/itunes/
    iOS: Device not recognized in iTunes for Mac OS X
    http://support.apple.com/kb/TS1591
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    iTunes for Windows: iTunes can’t contact the iPhone, iPad, or iPod software update server
    http://support.apple.com/kb/ts1814
    windows 8.1 itunes wont recognize ipad
    https://discussions.apple.com/thread/5697247?start=0&tstart=0
    Look at the solution in this link
    https://discussions.apple.com/thread/5697247?start=75&tstart=0
    iTunes for Windows: Device Sync Tests
    http://support.apple.com/kb/HT4235
    IOS: Syncing with iTunes
    http://support.apple.com/kb/HT1386
    Apple - Support - iPad - Syncing
    http://www.apple.com/support/ipad/syncing/
    iTunes 10.5 and later: Troubleshooting iTunes Wi-Fi Syncing
    http://support.apple.com/kb/ts4062
    iOS: “Not enough free space” alert when trying to sync
    http://support.apple.com/kb/ts1503
    You may need to delete iTunes on your computer and then reinstall.
    How To Completely Uninstall and Remove All Traces of iTunes
    http://zardozz.com/zz/2008/04/how-to-completely-uninstall-and-remove-all-traces- of-itunes.html/
    Wi-Fi Sync Not Working? Here’s How to Fix it for All iOS Devices
    http://osxdaily.com/2013/02/17/wi-fi-sync-not-working-fix-ios/
     Cheers, Tom

  • When I try to sync my iPod to iTunes it says I don't have access privilege

    I bought some songs on my iTouch, but when I try to sync them to my computer it says I don't have access privileges to do so, but it only works when it try to sync apps, what do I do?

    Did you try authorizeing your iTouch on iTunes under the store tab?

  • Sharing - Remote Management - Allow Access = Broken

    After upgrading to Mountain Lion, I was unable to connect to my new Mountain Lion remote desktops.
    The upshot is that the Sharing -> Remote Management -> Allow Access settings are not AD/LDAP aware and it only works with local users now.
    I had to turn off Remote Management and use Screen Sharing, where Allow Access is fully aware of local and non-local accounts.
    Remote Managment -> Allow Access:
    Screen Sharing -> Allow Access:
    Your other option is to "Allow All Users" but I didn't want to do that.

    I use the Vine Server for reduced color support. In my case it is my Mom's iMac 300 miles away and she has a slow DSL connection.
    My experience with Mac OS X VNC server and client are that they work together very well, however, they do not play as nice with 3rd party clients and servers.
    Since you are using Windows and by definition a 3rd party client RealVNC, I would suggest you install Vine Server. You can even configure it so it listens on port 5901 so it does not conflict with the Mac OS X VNC server.
    <http://www.macupdate.com/info.php/id/11283/vine-server-%26-viewer>

  • How to set up web root on mac os 10 cf 7 install?

    I've finally gotten ColdFusion 7 up and running with Jrun 4
    on a Mac running 10.4. Now I have a silly problem. Going to
    http://localhost:8080 doesn't show
    a web site. Neither does
    http://localhost/. I know I'm
    supposed to define the web root, but how do you do that on a mac?
    I'm using the built-in server (not Apache) and therefore there
    doesn't seem to be a "conf" directory to go into to set the
    virtuals up. Also, on a mac, where do I find the hosts file???
    Thanks. Sorry if this was answered before, but I've been
    searching for an hour now and nothing comes up.

    Just a quick "bump" to see if anyone knows the final step in
    setting up a site with CF 7 on a Mac. I need to know the equivalent
    of the Apache VirtualHost and DocumentRoot settings for a
    "Built-In" JRun4 configuration. Where are these settings? How do I
    manipulate them? Can I set up multiple sites this way?
    Thanks.

Maybe you are looking for

  • RFC destination BW could not be created in the source system R3073

    I'm creating a source system for our BW (version 7.0) dev client.I'm linking it to our R/3 4.7 QA client. From RSA1 I select create source system, I enter the system information and in the next screen I'm prompted to log on as system administrator. I

  • Can't install Itunes 9.2 "Newer Version of Quicktime"

    I got a new itouch last week. Worked fine. Then went to update software to new OS (maybe Apple could have put this on a brand new one instead of older OS?!). Message said i needed Itunes 9.2. Went to update and got error "newer version of quicktime i

  • Allowable Characters in the file names within Oracle iFS

    What characters are allowable in file names within Oracle iFS? Are slashes (/ \) possible? Thanks, Sai Mummalaneni.

  • Windows xp data dump

    when i connect my iphone to my computer, the "found new hardware" message appears and then about 3 seconds later my screen turns blue and a data dump happens, i have to restart my computer to get things back up but I can not connect my iphone to my c

  • I cannot open my new and old e-mail

    I seem to have lost the ability to open new and old e-mail.I click on the individual e-mail and it does not display anything.