• We've added extra Spam Protection. if you get problem with account registration / registration rejected. please contact us
  • You need minimum 5 good posts for download files. Don´t push posting-counter with posts copy paste, thx, good, smileys..... Read This.
  • Note: don´t push posting-counter with messages like thx, good, haha, only use reactions! threads will be deleted without any comment or notification. Read Rules.

XF2 How to protect web directory?

kbb75822

New Member
Joined
May 4, 2019
Messages
8
Reaction score
0
Points
1
Age
28
I found that my website can direct access /src and see the file structure.

My .htaccess comes from the installation package, I have not modify them.

My Apache Version is 2.4.29

Thanks.
 

diplo

New Member
Joined
Jul 18, 2019
Messages
3
Reaction score
0
Points
1
Age
23
If you're using apache then use .htaccess

Go to your src folder, make a new .htaccess then type in \

deny from all

If you're using nginx use the configuration file
 

jumpers256

New Member
Joined
Apr 14, 2019
Messages
5
Reaction score
0
Points
1
Age
33
You should switch to nginx, its extremely superior!
 

lutia

New Member
Joined
Jul 26, 2019
Messages
6
Reaction score
0
Points
1
Age
30
You should switch to nginx, its extremely superior!
No need switch anywhere, its simple issue that he don't have works his mod_rewrite or not installed which is required directory for directory or he can easily configure from htaccess.
 

diguo520

New Member
Joined
Mar 19, 2019
Messages
5
Reaction score
0
Points
1
Age
35
It is recommended that you use nginx to configure the security of your website directory nginx.
 

no0ki3

New Member
Joined
Aug 17, 2019
Messages
6
Reaction score
0
Points
1
Age
30
is there a special reason against apache that everyone says nginx is better ???
 
Top

AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock