Get outta my directory!

Through an independent host, I have set up a site to host files for my Web site. I can upload them through the FTP program built into my iBook. Uploading and accessing the files is not my problem. This is:
Once an outside party accesses the file through my site, by deleting the file name, they can gain access to my entire directory.
example: www.mydirectory.com/filename.jpg
delete "filename.jpg" and you have access to my entire directory.
How do I prevent this?
thanks!

Hi
It depends what kind of hosting your FTP site has. If it uses Apache, your host can use .htaccess files to forbid directory listings using this entry:
Options -Indexes
You may be able to create and upload this file yourself, or you may have to ask your hosting service to set it up.
Matt

Similar Messages

  • How can I get the remote directory from an FTPActivationSpec header?

    The header message generated for the oracle.tip.adapter.ftp.inbound.FTPActivationSpec contains the file name, FTP host and FTP port. Is there any way of getting the remote directory as well?
    <schema attributeFormDefault="qualified" elementFormDefault="qualified"
    targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/ftp/"
    xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:FTPAPP="http://xmlns.oracle.com/pcbpel/adapter/ftp/">
    <element name="InboundFTPHeaderType">
    <complexType>
    <sequence>
    <element name="fileName" type="string"/>
    <element name="ftpHost" type="string"/>
    <element name="ftpPort" type="string"/>
    </sequence>
    </complexType>
    </element>
    </schema>
    This is already specified in the activation spec parameters:
    <activationAgents>
    <activationAgent className="oracle.tip.adapter.fw.agent.jca.JCAActivationAgent" partnerLink="ReadFileService">
    <property name="ftpRemoteDir" type="LogicalDirectory">out</property>
    <property name="portType">Read_ptt</property>
    </activationAgent>
    </activationAgents>
    But I don't want to have to add a separate preference parameter to hold the same thing if I don't have to. Alternatively, is there any way of querying the activation agent parameters from within an xpath expression, similar to "ora:getPreference()"?
    Cheers,

    add:
    <element name="directory" type="string"/>
    to the FTP adapter header WSDL

  • BO XI 3.1 : Active Directory Authentication failed to get the Active Directory groups

    Dear all 
            In our environment, there are 2 domain (domain A and B); it works well all the time. Today, all the user belong to domain A are not logi n; for user in domain B, all of them can log in but BO server response is very slowly. and there is error message popup when opening Webi report for domain B user. Below are the error message: 
           " Active Directory Authentication failed to get the Active Directory groups for the account with ID:XXXX; pls make sure this account is valid and belongs to an accessible domain"
          Anyone has encountered similar issue?
       BO version: BO XI 3.1 SP5
       Authenticate: Windows AD
    Thanks and Regards

    Please get in touch with your AD team and verify if there are any changes applied to the domain controller and there are no network issues.
    Also since this is a multi domain, make sure you have 2 way transitive forest trust as mentioned in SAP Note : 1323391 and FQDN for Directory servers are maintained in registry as per 1199995
    http://service.sap.com/sap/support/notes/1323391
    http://service.sap.com/sap/support/notes/1199995
    -Ambarish-

  • How can I get the working directory of a project from an Annotation Processor in Java

    I am writing an annotation processor in Java and in this annotation processor I want to be able to find a file in the Project hierarchy of the project on which I am using this annotation processor. Through the annotation I can pass in the path of the file I am searching for relative to the project root but i cannot retrieve the project's working directory.
    Let's say that the processor is MyCustomProcessor and I am using it on the project MyProject. I want to be able to access(read) a file (a properties file) from the project structure of MyProject from the "process" method of MyCustomProcessor.
    I have read this link Eclipse - Annotation processor, get project path but when I use their solution I get a null returned from the StandardJavaFileManager.getLocation(StandardLocation.SOURCE_PATH) call.
    Some more details regarding the implementation:
    MyAnnotationProcessor:
    @SupportedAnnotationTypes(value = {"MyAnnotation" })
    @SupportedSourceVersion(RELEASE_6)
    public class MyCustomProcessor extends AbstractProcessor {
    @Override public boolean process(final Set<? extends TypeElement> annotations, final RoundEnvironment roundEnv) {
    for (final Element element : roundEnv.getElementsAnnotatedWith(MyAnnotation.class)) {
    <!-- Here is where I would like to get the working directory !-->
    More details about the testing and development environment: Eclipse Kepler, JRE 1.7.
    If you need more details just ask.

    There is an identical post with an answer located at this link.

  • Get the file directory/location using JFileChooser

    Dear,
    How to get the file directory and it location with using JFilechooser after select the indicate file?
    Thanks

    There is an example at the top of JFileChooser's doc.
    http://java.sun.com/j2se/1.4.1/docs/api/javax/swing/JFileChooser.html

  • Unknown error: there was a problem getting the status directory!

    Hi, Folks,
    I followed the instructions on this page :http://deimos.apple.com/rsrc/doc/iTunesUAdministrationGuide/AddingContent/chapte r_12_section_6.html#//apple_ref/doc/uid/AdminGuide-CH22-SW5, and try to upload a file to our university's Itunes U site.
    I believe got every step right, but server return a error message: "unknown error: there was a problem getting the status directory". Any suggestion or information will be helpful.
    Thanks
    Youjun

    Forgot to mention.  ours is a public site but the collection I am trying to access is not published.
    Youjun

  • Could not get system landscape directory client - NWDS 7.31 SP 09

    Hi Experts,
    We are unable to import development configurations from NWDI 7.4 to NWDS 7.31 for one of the developer's id. Other developers are able to import the
    configuration successfully in NWDS and are able to create projects without any issues. In fact, I am able to import the development configurations from his Id on my machine.
    The error message that is appearing is as follows: Could not get system landscape directory client.
    PFB the NWDS logs:
    null
    Error
    Tue Jan 06 12:48:58 IST 2015
    List Development Configurations failed      [Error: com.sap.ide.dii05.ui.internal.sld.SldContext  Thread[ModalContext,6,main]]
    com.sap.lcr.api.cimclient.LcrException: com.sap.lcr.api.cimclient.CIMClientException: HTTP response code: 407 (Proxy Authentication Required ( Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  ))
    at com.sap.lcr.api.cimclient.HttpRequestSender.newClientException(HttpRequestSender.java:719)
    at com.sap.lcr.api.cimclient.HttpRequestSender.processResponse(HttpRequestSender.java:608)
    at com.sap.lcr.api.cimclient.HttpRequestSender.send(HttpRequestSender.java:352)
    at com.sap.lcr.api.cimclient.CIMOMClient.sendImpl(CIMOMClient.java:205)
    at com.sap.lcr.api.cimclient.CIMOMClient.send(CIMOMClient.java:153)
    at com.sap.lcr.api.cimclient.CIMOMClient.enumerateInstancesImpl(CIMOMClient.java:450)
    at com.sap.lcr.api.cimclient.CIMOMClient.enumerateInstances(CIMOMClient.java:754)
    at com.sap.lcr.api.cimclient.CIMClient.enumerateInstances(CIMClient.java:989)
    at com.sap.lcr.api.sapmodel.JavaCIMObjectAccessor.enumerateInstances(JavaCIMObjectAccessor.java:213)
    at com.sap.lcr.api.sapmodel.SAP_DesignTimeConfigurationAccessor.enumerateInstances(SAP_DesignTimeConfigurationAccessor.java:164)
    at com.sap.ide.dii05.lib.internal.sld.SldBasicContext.listRemoteDevConfNames(SldBasicContext.java:197)
    at com.sap.ide.dii05.ui.internal.devconf.wizard.DevConfImportSldPage$6.run(DevConfImportSldPage.java:293)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
    NWDS version: 7.31 SP 09
    Error Screenshot -
    Any pointers will be highly appreciated.
    BR,
    Anurag

    Hi,
    we had some issues recently with this, and the trace also mentions proxy issues. Could you please try direct connection in that preferences  (in other words do not use proxy settings in NWDS) ?
    Is it possible that there is some kind of web-filter application installed that is blocking the request?
    I'd suggest to google for this error:
    407 (Proxy Authentication Required ( Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  ))
    Perhaps the problem is not even sap related.
    Is Microsoft Forefront TMG (Threat Management Gateway after some googleing) perhaps configured in the way that it is not allowing this request ? Perhaps the IT guys of your company could look into this.
    Microsoft Forefront Threat Management Gateway - Wikipedia, the free encyclopedia
    12209 Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied.
    Cheers,
    Ervin

  • How can I get Launching report directory in report trigger??

    how can I get Launching report directory in report trigger??
    pls help me :'<
    I can run this function in forms.
    "how can I get Launching report directory in report trigger??"
    does reports have same function???

    Click the little down arrow/+ symbol  next the + - in the folders bar.

  • How to get the \filter directory from registry (or other) during installation of the plugin

    Hello
    I made a script to install the plugin because it needs some libraries to be installed as well, but during the installation, the filter directory isn't defined (it isn't the same for each platform or language)
    for example my filter folder is :
    E:\Program_Files\Photoshop CS2\Modules externes\Filtres
    how do i get this filter directory from registry (or with another way)
    thanks a lot
    Jeff

    sorry i made a little mistake (didn't poste the updated version of my code)
    here is the right code:
    [Code]
    var
      maxnb8bf : Integer;
      maxDirectory:        String;
      nb8bf : Integer;
      PreviousDirectory:        String;
    procedure ProcessDirectory (RootDir: String; Progress: Boolean);
    var
    NewRoot:        String;
    FilePath:        String;
    FindRec:        TFindRec;
    n1 : Integer;
    n2 : Integer;
    begin
    NewRoot := AddBackSlash (RootDir);
    if FindFirst (NewRoot + '*', FindRec) then
    begin
    try
    repeat
    if (FindRec.Name <> '.') AND (FindRec.Name <> '..') then
    begin
    FilePath := NewRoot + FindRec.Name;
    if FindRec.Attributes AND FILE_ATTRIBUTE_DIRECTORY > 0 then
    ProcessDirectory (FilePath, Progress)
    else
    begin
            if (NewRoot <> PreviousDirectory) THEN
            begin;
               if (maxnb8bf < nb8bf) THEN
               begin;
                   maxnb8bf := nb8bf;
                   maxDirectory := PreviousDirectory;
               end;
               nb8bf := 0;
            end;
            n1 := Pos('.8bf', FilePath);
            n2 := Pos('.8BF', FilePath);
            if ((n1 > 0) or (n2 > 0)) THEN
            begin;
               nb8bf := nb8bf + 1;
            end;
            PreviousDirectory := NewRoot;
    end;
    end;
    until NOT FindNext (FindRec);
    finally
    FindClose(FindRec);
    end;
    end;
    end;
    function InitializeSetup(): Boolean;
    var
      V: string;
    begin
      if RegQueryStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Photoshop.exe', 'Path', V) then
        MsgBox('Value is "' + V + '"', mbInformation, MB_OK);
      Result := TRUE;
       maxDirectory := '';
       nb8bf := 0;
       PreviousDirectory := '';
       maxnb8bf := 0;
       ProcessDirectory (V, true);
       //if (maxDirectory <> '') THEN
       // begin;
       //      MsgBox('Value is "' + maxDirectory + '"', mbInformation, MB_OK);
       // end;
    end;
    function NewTargetDir(Param: String): String;
    begin
      Result := maxDirectory;
    end;
    Regards

  • Is it possible to get the active directory user name of the person

    Is it possible to get the active directory user name of the person who is logged onto a windows computer, when they are using your coldfusion site, the same way asp pages can do that?

    SECOND TRY TO POST THIS REPLY
    You have to turn on "Windows Integrated Security" and turn off anonymous login in the IIS web server, once that condition is met the cgi.AUTH_USER variable will be popluated with the domain/username of the user logged into the cient computer.
    If the user is using a windows browser on a windows client computer this will be done silently in the background.  Otherwise they will normally be presented with a login dialog box by the browser.

  • Can't get current working directory

    I can't figure out how to get the current directory my applet is running from. I want to loop through the currentdirectory/folderA. Below is my code:
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.lang.*;
    import javax.swing.JApplet;
    import javax.swing.*;
    import java.net.*;
    public class Refresh4 extends JApplet{     
         String curDir = System.getProperty("user.dir");
        String myFile = curDir+"/folderA";//folderA within the directory that the applet is in
        File f = new File(myFile);
        long orig;
        long upd=0;
        long comp=0;
        javax.swing.Timer timer;
        int j = 1;
         public void init(){//initial run class, runs create gui once and sets up timer
            try {
                javax.swing.SwingUtilities.invokeAndWait(new Runnable() {
                    public void run() {
            } catch (Exception e) { }
            timer = new javax.swing.Timer(2000,taskPerformer);//runs every 2 seconds
              timer.start();//starts timer
      ActionListener taskPerformer = new ActionListener() {//called by timer every 2 seconds, executes FileReader
          public void actionPerformed(ActionEvent evt) {
               j++;
               FileReader(j);
    public void FileReader(int j){//reads all files in directory and checks their modified time/date
         File[] files = f.listFiles();
              for (int i=0;i<files.length;i++){
                   File nFile = files;
                   orig = nFile.lastModified();
                   if (orig>upd){
                        upd = orig;
              if(upd>comp){
                   comp = upd;
                   if(j>2){
                   try {
                        getAppletContext().showDocument
                        (new URL("javascript:doAlert(\""+j+"\")"));
                   catch (MalformedURLException me) { }          

    String curDir = System.getProperty("user.dir");That does get the current directory.
    However, your applet should not "need" to know this, nor rely on it. If you want to open resources (such as graphic images), those resources should be packaged with the applet (like in a jar file on the server), and the applet would get them using codebase- or classpath- based APIs -- not file system-based APIs.

  • Watched folder error - "Exception while getting principal from Directory manager"

    Hi! I've been having problems with a LiveCycle ES installation.
    I've configured a watched folder that starts a process with an Office
    Document, converts it to PDF and applies a Rights Management Policy.
    It runs on behalf of an Active Directory user.
    Sometimes it works flawlessly, but most of the time it fails, giving a
    ridiculously long failure log with the longest trace stacks I've ever
    seen in life... resumed:
    =======================
    ALC-DSC-600-000: com.adobe.idp.dsc.provider.service.scheduler.impl.SchedulerRuntimeException : Failure to invoke the job [watched_folder_endpoint_name]
    Caused by: ALC-FEP-011-000: com.adobe.idp.dsc.service.file.impl.FileProviderRuntimeException: Failed to get the context on behalf of user [username], domain [company_domain] for watch folder [watched_folder_endpoint_name]
    Caused by: | [com.adobe.idp.um.api.impl.AuthenticationManagerImpl] errorCode:16386 errorCodeHEX:0x4002 message:Exception while getting principal from Directory manager| [IDPLoggedException] errorCode:12801 errorCodeHEX:0x3201 message:Exception while getting principal from Directory manager
    chainedException:javax.ejb.TransactionRolledbackLocalException: null;
    CausedByException is:
    nullchainedExceptionMessage:null; CausedByException is:
    null chainedException
    trace:javax.ejb.TransactionRolledbackLocalException: null;
    CausedByException is:
    null
    =======================
    I vaguely suspect is the server's clock going out of sync with the domain controller's clock, but I tried everything I knew of about it with no consistent results.
    It's LiveCycle 8.0.1 SP2 installed on a Windows 2003 Server.
    Manual install, JBoss Clustered configuration (the second node is actually turned off for the time being)
    SQL Server 2005 as backend Database
    Users on Active Directory on a Windows 2003 Server -which is a "copy" of the main domain controller.
    Watched folder is in a mounted share of another Windows 2003 Server acting as fileserver.
    Any clue will be greatly appreciated!!

    Hello,
    sorry in advance for my english. i am beginning in Adobe LiveCycle and i think that you can help me : i want to configure a watched folder to automatically convert in pdf file and apply a right management policy. Can you tell me how you configure it ? many thanks in advance. regards

  • Cannot get Osoft virtual directory object: (SAP BPC 7.5 sp08 issue)

    Hi SDNer
    I am facing a different issue after installing sap BPC 7.5 sp08. i ran server diagnostics when i login with a domain user (domain name\bpc_sysadmin) and i see error message as :
    cannot get Osoft virtual directory object: Automation error the system sould bot find path specified- incorrect
    but when i run the diagnostics after logging in with local user Administratot- all green and its ok.
    can some one through views...
    regards
    Kevin

    Hi,
    Check below 2 threads:
    Error in IIS Configuration while Server Diagostic
    Cannot get OSoft virtual directory object
    Also, make sure that IIS settings are correct. Check SAP note 1532499.
    Thanks
    Sunny

  • CS Extension Builder 2.1 won't install, getting an empty directory

    I purchased and downloaded CS Entension Builder 2.1 after the trial expired. After install I only get and empty directory named "Adobe Systems Incorporated/Extension Builder". Is there a fix for this?
    Thanks for your help

    First you need to uninstall the trial build. Clean regisry if needed. Then after the installer process finished, Extension Builder 2.1 will be installed as a plugin in the Flash Builder 4.x.

  • Get System 32 directory path of a System

    Hi,
          I need to get the system directory path ie (the path where system32 folder resides in a system) using flex air.
    Regards,
    Jayagopal.

    Unfortunately this is not possible in AIR 2.
    Please vote for this feature request:
    http://ideas.adobe.com/ct/ct_a_view_idea.bix?c=9D564F43-979A-4E35-AA21-85A61B6AB8DE&idea_i d=44C18C79-365C-4A52-AA30-9B688A29D785
    Thanks,
    Chris Thilgen
    AIR Engineering

Maybe you are looking for