Page 1 of 1

Files .txt

Posted: Sat Oct 12, 2019 7:26 am
by terat
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!

Re: Files .txt

Posted: Sat Oct 12, 2019 12:09 pm
by Edi
Do you use the .htaccess that comes with Bludit? With this there is no access to the files index.txt.

Re: Files .txt

Posted: Sat Oct 12, 2019 2:50 pm
by terat
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.

Re: Files .txt

Posted: Sat Oct 12, 2019 4:01 pm
by terat
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 - '/')?

Re: Files .txt

Posted: Sat Oct 12, 2019 8:19 pm
by Edi
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?

Re: Files .txt

Posted: Sun Oct 13, 2019 4:35 pm
by terat
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?