GetSimple Support Forum
QUESTION Question about create plugin - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: QUESTION Question about create plugin (/showthread.php?tid=10686)



Question about create plugin - multicolor - 2019-02-18

hi! i have a question, i create plugin and put data to .txt from php like http://get-simple.info/wiki/plugins:creation. This is safety for users?off course i use  file is 755 chmod.


RE: Question about create plugin - Bigin - 2019-02-18

It's not. You need to restrict direct access to the file and manage your data server-side via php, for example.


RE: Question about create plugin - multicolor - 2019-02-18

(2019-02-18, 23:30:23)Bigin Wrote: It's not. You need to restrict direct access to the file and manage your data server-side via php, for example.

Off course i use file_put_contents for save and for read file_get_content in my php


RE: Question about create plugin - Bigin - 2019-02-18

It doesn't matter. Depending on where the file is located, you may still be able to access the file directly via the URL.


RE: Question about create plugin - multicolor - 2019-02-18

(2019-02-18, 23:43:15)Bigin Wrote: It doesn't matter. Depending on where the file is located, you may still be able to access the file directly via the URL.

hmmm .htaccess Deny from all fix this?


RE: Question about create plugin - Bigin - 2019-02-18

It's a way, yes


RE: Question about create plugin - multicolor - 2019-02-18

(2019-02-18, 23:52:51)Bigin Wrote: It's a way, yes

Thx i check this!


RE: Question about create plugin - multicolor - 2019-02-19

(2019-02-18, 23:52:51)Bigin Wrote: It's a way, yes

No way, htaccess doen't open for settings. but i think is not very important. I think anyone without user change this .txt? Only visible this when have url this file?