Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3619084
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T22:50:03+00:00 2026-05-18T22:50:03+00:00

I have the following htaccess code in my include files directory to protect against

  • 0

I have the following htaccess code in my include files directory to protect against direct access.

<Files *>
Deny from all
</Files>

This works fine except for one file which is used for my jquery star rating. Ratings are written to and read from a php file.

I need to modify the above htaccess code so ratings.data.php file is excluded from the deny all.

Something Like:

<Files *>
Deny from all
    Allow ratings.data.php
</Files>

How can I accomplish this? Thank you for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T22:50:04+00:00Added an answer on May 18, 2026 at 10:50 pm

    The Allow/Deny directive sets the clients that can access that portion of the site.
    So you would need to add another section with something like:

    <Files ratings.data.php>
        Allow from all
    </Files>
    

    Update: Some clarification.

    You need to add both sections:

    <Files ratings.data.php>
        Allow from all
        Order Allow,Deny
    </Files>
    
    <Files *>
        Deny from all
        Order Deny,Allow
    </Files>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code for my .htaccess file that I've picked up from
i have used the following code in .htaccess Options +FollowSymlinks RewriteEngine On RewriteBase /
I have the following .htaccess file in a directory: RewriteEngine On RewriteCond %{HTTPS} !=on
So I have the following .htaccess file contents from my other project which is
I have the following code in .htaccess and it works for pages which have
I have this htaccess code. What I want to accomplish is be able to
I have the following code in my .htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME}
I have in my .htaccess the following code: RewriteEngine On RewriteRule ^/?([^/\.]+)/?$ $1.php [L]
I have the following bit of code in my htaccess that will allow a
I have the following code in ://localhost/.htaccess... AddType application/x-httpd-php5 .css .js RewriteEngine on RewriteRule

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.