Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Only '/public' should be accessible #85

Open
saulens22 opened this issue Dec 18, 2018 · 2 comments
Open

Only '/public' should be accessible #85

saulens22 opened this issue Dec 18, 2018 · 2 comments
Milestone

Comments

@saulens22
Copy link

Usually, all of Wordpress theme PHP files check if ABSPATH exists. This theme template doesn't have such functionality. Moreover, I can access '/config' , '/resources', '/vendor' and so on. It might pose a security risk in the long run (just my opinion).

I believe only '/public' folder should be accessible by web server. In my case, I created '.htaccess' file in theme root that denies all access and created another '.htaccess' file in '/resources' that WebPack copies into '/public' folder with complete access. I think it's worth discussing implementing this in theme.

@multiplehats
Copy link

+1

@jedrzejchalubek jedrzejchalubek added this to the 4.0.0 milestone Mar 4, 2019
@niklasp
Copy link

niklasp commented Feb 1, 2021

maybe this can be added via a pull request @saulens22

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants