1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Disable FTP with .htaccess?

Discussion in 'Apache' started by Vizubo, Nov 3, 2016.

  1. #1
    Hello users,

    Is it possible to disable access to ftp://hostname via browser using .htaccess or can anyone recommend a way that would only prevent it from working for one site? I host multiple sites however still want it to work for the rest just one in particular I do not want anybody to be able to access, maybe the ftp://hostname page could redirect to a website instead?

    Many Thanks,
    John
     
    Vizubo, Nov 3, 2016 IP
  2. pavv

    pavv Well-Known Member

    Messages:
    275
    Likes Received:
    8
    Best Answers:
    3
    Trophy Points:
    120
    #2
    You can't via .htaccess file.
     
    pavv, Nov 3, 2016 IP
    Nigel Lew likes this.
  3. Vizubo

    Vizubo Member

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #3
    Ok thanks for your reply.
     
    Vizubo, Nov 3, 2016 IP
  4. sarahk

    sarahk iTamer Staff

    Messages:
    28,500
    Likes Received:
    4,460
    Best Answers:
    123
    Trophy Points:
    665
    #4
    Your hosting is likely to give you a control panel of some sort - you should be able to remove all the accounts that have access.
     
    sarahk, Nov 3, 2016 IP
  5. clusterednet

    clusterednet Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #5
    No, you can't do this by .htaccess as that's for apache not FTP.
    Why not just reset the FTP password to something only you know ?
     
    clusterednet, Jan 3, 2017 IP
  6. Vizubo

    Vizubo Member

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #6
    This wouldn't solve what i'm trying to achieve. In short I own the domain www.ftp.ac however if you type without www. (e.g http://ftp.ac) the ftp login automatically loads and requests user credentials, I want to build as a web ftp client instead. Hope this gives a better understanding, many thanks!
     
    Vizubo, Jan 3, 2017 IP
  7. Vizubo

    Vizubo Member

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #7
    This wouldn't solve what i'm trying to achieve. In short I own the domain www.ftp.ac however if you type without www. (e.g http://ftp.ac) the ftp login automatically loads and requests user credentials, I want to build as a web ftp client instead. Hope this gives a better understanding, many thanks!
     
    Vizubo, Jan 3, 2017 IP
  8. clusterednet

    clusterednet Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #8
    Does it stay http:// or move over to ftp:// in the browser ?
    If it stays as http:// then your not using FTP but rather webdav and this could be achieved with .htaccess
     
    clusterednet, Jan 3, 2017 IP