Added for You
#1 in Business Subscribe Email Print

You are here: Home > Internet and Businesses Online > Web Development > The Mysterious .HTACCESS file

Tags

  • letter
  • directly
  • tries
  • downloaded directly
  • addressthe following
  • windows notepadcontrolling

  • Links

  • 3.03 PSP Downgrade
  • Depressed or Just Unhappy?
  • You Have an Offer on Your Home, Now What?
  • Added for You - The Mysterious .HTACCESS file

    How To Write A Powerful Sales Letter
    To write a sales letter that does the job it is supposed to do and generate sales, there are several strategies you should use in every sales letter you write:* At the top of your sales letter, use a strong headline that states the most important benefit you are offering. This headline should be bold and a larger font size than the font s
    allow

    allow from 27.101.84.200

    deny from all

    Deny Access to certain Files

    The following code snippet, determined what files can be access. In this example, all access to files starting with "." symbol are declined. This will stop people from access (or viewing) your .htaccess file

    <FilesM<div style="float:right;position:relative;width:200px;padding:10px;"><a href="/article/45110/advice--Key-Components-of-a-Business-Plan--Part-II.html"> Key Components of a Business Plan: Part II</a><br>The first five components of a business plan provide an overview of the business opportunity and market research to support it. The remaining five components of the plan focus mainly on strategy, primarily the marketing, operational, financial and management strategies that that firm will employ. This article details these elements.Market</div>Globally the Apache web server software is installed on almost two thirds of all servers, and with Apache come the incredibly powerful but very mysterious .HTACCESS file. Most people only use the file for simple password protection, but it can be used for much more than that. This article will help to show some of the possibilities that lie within your site's .HTACCESS file</p><p>One of the neat features of the .htaccess file (please note, the filename must always be in lowercase), is that file can be edited on with almost any text based editor (such as the Windows Notepad).</p><p><b>Controlling if files are downloaded or Opened in the Visitors Web Browser</b></p><p>With the following code snippet, the site owner can determine how the file is download. This example (with files as .gz, .pdf, .zip and .rar) forces the file to be downloaded directly rather than having the browser attempt to open the file in the browser window.</p><p><xmp><FilesMatch “. (gz|PDF|zip|RAR) $” >

    ForceType application/octet stream

    </FilesMatch>

    Allow only certain users access to the server based on their IP address

    The following code snippet allows only users of a certain IP address (in this case 27.101.84.200) access the the server. All other users are rejected.

    order deny, allow

    allow from 27.101.84.200

    deny from all

    Deny Access to certain Files

    The following code snippet, determined what files can be access. In this example, all access to files starting with "." symbol are declined. This will stop people from access (or viewing) your .htaccess file

    <FilesM<div style="float:left;position:relative;width:200px;padding:10px;"><a href="/article/23305/advice--Design-for-Six-Sigma.html"> Design for Six Sigma</a><br>Design for Six Sigma (DFSS) is the application of Six Sigma principles to the design of products and their manufacturing and support processes. Whereas Six Sigma by definition focuses on the production phase of a product, DFSS focuses on research, design, and development phases. DFSS combines many of the tools that are used to improve existing p</div>ties that lie within your site's .HTACCESS file</p><p>One of the neat features of the .htaccess file (please note, the filename must always be in lowercase), is that file can be edited on with almost any text based editor (such as the Windows Notepad).</p><p><b>Controlling if files are downloaded or Opened in the Visitors Web Browser</b></p><p>With the following code snippet, the site owner can determine how the file is download. This example (with files as .gz, .pdf, .zip and .rar) forces the file to be downloaded directly rather than having the browser attempt to open the file in the browser window.</p><p><xmp><FilesMatch “. (gz|PDF|zip|RAR) $” >

    ForceType application/octet stream

    </FilesMatch>

    Allow only certain users access to the server based on their IP address

    The following code snippet allows only users of a certain IP address (in this case 27.101.84.200) access the the server. All other users are rejected.

    order deny, allow

    allow from 27.101.84.200

    deny from all

    Deny Access to certain Files

    The following code snippet, determined what files can be access. In this example, all access to files starting with "." symbol are declined. This will stop people from access (or viewing) your .htaccess file

    <FilesM<div style="float:right;position:relative;width:200px;padding:10px;"><a href="/article/37065/advice--How-To-Double-Your-Profits---Peter-s-Way.html"> How To Double Your Profits - Peter's Way</a><br>Peter worked hard. Damned hard. All day he toiled to sell blueberry muffins. And they were special muffins with forty blubberies each. But he only sold so many. Everyday, he'd fight a losing battle just to sell them all. At the end of the day, they weren't fresh anymore and people didn't want stale muffins. Then one day Peter doubled his profit.</div>owser</b></p><p>With the following code snippet, the site owner can determine how the file is download. This example (with files as .gz, .pdf, .zip and .rar) forces the file to be downloaded directly rather than having the browser attempt to open the file in the browser window.</p><p><xmp><FilesMatch “. (gz|PDF|zip|RAR) $” >

    ForceType application/octet stream

    </FilesMatch>

    Allow only certain users access to the server based on their IP address

    The following code snippet allows only users of a certain IP address (in this case 27.101.84.200) access the the server. All other users are rejected.

    order deny, allow

    allow from 27.101.84.200

    deny from all

    Deny Access to certain Files

    The following code snippet, determined what files can be access. In this example, all access to files starting with "." symbol are declined. This will stop people from access (or viewing) your .htaccess file

    <FilesM<div style="float:left;position:relative;width:200px;padding:10px;"><a href="/article/14648/advice--Long-Distance-Call-Center-Solutions.html"> Long Distance Call Center Solutions</a><br>Long distance call center solutions consist of logically designed software systems that integrate the information stored in the database for providing easy accessibility to both call center agents and customers. The software helps in reducing the number of long distance calls directed towards the call center with the use of alternative channels </div>p></p><p>ForceType application/octet stream <xmp></FilesMatch>

    Allow only certain users access to the server based on their IP address

    The following code snippet allows only users of a certain IP address (in this case 27.101.84.200) access the the server. All other users are rejected.

    order deny, allow

    allow from 27.101.84.200

    deny from all

    Deny Access to certain Files

    The following code snippet, determined what files can be access. In this example, all access to files starting with "." symbol are declined. This will stop people from access (or viewing) your .htaccess file

    <FilesM<div style="float:left;position:relative;width:200px;padding:10px;"><a href="/article/742/advice--How-To-Write-A-Powerful-Sales-Letter.html"> How To Make The Most Out Of Interactive Web Conferencing</a><br>In order to get the most value out of interactive web conferencing sessions try the following simple steps in order to keep it affordable.1. To save money, save time. A well-planned conference with an agenda is the conference that doesn't use up a lot of time answering questions over what is going to be covered or what has already been d</div>allow</p><p>allow from 27.101.84.200</p><p>deny from all</p><p><b>Deny Access to certain Files</b></p><p>The following code snippet, determined what files can be access. In this example, all access to files starting with "." symbol are declined. This will stop people from access (or viewing) your .htaccess file</p><p><xmp><FilesMatch “^ .” >

    deny from all

    </FilesMatch>

    Allow Server Side Includes on your Site

    This code line will ensure that files, which contain server Side Includes (SSI), will also get processed with they carry the .html file extension

    Addhandler server parsed .html

    Error Handling

    When an error occurs on your website, such as a person tries to access a file that does not exist, then the .htaccess file can display a "customized" error page for that particular error:

    For example:

    Error document 404 /404error.html

    Now when a user tries to access a file that causes a 404 error to be generated, the .htaccess file will now load an display the html file called 404error.html Please Note: This file must live in the root directory of your web site's structure (i.e. in a LINUX installation, in your /public_html/ folder).

    Sometimes Microsoft Windows has a problem with filenames that have a "." symbol as the first name. To overcome this simply upload the file as something different and then rename the file when its on the server.

    HTTP = HTML link (for blogs, profiles,phorums):
    <a href="http://www.added4u.com/article/86743/added4u-The-Mysterious-HTACCESS-file.html">The Mysterious .HTACCESS file</a>

    BB link (for phorums):
    [url=http://www.added4u.com/article/86743/added4u-The-Mysterious-HTACCESS-file.html]The Mysterious .HTACCESS file[/url]

    Related Articles:

    Technology Outsourcing and Domestic Consequences

    Free and Super Cheap Resources

    Create a Great Idea for Your Online Niche Market

    Bookmark it: del.icio.us digg.com reddit.com netvouz.com google.com yahoo.com technorati.com furl.net bloglines.com socialdust.com ma.gnolia.com newsvine.com slashdot.org simpy.com shadows.com blinklist.com