All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.

Author Topic: How to secure files  (Read 14827 times)

0 Members and 1 Guest are viewing this topic.

Offline Manne

  • Newbie
  • *
  • Posts: 11
    • View Profile
How to secure files
« on: 20 April 2007, 09:47 »
Hi

Thanks for a great script. Is there any way I could make my files accesible only to my registered wordpress users? Or to improve safety in another way?

/Manne

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,692
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: lesterchan.net v3.4
Re: How to secure files
« Reply #1 on: 20 April 2007, 12:51 »
it is not mean to work with wordpress in any way. It is meant to be a public display of your files.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline Ttech

  • Official Support
  • Global Moderator
  • *****
  • Posts: 4,296
    • View Profile
Re: How to secure files
« Reply #2 on: 20 April 2007, 22:39 »
So you'll have to use .htaccess.

 GaMerZ: I have a basic authentication script. I think it could be easily added into GFE. I'm not sure though
Learning and Helping one day at a time.




DevNode.org Operator - The IRC network for Programers

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,692
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: lesterchan.net v3.4
Re: How to secure files
« Reply #3 on: 21 April 2007, 09:18 »
as in HTTP auth?

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline Ttech

  • Official Support
  • Global Moderator
  • *****
  • Posts: 4,296
    • View Profile
Re: How to secure files
« Reply #4 on: 21 April 2007, 14:22 »
yeah or if thats not enabled a login form
Learning and Helping one day at a time.




DevNode.org Operator - The IRC network for Programers

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,692
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: lesterchan.net v3.4
Re: How to secure files
« Reply #5 on: 21 April 2007, 16:15 »
maybe if he want its, you can help him =D

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline Manne

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: How to secure files
« Reply #6 on: 21 April 2007, 18:50 »
Yes, I know it isn't ment to be used with Wordpress, I'm just trying to figure out a way to do it.

Ttech: Could you share your authentication script?

Offline Ttech

  • Official Support
  • Global Moderator
  • *****
  • Posts: 4,296
    • View Profile
Re: How to secure files
« Reply #7 on: 22 April 2007, 03:43 »
Sure. I wrote it for someone on the SMF community a while ago. Let me find it. Its not like a drop in auth script for GFE. You'll have to rewrite some code.
Learning and Helping one day at a time.




DevNode.org Operator - The IRC network for Programers

Offline Manne

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: How to secure files
« Reply #8 on: 26 April 2007, 12:19 »
No problems ttech, I will be happy to give it a try!

Offline Ttech

  • Official Support
  • Global Moderator
  • *****
  • Posts: 4,296
    • View Profile
Re: How to secure files
« Reply #9 on: 26 April 2007, 22:51 »
OK. I am doing some custom programing for a friend, once thats done, I'll see what I can do to put it into GFE. :)
Learning and Helping one day at a time.




DevNode.org Operator - The IRC network for Programers

Offline rishk789

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: How to secure files
« Reply #10 on: 16 April 2009, 22:41 »
Was there every any progress made on this end? I've tried "password protecting directories" through CPanel to no avail.  ??? Thanks!

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,692
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: lesterchan.net v3.4
Re: How to secure files
« Reply #11 on: 17 April 2009, 07:13 »
Add a .htaccess file to the directory
Code: [Select]
<Files ~ ".*\..*">
order allow,deny
deny from all
</Files>

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline rishk789

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: How to secure files
« Reply #12 on: 17 April 2009, 14:35 »
Thanks Lester! But does this allow for password protection? I host my class notes on my site, but I want some notes made public to everyone while others are protected by a password which I can give out to certain individuals. I've looked into .htpasswd files, but it seems that GFE bypasses it and still gives access to the directory.

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,692
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: lesterchan.net v3.4
Re: How to secure files
« Reply #13 on: 17 April 2009, 16:19 »
Nope, GFE is meant to be used publicly and hence I did not build any PW protection into it. If you want to password protect it, I suggest you protect GFE using htpasswd also. and place your content within the same as GFE folder.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline rishk789

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: How to secure files
« Reply #14 on: 21 April 2009, 19:06 »
If anyone has the authentication script by Ttech, please share!  :)

Offline rishk789

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: How to secure files
« Reply #15 on: 21 April 2009, 19:21 »
I've got the following directory tree:

-private
      - MCAT
      - NBDE
      - USMLE1
      - USMLE2

I uploaded the GFE files into the "private" parent directory and successfully password protected the directory using .htaccess/password. Once I type the username and password, I can see all the subdirectories (MCAT, NBDE, etc.) but when I try browsing into them, a Not Found Error 404 is thrown. (I've also disabled the Nice URL feature, by the way, but it didn't resolve the issue.) As soon as I removed my password protection, the directories could be successfully browsed. Any idea how I can keep the password protection on the parent directory and still browse the subdirectories? 

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,692
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: lesterchan.net v3.4
Re: How to secure files
« Reply #16 on: 22 April 2009, 05:09 »
You might want to try using PHP AUTH http://php.net/features.http-auth and place the code in the config.php

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.