Hello.
I would like to restrict access to one of my site folders (so only I (owner) can view the folders, but everyone can see the files with the link).
How to do it?
Your help is great, thanks!
Hello.
I would like to restrict access to one of my site folders (so only I (owner) can view the folders, but everyone can see the files with the link).
How to do it?
Your help is great, thanks!
Simple, put an index.php or index.html in the folder. (obviously with something written in)
this will work to hide all the files
No, I want those who have the link can access files. I also tried to change permissions, but that didn’t help.
Can @Admin help out, please?
@Robciks1234 said:
No, I want those who have the link can access files. I also tried to change permissions, but that didn’t help.
Can @Admin help out, please?
@placek Already gave the answer. If you add an index.php or index.html file, this will prevent listing of files in the directory. But if you know which files are in there, you can create a direct link to access them.
Doing so will also prevent you from listing the files on your website, but you can list the files from a file manager as well.
@Admin said:
@Robciks1234 said:
No, I want those who have the link can access files. I also tried to change permissions, but that didn’t help.
Can @Admin help out, please?@placek Already gave the answer. If you add an index.php or index.html file, this will prevent the listing of files in the directory. But if you know which files are in there, you can create a direct link to access them.
Doing so will also prevent you from listing the files on your website, but you can list the files from a file manager as well.
– Do you have any example code for the index.php?
@Robciks1234 said:
@Admin said:
@Robciks1234 said:
No, I want those who have the link can access files. I also tried to change permissions, but that didn’t help.
Can @Admin help out, please?@placek Already gave the answer. If you add an index.php or index.html file, this will prevent the listing of files in the directory. But if you know which files are in there, you can create a direct link to access them.
Doing so will also prevent you from listing the files on your website, but you can list the files from a file manager as well.
– Do you have any example code for the index.php?
No, because even a completely empty file with the name index.php or index.html will work for your purpose.