how to restrict direct access to app/ui/layout.html

71 views
Skip to first unread message

silent light

unread,
Dec 23, 2018, 1:06:55 AM12/23/18
to f3-fra...@googlegroups.com
today after check my site by site:mysite.com in Google i found some unexpected  urls were indexed like:

Rayne

unread,
Dec 23, 2018, 8:16:19 AM12/23/18
to Fat-Free Framework
The best idea would be to not store internals in a publicly available directory. You could also instruct your web server to not ship files stored in the app directory.

silent light

unread,
Dec 24, 2018, 11:18:13 AM12/24/18
to Fat-Free Framework
so there no way to do it with f3 ?

Richard Goldstein

unread,
Dec 24, 2018, 11:39:31 AM12/24/18
to silent light via Fat-Free Framework
If you are using Apache you can do this simply in the .htaccess file. I’m not where I can provide an example at the moment, but will later. 


--
-- You've received this message because you are subscribed to the Google Groups group. To post to this group, send an email to f3-fra...@googlegroups.com. To unsubscribe from this group, send an email to f3-framework...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/f3-framework?hl=en
---
You received this message because you are subscribed to the Google Groups "Fat-Free Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to f3-framework...@googlegroups.com.
To post to this group, send email to f3-fra...@googlegroups.com.
Visit this group at https://groups.google.com/group/f3-framework.
To view this discussion on the web visit https://groups.google.com/d/msgid/f3-framework/8727db97-da61-414f-bfb4-a34e2638d040%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

Dwaine Halberg

unread,
Dec 24, 2018, 9:15:47 PM12/24/18
to Fat-Free Framework

v.

unread,
Jan 3, 2019, 5:24:23 PM1/3/19
to f3-fra...@googlegroups.com

simply put a .htaccess file in the app directory (or in your view directory if this is not a subdirectory from app) and add the following line in it:

deny from all

this will restrict outside access to all files and directories contained in app.
Reply all
Reply to author
Forward
0 new messages