Author Topic: SMF forum behind .htaccess problem - and other related access problem  (Read 11507 times)

Offline hidden

  • Global Moderator
  • Senior Member
  • *****
  • Posts: 1497
  • I Dare to Dream!
    • InspirationMotivation.com
Of course! I have written about it here... simplemachines.org/community/index.php?topic=190487.0 any ideas Sammy or anyone? This would be really nice to do. I have searched access code information and don't find anything particular about this.

Specifically what was happening was when I clicked a link from the htaccess protected html pages to the forum address - it brought up another secure screen to place the access password in and then because I used code to redirect html to htmls it brought it up again but this time un protected -- odd -- and then when it went to the site at the htps url and all of the graphics were there but the log in didn't work.

However - when it brought up the second enter password screen and I repeatedly hit cancel rather than enter the user name and password --- it went to the forum - no images loaded but the text and links were there AND it let me log in! VERY NOT GOOD! ..

also I noticed that using the htaccess prevented the images contained in a folder under the access from being loaded to the html pages as well - ( I did have hot link access protection included in the script but I am thinking it is more about the password - don't know)

ANY COMMENTS IDEAS? about how to make SMF work behind the htaccess? Or what I can do differently?
Success is a way of life found moment by moment

Offline hidden

  • Sami
  • Administrator
  • Senior Member
  • *****
  • Posts: 5924
  • Not a geek. Just a Nerd.
    • CSB Tutorials
Re: SMF forum behind .htaccess problem - and other related access problem
« Reply #1 on: August 23, 2007, 02:51:27 PM »
The forum HAS PROTECTION built in.  Why are you trying to DOUBLE the protection?

You can make the boards not viewable until registered.  And set registration to require approval to tighten up WHO has access.
-Samantha
TNG: "Sometimes, you can make no mistakes, do everything right, and still lose" - Capt Picard to Data
(:turtle: In memory of Turtle: May 22, 1944 - Nov 24, 2007  GURU, mentor, and really nice guy! :turtleleft: )

Offline hidden

  • Global Moderator
  • Senior Member
  • *****
  • Posts: 1497
  • I Dare to Dream!
    • InspirationMotivation.com
Re: SMF forum behind .htaccess problem - and other related access problem
« Reply #2 on: August 23, 2007, 04:30:03 PM »
There are some who are ultra security minded here in regards to even have search engines find the site so I have done everything I can think of to keep anyone from finding anything as long as possible or as much as possible .. I just figured the same way if you lock your front door and then the door to your bedroom -- it at least might deter some further from finding or trying to hack the site or get into the forum if they can't even get past the front password area.


I've added the htaccess to prevent a huge list of bad bots from crawling

robot meta tags not to look at each page

robot text file to not look

etc etc.. added a security ssl level

this just seemed so perfect -- to have to have access to the site in general through one password and add the second to get into or try to direct link into the more sensitve area of the forum.

Success is a way of life found moment by moment

Offline hidden

  • Auxilary Member
  • *
  • Posts: 27
Re: SMF forum behind .htaccess problem - and other related access problem
« Reply #3 on: August 24, 2007, 11:38:18 AM »
ah, I'll post

I think you might be able to something with the file permissions to restrict the read/writre/execute users/groups but it's way beond me. I do think it would be easier if your host was local, like on your own server, but then you have to admin yourself. Of course if security is a huge issue for you then you almost have to have your own server(s). maybe you could post on an apache ng ?
ubuntu - ===  fedora -  F8 ===  OpenOffice 2.3  === KDE 4.0 is ===  GNOME === take Puppy for a spin puppylinux.org it's free! ===

Offline hidden

  • Global Moderator
  • Senior Member
  • *****
  • Posts: 1497
  • I Dare to Dream!
    • InspirationMotivation.com
Re: SMF forum behind .htaccess problem - and other related access problem
« Reply #4 on: August 24, 2007, 03:43:40 PM »
Thanks Pat -- I am still searching for answers .. and will search that type of phrase maybe it will help if such a permission is out there. I can't host myself - no time. And in this case as long as I can verify I have done everything reasonably possible to protect the site everyone will be happy.

Apache Ng well now ya got me really  ??? so I looked it up  :-[ and it seems very intensely complicated for a person like me that took forever to learn how to write what I will now call a "simple" htaccess file.  LOL But it is an idea.

I am continuing on various other elements of finishing the site creation while I investigate what to do but I have to have something figured out soon - so I will keep investigating your ideas. Thanks Again!
Success is a way of life found moment by moment

Offline hidden

  • Global Moderator
  • Senior Member
  • *****
  • Posts: 1497
  • I Dare to Dream!
    • InspirationMotivation.com
Re: SMF forum behind .htaccess problem - and other related access problem
« Reply #5 on: August 27, 2007, 06:15:15 PM »
I AM figuring this thing out slowly but surely and will let you know how and what soon. BUT if anything else comes to mind I would still appreciate hearing about it as maybe there is still an easier way than what I have come up with.


Success is a way of life found moment by moment