How to restrict access to a folder in Apache2

QT-PC Techh

I have a Raspberry Pi 4, running as a webserver (using Apache2). I have a directory that contains images, and I don't want users to access the folder that contains those images via my website, but I want those images still accessible via links. Any ideas?

Freddy

If you want to disable the automatic generation of the directory listing (by mod_autoindex, if an index.html is missing in the directory), you can disable this feature for your image directory in your Apache config:

<Directory /var/www/html/images>
    Options -Indexes
</Directory>

The files inside the directory will still be accessible via links, image tags, etc., it only forbids the directory listing.

Related:

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Restrict folder access in Ubuntu

分類Dev

How to restrict ip access in nginx

分類Dev

How to restrict page access to unlogged users with VueJS?

分類Dev

How to restrict the access to undefined class/instance variable?

分類Dev

How to restrict network access for a VirtualBox guest

分類Dev

How to restrict user to access iframe in separate tab?

分類Dev

Shared folder of VirtualBox as Apache2 www directory

分類Dev

How would I restrict access to certain columns in Redshift?

分類Dev

How to restrict IAM user to access (list) particular roles and CF stacks?

分類Dev

how to restrict assets files to access directly in angular 4

分類Dev

How to restrict access to an appengine application only to the owners and developers?

分類Dev

How to load the modules for Apache2?

分類Dev

Restrict user access

分類Dev

Restrict access in Laravel Nova

分類Dev

Having Apache Access Folder Inside Home Directory

分類Dev

Apache2 userdir enabled, but still have no access

分類Dev

how to access website from a sub folder inside the root folder?

分類Dev

how to access folder variables across pipeline stages?

分類Dev

How can I access a shared folder from R on Ubuntu to a 2nd Ubuntu machine using Samba?

分類Dev

Restrict Internet Access - Docker Container

分類Dev

Restrict Internet Access - Docker Container

分類Dev

Restrict access to gitlab container registry

分類Dev

How to restrict Apache Nutch to crawl language specific Documents only

分類Dev

How to send compressed (deflated) SVG via Apache2?

分類Dev

CGI scripts on Apache2 gives 403 forbidden when the CGI are in a linked folder

分類Dev

Fiware: How to restrict user access to specific entity for Orion Context Broker API using keystone & keypass

分類Dev

How to restrict access for staff users to see only their information in Django admin page?

分類Dev

How to restrict the X11 forwarding access on CentOS 6.5 for specific users?

分類Dev

How to restrict special characters in the input field using Angular 2 / Typescript

Related 関連記事

  1. 1

    Restrict folder access in Ubuntu

  2. 2

    How to restrict ip access in nginx

  3. 3

    How to restrict page access to unlogged users with VueJS?

  4. 4

    How to restrict the access to undefined class/instance variable?

  5. 5

    How to restrict network access for a VirtualBox guest

  6. 6

    How to restrict user to access iframe in separate tab?

  7. 7

    Shared folder of VirtualBox as Apache2 www directory

  8. 8

    How would I restrict access to certain columns in Redshift?

  9. 9

    How to restrict IAM user to access (list) particular roles and CF stacks?

  10. 10

    how to restrict assets files to access directly in angular 4

  11. 11

    How to restrict access to an appengine application only to the owners and developers?

  12. 12

    How to load the modules for Apache2?

  13. 13

    Restrict user access

  14. 14

    Restrict access in Laravel Nova

  15. 15

    Having Apache Access Folder Inside Home Directory

  16. 16

    Apache2 userdir enabled, but still have no access

  17. 17

    how to access website from a sub folder inside the root folder?

  18. 18

    how to access folder variables across pipeline stages?

  19. 19

    How can I access a shared folder from R on Ubuntu to a 2nd Ubuntu machine using Samba?

  20. 20

    Restrict Internet Access - Docker Container

  21. 21

    Restrict Internet Access - Docker Container

  22. 22

    Restrict access to gitlab container registry

  23. 23

    How to restrict Apache Nutch to crawl language specific Documents only

  24. 24

    How to send compressed (deflated) SVG via Apache2?

  25. 25

    CGI scripts on Apache2 gives 403 forbidden when the CGI are in a linked folder

  26. 26

    Fiware: How to restrict user access to specific entity for Orion Context Broker API using keystone & keypass

  27. 27

    How to restrict access for staff users to see only their information in Django admin page?

  28. 28

    How to restrict the X11 forwarding access on CentOS 6.5 for specific users?

  29. 29

    How to restrict special characters in the input field using Angular 2 / Typescript

ホットタグ

アーカイブ