Prevent user from download my PDF file on JSP page

I'm developing a web application using JSP, html, and javascript. I would like to prevent user from download my PDF file and only able to open on browser and read.
How can i do that?
Thanks!

opening and reading involves a download.
So i dont think you cant prevent that.

Similar Messages

  • Web Gallery: Preventing Users from Downloading Photos

    Hi,
    Ive recently uploaded a web gallery (wedding pictures) from iPhoto and I need to secure it. So far Ive password protected the web gallery, so that it is not accessible to the public. Ive also checked the option to prevent people from downloading pictures.
    When I login to the Gallery, I find the "Download" button for each picture is greyed out, but then there is nothing stopping me from right-clicking on the image and saving it to the hard drive. Is there something Im missing here, or is this a bug in the Web Gallery?
    Mark

    Mark:
    As already pointed out there's no way from stopping viewers from taking screenshots of your photos. You can, however, add a watermark to your photos to identify the owner. You can use an image editor like Photoshop Elements (used in the example) or one of the many watermarking applications available. Go to VersionTracker.com and do a search for watermark to find the various candidates.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Prevent user from opening an applescript file

    Greetings,
         I have written an Applescript for use by the User to change file permissions on folders or files they get from clients from outside our company.  The permissions of these files denies the User from opening the files and work with them  The script I wrote will change those permissions to Read/Write but also contains Administrator information with regards to Admin Name and Password.   The script runs just fine.
         Where my problem arises is I cannot find a way to prevent a User from using the Applescript application on their workstation to open my script and view the Admin name and Password.  What I need to happen is to have the script run when the User places a file on the icon, but not allow a User to open the script to see the coding.  I'm really new to Applescript and I figure i am missing something.  Thanks in advance for any advice.

    Are these items downloaded into the same folder in each user account?
    That part is reliably the same or are users involved choosing the save location?
    Frankly I'd scrap Applescript - it is a pain for anything involving admin privs & normal users.
    Option 1…
    Stick a task into roots crontab to chmod/ chown that location every 5 minutes or so!
    If you want to be smart about it check if the perms are in a mess before you fix them. A shell script can do this. Obviously you need to check the path to give the correct user the ownership etc.
    Option 2…
    Set a launchd job to watch a specific folder & run a command when items are added - like folder actions without the crappy Applescript part
    https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/ man5/launchd.plist.5.html#//apple_ref/do…
    It would need to be a system level job since the user doesn't seem to have enough permission.
    If you need to use an application to allow the user to have control an Applescript droplet could move the items to the watched folder, where the launchd job resets the perms. Then the items could be moved elsewhere via the script that runs from the watch job.
    It all seems kinda kludgy, but sometimes that is how OS X is!
    Perhaps this is outlandish & impractical but so is manually fixing stuff like this every time someone calls
    Any thoughts?

  • Prevent user from downloading data

    Hi folks,
    I am currently exploring SQL Developer. I have this problem and hope u folks can help me.
    Currently, I am trying to prevent users that have access to the database from downloading ALL the data in the database, esp in the data window of the tables, user can easily right click and export the data into csv files etc. I was wondering if this can be disabled.
    Would it be disabled from the software i.e. sql developer or has it got something to do with the role and privileges that I need to set with the account??
    Any advice is appreciated.
    Thanks!

    The first question that comes to my mind is that if you are that worried about your users accessing data and copying it off then is SQL*Developer really a tool you want to be giving them access to. As others have stated, if the users have access via SQL*Plus then they can spool off the data to files. There are many other tools they could use to extract the information (MS-Access, MS-Query (part of Excel), JDeveloper &c, they could even write their own tool if they so wished).
    You either trust your users in which case SQL*Developer isn't a problem or you don't which means that you have to deal with more issues than just SQL*Developer. If there are certain fields that you don't want your users to be able to see but they need to access the table then you could, for example, deny them access to the table but create a view that excludes the fields you don't want them to see or use encryption/obfuscation from your application on those fields.
    Also, if you don't trust your users, you really need to talk to your HR department about hiring practices and salaries. Your company may be lax in it's hiring (hiring untrustwothy people) or not paying your staff enough (the less you pay yopur staff the easier they are to tempt).
    Stephen

  • AIR Preventing me from opening a pdf file

    When I receive pdf files via email or attach one of my own pdf files to an email, I am unable to open the pdf file. I get a message indicating 'Please wait while Adobe AIR setup is being executed', then the bar that says 'processing Adobe AIR'. It reaches 100% and then nothing else happens. The pdf file is not opened. I've tried uninstalling and reinstalling Adobe AIR, and nothing changes. Then I tried uninstalling AIR and not reinstalling it, and all my pdf files still get the same message 'Please wait while Adobe AIR setup is being executed'. When I publish my WordPerfect documents to pdf, I can open the pdf file using Adobe 9.3 because it gives me the option to "open with"; however, pdf's that I receive via email, I'm not given the option of what program to open it with. My only option is to "open". I need to either get rid of the annoying AIR so that all my pdf files open with Adobe 9.3, or get the AIR to work properly. Can anyone help???? Thanks!

    This forum is for AIR Help, not help with the AIR application. AIR is a development tool that allows developers to create applications. One such application being a means of providing the help for software. So it is AIR that is causing your problem, not AIR Help.
    With that said, I happened to see someone who had a bad install of AIR that was causing a different problem, namely every time the PC was booted Explorer opened to the folder with the setup file. In the end I installed it and then uninstalled it. Then did the same with Acrobat and all was well.
    Maybe you can find the AIR setup or you can look in Add / Remove Programs and work from there.
    Beyond that I suggest you ask in the correct forum, either Acrobat Reader or AIR, most likely the first.
    See www.grainge.org for RoboHelp and Authoring tips
    Follow me @petergrainge

  • How do I block limited users from downloading or installing files?

    Hello and greetings from the Sooner state!  I am embarrassingly seeking your advice and guidance on a topic I should have a solution for given my background as a certified A+ Technician and Cyber Security Technician in the United
    States Air Force.  The issue is this, I have a user (my son) who continues to find ways to download and install malware via video online games or uncommon search engines (Vosteran), something else he has managed to do…   To this date I have
    ensured that he is logging on to his Windows 7 computer utilizing a Limited User Account, I have locked down his machine utilizing a combination of iolo System Mechanic,  Microsoft Family Safety (my primary parental control software),  Microsoft
    Security Essentials none of which block the installation of software at the Limited User level.   If you look at the Top 3 Parental Control suite of software there is nothing that includes such a utility as part of their software package that prohibits
    or bars your kids from installing software on their own.  I know that a Limited User is supposed to be restricted from installing any software but this isn’t the case with my Son.  What would your best advice be for me in this situation?  Again,
    I should have this info down pat yet I do not (that’s what retirement does to you, LOL)…   Many thanks in advance for your help!  Peace!!

    Hi Doc Bryan,
    If you are using consumer versions of win7 (higher than home premium), you could use the Group policy to impose various restrictions on installing and running software and those will apply on standard users.
    To prevent Installation of software by using windows installer.
    Run gpedit.msc to open group policy editor.
    Navigate to Computer configuration/Administrator Templates/Windows Components/Windows installer/Prohibit User Installs
    Enable this policy and change the “User Install Behavior” option value to “Hide User Install”.
    To prevent downloading files from Internet Explorer
    Navigate to User configuration/Administrator Templates/Windows Components/Internet Explorer/Internet Control Penal/Security Page/Internet Zone/Allow file downloads
    Enable this policy and change the “Allow file downloads” option value to “Disable”.
    Note: Since for Windows it is hard to define that which exe file is installation or execution of the program, there is always some way can walk around this Group policy such as hard disk copy program or using third party Internet browsers
    to download.
    So you also need Parental Controls feature(also apply to home edition)
    and you can find it in control panel, choose the standard account to which you want to apply the control. Now click ‘Allow and Block Specific Programs’ link and choose ‘[User] can only use the programs I allow’ option.
    After analyzing, it will show you the list of all programs installed on the system which can be used by the standard user. Hit the Check All button to allow all programs, then find and uncheck Chrome and other apps that you want to restrict. When done, hit
    OK.
    If your kids want to use a certain software and you find it safe to use. Log inside your Administrator account and install it from there. While installing, please select “Install for All Users” when prompted. Doing this will install the software for all
    users.
    Regards

  • I want to prevent users from saving a PDF form with the data filled in

    I am using Adobe Acrobat X Pro to create a fillable PDF form.  When I open my form in Acrobat Reader XI, it says right at the top "You can save data typed into this form."  I have NOT saved it as Reader Extended PDF. This is a form that will be emailed to recipients or available to download from our website as a PDF so they can fill it out on their office computer, print with the data filled, and then fax or snail mail to us. (No online or email submissions.)  We do not want them to accidentally save confidential information on the form that will be visible to the next user when they close it, or to Save As and keep the filled form.
    I know there are still ways to do it if someone really wants to, like printing it to PDF or using a PDF software other than Reader, but these are not folks who would have time or intention to do such a thing.  99% of them will be using some version of Reader, probably a much older one than mine.  Thank you for any advice!

    Thank you Gilad and George for trying. I just discovered both of you have replied to this issue here - http://forums.adobe.com/message/5881211#5881211 - which is my exact same situation; I am also a regional health care agency trying to provide forms for health care providers! (It's a small world.) I just didn't find this thread the first time I searched for answers.  I will investigate the JavaScript reset Form statement. Thanks!

  • How to prevent users from saving and emailing intranet documents externally

    Someone in our company needs to upload a pdf to our sharepoint intranet site for internal-only use. How can I prevent users from downloading it and emailing it externally?
    I mean, a user could screenshot it I guess, but I need to give management a due diligence answer.

    You would need to look into a reverse proxy/firewall that had the ability to block access based on content. This isn't something you can accomplish out of the box with SharePoint (even with AD RMS).
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How do I prevent users from caching their sign in credentials on OWA page

    I am using Forms based authentication and want to prevent users from caching their credentials on the OWA page.
    Is there an easy way?

    Hi,
    Forms-based authentication enables a sign-in page for Outlook Web App that uses a cookie to store a user's encrypted sign-in credentials in the Internet browser. So this authentication method will force to cache their credentials in the Internet
    browser for some time. The workaround is what Willard Martin suggested.
    Refer from
    http://technet.microsoft.com/en-us/library/bb430796(v=exchg.141).aspx
    Best Regards.

  • Prevent Users From Saving PDF?

    I have created a PDF that has confidential information in it.  I do not want to give users the option of being able to save the PDF to their computer.  Is there a security setting to prevent viewers from saving a PDF?

    No, that's technically impossible. If you want them to be able to see it,
    the file must first be saved on the local machine.

  • How to download a .pdf file from a JavaMail application?

    hi to all,
    iam unable to download a .pdf file from a mailserver using
    my javamail application.i have downloaded all kind of files except .pdf.
    my code snipnet:
    public static void dumpPart(Part p) throws Exception {
    //     if (p instanceof Message)          dumpEnvelope((Message)p);
              System.out.println("CONTENT-TYPE: " + p.getContentType());
              Object o = p.getContent();
              if (o instanceof String) {
                   System.out.println("This is a String");
                   System.out.println((String)o);
                   } else if (o instanceof Multipart) {
                        System.out.println("This is a Multipart");
                        Multipart mp = (Multipart)o;
                        int count = mp.getCount();
    System.out.println("****************************************");
    System.out.println("count" + count);
    System.out.println("****************************************");
                        for (int i = 0; i < count; i++){
                             System.out.println("CONTENT-TYPE: " + p.getContentType());
                             dumpPart(mp.getBodyPart(i));
                        } else if (o instanceof InputStream) {
                             System.out.println("This is just an input stream");
                             InputStream is = (InputStream)o;
                             String filename=System.currentTimeMillis()+".exe     ";
                             FileOutputStream fos=new FileOutputStream(filename);
                             int c;
                             while ((c = is.read()) != -1)
                                  //System.out.write(c);
                                  fos.write((char)c);
    }//dumpPart
    what's wrong with this code?
    Nagaraju.G

    fos.write((char)c);Converting the byte to a char is unnecessary and probably harmful. Just do this: fos.write(c);

  • How to download a pdf file from the server from an strut application?

    Hi,
    I wan to download a pdf file from the server side to local system. Please help me how i use the down load option.

    Read up on the Struts download action [1].
    And next time, please post in the relevant forum, one of the web-tier ones [2].
    [1] http://wiki.apache.org/struts/StrutsFileDownload
    [2] http://forum.java.sun.com/category.jspa?categoryID=20
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    ----------------------------------------------------------------

  • Downloading a pdf file from javascript() window does not work

    PDF download/view works fine where the link points to actual pdf file. But I have problem downloading/viewing pdf files that are loaded using javascript(), e.g. bank statements and such. When I click a link FF downloads a file which either has no extension or has a different one (not .pdf).
    Later I realized that I can manually rename the downloaded file to insert .pdf extension and open it in reader.
    How can I solve this? I don't have this problem when using IE or Chrome.
    Thanks

    Could you try a new profile?
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer some files from an existing profile to the new profile, but be cautious not to copy corrupted files to avoid carrying over the problem.
    http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    If it still happens with a new and clean profile then the most likely cause is that you have security software that is blocking this JavaScript.

  • How do i download a pdf file from an e-mail? save to computer did not work.

    How do i download a pdf file from an email? Save to computer did not work.

    What is your operating system?  What is your email client?  What exactly means "did not work"?
    Most email clients I know have a 'Save Attachments' functionality; did you try that?

  • How do I get Firefox from "saving" to Downloads EVERY PDF file I open ??

    Greetings,
    New to Firefox. Running Mac Leopard and needed Firefox because a business website running a business replay podcast did not recognize Safari.
    So far so good. I actually prefer Firefox to Safari now.
    One little thing. Every time I browse the web and open a PDF file it "automatically" sends it to my download file and I therefore have the file "saved" . WELL, I don't necessarily want to save to my download file every PDF file that I open. I just want to open a PDF file, do a quick read and move on to more browsing. How do I stop Firefox from saving to my downloads every PDF file that I open? Is there some kind of setting I can adjust?
    Thanks.

    Lexonex wrote:
    You da man...I've never done an "Ad-On". I downloaded the recommended "Ad-On" as you suggested. The program fixed my issue...NOW, I can simply open a PDF file without it automatically going to my downloads.
    THANKS
    If you ever need to download a list of things, firefox can select a vertical column using the Cmd key, unlike Safari.
    I have DownLoadThemAll installed and I can select a vertical group of files, right-click them and using DLTA, I can DL them to any location. With Safari, I would have to do this one-at-a-time.
    Just another reason I like FF for many purposes.

Maybe you are looking for

  • How to edit videos frame-by-frame and export in H264?

    I wish to edit some videos and then export them in H264 so I can use them on a website. I have tried to edit with iMovie 08 but can only edit second-by-second. I want to edit frame-by-frame ie to the millisecond. And it appears that iMovie 08 does no

  • Direction not available error

    Hi I experience error while using maps & selecting two destinations (start & end). The error message I get is 'Direction Not Available (Directions could not be found between these locations). How do I get solution for this?

  • Missing iPhoto Thumbnail Images in iMovie Project Library

    Okay, here goes... I'd created a short movie and have it in iMovie's project library. The movie included video footage from a dv camera as well as video from my digital photo camera. I recently reorganized and merged several events folders in iPhoto

  • How to test i-phone free application before it will go to approval mode?

    Hi Everyone, I want to upload my free application in i-tune connect for testing purpose in real device.How to test this application before it will go to the approval? I have admin and legal rights and also signed the free application contract. Please

  • Is there a freedom to talk on this forum ?

    I have a topic, http://discussions.apple.com/thread.jspa?threadID=1617981&tstart=0&start=30 in the hot discussion now and Apple moderators just remove most important posts and also banned me from posting any responses on the topic with reasons of, *A