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 6009191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:56:07+00:00 2026-05-23T01:56:07+00:00

I use Minify to minify and cache all my script requests. I only want

  • 0

I use Minify to minify and cache all my script requests. I only want my users to be able to access the minified versions of the JavaScript files.

Minify lies at www.example.com/min and my scripts are at www.example.com/scripts. How can I block direct access to doc_root/scripts which is where my unminified JavaScript files lie. I’d rather not put them out of the document root but it’s an option.

Please note that I’m using Zend Framework, so the actual root of my application is shifted to www.example.com/public. An htaccess file handles the rewrite.

  • 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-23T01:56:08+00:00Added an answer on May 23, 2026 at 1:56 am

    Can’t you just use an .htaccess file inside doc_root/scripts to prevent all access over the web to .js files over HTTP?

    It won’t stop minify, since that provides indirect access.

    So in doc_root/scripts/.htaccess, something along the lines of

    <Files ~ "\.js$">
        order allow,deny
        deny from all
    </Files>
    

    Note that the location of the .htaccess file matters in this case.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use Reducisaurus Web Service to minify CSS and Javascript but I've
I use the next code from Google for Analytics: <script type='text/javascript'> var _gaq =
I want to use Maven capabilities for my static web projects containing images, javascript
I have minify from here : http://code.google.com/p/minify/ I want to use it with Kohana
Use case: user clicks the link on a webpage - boom! load of files
Use case: I've just entered insert mode, and typed some text. Now I want
I'm merging (and afterwards minify with YUI compressor) my CSS and JS files. My
Should I minify/gzip my Jquery with my other scripts on my page, or use
I have a javascript file that I minify using the Yahoo YUI. When I
I am trying to use Meleze.Web - 1.0.0 to minify the razor views of

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.