Title: &#8220;Protect&#8221; php files
Last modified: October 5, 2016

---

# “Protect” php files

 *  [Pierre_02](https://wordpress.org/support/users/pierre_02/)
 * (@pierre_02)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/protect-php-files/)
 * Hi Scott, it’s me again 😉 !
 * I’m coming back today for an other problem. As I explain on this [post](https://wordpress.org/support/topic/bug-with-iframe/),
   I use iframe to get my form working. It call a php file that I have placed in
   a special folder (“datas”) the problem is that when I generate my static files
   SS run the php file and copy that result in the same subdirectory in my static
   files folder :(… The extension is still php but the content is only the parsed
   result of its execution :(.
    I tried to make a hardlink of it but in that case
   SS crush my php code in the original folder :(. So could you add an option to
   exclude files from being parsing when they are in a special defined folder ? 
   Or perhaps just a raw copy of files from this folder or exclude the php extension
   from the process of parsing when they are in a form tag ?
 * If you have an idea or a suggestion to help me with that problem, I will be happy
   to get it 😉 !!
 * I hope I’ve been clear ;)…
 * TIA.
 * Amicably,
 * Pierre.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Scott at Code of Conduct](https://wordpress.org/support/users/codeofconduct/)
 * (@codeofconduct)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/protect-php-files/#post-8261354)
 * Hi Pierre,
 * Yeah, that makes sense. One of the items on my todo list is to add the ability
   to exclude URLs. Until then, you’ll probably have to make some manual modifications
   after running Simply Static 🙁
 * Best,
    Scott
 *  Thread Starter [Pierre_02](https://wordpress.org/support/users/pierre_02/)
 * (@pierre_02)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/protect-php-files/#post-8262121)
 * Hi Scott,
 * thanks for the quick answer 🙂 ! I’ve found a quick and dirty trick to “protect”
   my file by setting its rights to 0444 :).
    BTW, everything works fine :).
 * Amicably,
 * Pierre.
 *  [Scott at Code of Conduct](https://wordpress.org/support/users/codeofconduct/)
 * (@codeofconduct)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/protect-php-files/#post-8263151)
 * That’s a clever workaround. Nice work 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘“Protect” php files’ is closed to new replies.

 * ![](https://ps.w.org/simply-static/assets/icon-256x256.png?rev=2443263)
 * [Simply Static - The Static Site Generator](https://wordpress.org/plugins/simply-static/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simply-static/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simply-static/)
 * [Active Topics](https://wordpress.org/support/plugin/simply-static/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simply-static/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simply-static/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Scott at Code of Conduct](https://wordpress.org/support/users/codeofconduct/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/protect-php-files/#post-8263151)
 * Status: not a support question