Files .txt

Post Reply
terat
Jr. Bludit
Posts: 6
Joined: Thu Oct 10, 2019 8:36 am

Sat Oct 12, 2019 7:26 am

How to prevent access to files .txt? Added different rules .htaccess does not help. I mean, the files can be accessed directly.

http://domain.com/bl-content/pages/sozd ... /index.txt

It would be desirable that at attempt to enter on this file the error 404 was given out.

Thanks!
User avatar
Edi
Site Admin
Posts: 1624
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Sat Oct 12, 2019 12:09 pm

Do you use the .htaccess that comes with Bludit? With this there is no access to the files index.txt.
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
terat
Jr. Bludit
Posts: 6
Joined: Thu Oct 10, 2019 8:36 am

Sat Oct 12, 2019 2:50 pm

Yes.
I tried different types of lock configurations - it doesn’t work out, on the side of the hosting provider everything is fine, because Other sites work well.
terat
Jr. Bludit
Posts: 6
Joined: Thu Oct 10, 2019 8:36 am

Sat Oct 12, 2019 4:01 pm

Talk about htaccess, such a question, how to remove the slash at the end of the url (I don’t know how to translate correctly - '/')?
User avatar
Edi
Site Admin
Posts: 1624
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Sat Oct 12, 2019 8:19 pm

terat wrote:
Sat Oct 12, 2019 2:50 pm
Yes.
I tried different types of lock configurations - it doesn’t work out, on the side of the hosting provider everything is fine, because Other sites work well.
Can you please give the address of the installation?
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
terat
Jr. Bludit
Posts: 6
Joined: Thu Oct 10, 2019 8:36 am

Sun Oct 13, 2019 4:35 pm

Please tell me which files start the process of creating a new page / category? I don't have access to httpd.cong, apache. Ways through .htaccess I do not know. But you can create a directory and create a file inside a folder with limited access, I'll try to add a couple of lines of php code, tell me only what files to look for?
Post Reply