Skip to main content

Silly question

Comments

7 comments

  • rpvw
    There are no silly questions (although we often write silly answers because we don't read the question properly !) We really need to know a bit more about what you are doing here .
    • Do your web cameras automatically FTP the files up to the server ?
    • Are your web cameras using static IPs ?
    • Do you use a static IP to access the domain ?
    • Do the files that are FTPd up to the server need to be viewable in a browser ?
    • Do you need anyone other than yourself to have access to the domain ?
    0
  • webhostuk
    If the question is only to not allow anyone to view
    0
  • fahl
    • Do your web cameras automatically FTP the files up to the server ?
    • Are your web cameras using static IPs ?
    • Do you use a static IP to access the domain ?
    • Do the files that are FTPd up to the server need to be viewable in a browser ?
    • Do you need anyone other than yourself to have access to the domain ?

    Answer to all these is yes. What i want to do is still allow normal ftp & ssh access but stop people from going to webpage & accessing/downloading my files.
    0
  • rpvw
    The suggestion that @webhostuk gave you above should achieve what you want without any further configuration Alternately, you could use the .htaccess file to list the IPs that are allowed to access the site: Depending on your Apache version use either: order deny,allow deny from all allow from 127.0.0.1 allow from 127.0.0.2
    **OR** Require ip 1.2.3.4 Require ip 23.34.45.56
    replace the IPs as necessary Hope this helps
    0
  • dalem
    since all is static just add iptables rules deny all and allow your connecting static IP access. That way its completely dead to the internet except your connecting IP
    0
  • cPanelLauren
    Thanks, everyone involved for the great responses! @fahl please let us know if you have any further concerns in regard to this or if the answers provided have helped resolve your issues.
    0
  • ronaldst
    Adding a index.html (empty or blank) will deny file listing on your domain. Instead of all your files showing, it will show a blank screen. However, files are still accessible with a direct URL like example.com/my-camera-upload.jpg etc. Denying acces can also be done with a .htaccess as mentioned above.
    0

Please sign in to leave a comment.