hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : alternate security meathod needed .htaccess / php
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

alternate security meathod needed .htaccess / php

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-02-2009, 03:24 PM
Bob132 Bob132 is offline
New Member
 
Join Date: Sep 2009
Posts: 1

alternate security meathod needed .htaccess / php


previously had prevented certain pages from being viewed in htaccess files by listing the .html names of the files (FilesMatch) w/ domain/IP restrictions.

The web page has been converted to php and now has and index.php file that is always displayed with the differing content piped in by opening the original html files. So pages are differentiated as follows index.php?content = value3. In the scripting portion the valuex portion dirrects which html file to open.

The problem with doing it this was is that the html files that were previously restricted are no longer. Is there a way to restore the original security features .htaccess or not?

Reply With Quote


Sponsored Links
  #2  
Old 09-02-2009, 03:41 PM
Newbie Newbie is offline
Web Hosting Guru
 
Join Date: Jan 2001
Location: Missouri
Posts: 298
throw the html files in a directory with htpasswd

http://httpd.apache.org/docs/2.0/programs/htpasswd.html

__________________
eeeeeeeeeeeeeeeewwwww it's broke

Reply With Quote
  #3  
Old 09-02-2009, 03:48 PM
SPaReK SPaReK is offline
Web Hosting Master
 
Join Date: Apr 2002
Posts: 644
You would need to do this filtering in the index.php PHP script.

You might be able to do it with mod_rewrite in your .htaccess file, but I cannot be certain if this can be accomplished.

Reply With Quote
Sponsored Links
  #4  
Old 09-03-2009, 03:55 AM
microbloghosting microbloghosting is offline
Junior Guru Wannabe
 
Join Date: Sep 2009
Posts: 37
htpassword should be good.

Reply With Quote
  #5  
Old 09-03-2009, 04:06 AM
zoticaic zoticaic is offline
Premium Member
 
Join Date: Jun 2007
Location: Manila
Posts: 150
If you need to allow certain HTML files via index.php and restrict the other, it is more secure doing it within index.php itself. Since index.php is exposed to directory traversal vulneraibility i.e. index.php?content=../../../../../../etc/passwd%%00

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
htaccess or/and Mod security ?? dotcom22 Hosting Security and Technology 5 08-28-2009 03:06 PM
htaccess security advice Jcink Hosting Security and Technology 4 09-28-2005 11:31 PM
Constructive comments needed on conspiracy theory, alternate news website! sitekeeper Web Site Reviews 2 01-30-2005 02:28 PM
.htaccess Security File tacoX Programming Discussion 8 11-10-2004 09:49 AM
htaccess security question Sonicade Hosting Security and Technology 4 05-06-2004 08:12 PM

Related posts from TheWhir.com
Title Type Date Posted
Web Host SingleHop Launches Automated Security Service for Dedicated, Cloud Servers Web Hosting News 2013-01-07 14:20:53
Cloud Security Alliance’s 2012 Congress - The Internet and National Security Blog 2012-12-05 12:08:32
Cloud Security Firm AlertLogic Partners with Novotus to Grow Employee Base Web Hosting News 2012-03-07 17:05:03
Go Daddy Helping Customers Repair Compromised Sites Web Hosting News 2011-09-16 14:35:03
CloudPassage Joins Cloud Security Alliance Web Hosting News 2011-06-09 20:58:30


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?