more elegance?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • felipe808
    Senior Member
    • Mar 2004
    • 111

    more elegance?

    is there any more elegant way to limit SSL traffic to a directory? This is in the .htaccess file.

    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteCond %{REQUEST_URI} directorytosecure
    RewriteRule ^(.*)$ https://www.mywebsite.com/$1 [R,L]

    and, to conserve posts, what about:

    in .htaccess file in the directory to restrict access by a specified IP address:

    <limit GET>
    order deny,allow
    deny from all
    allow from 12.34.111.22.
    </limit>

    I think the end "." is necessary...does that finalize the IP address?

    This is for security. How good is it? There is an accounting program in the directory that should only be accessed from one IP address and ALL access should be SSL bound.

    Thanks and regards.
Working...