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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:44:19+00:00 2026-05-27T23:44:19+00:00

This is the structure index.php app/processor.php app/.htaccess in the index.php I have this form

  • 0

This is the structure

  • index.php
  • app/processor.php
  • app/.htaccess

in the index.php I have this form

<form method='post' action='/app/processor.php'>
    <input type='text' name='foo' value=''/>
    <input type='submit' value='bar'/>
</form>

The file which will process the form is located inside the app folder. The processor.php has the code:

<?php
    if(isset($_POST['foo'])){
        echo "foo is set";
    }
?>

And inside the app folder, I created a .htaccess to deny direct access of the files inside of it.

Order deny,allow
Deny from all

My problem now is that I can’t process the form due to the .htaccess file. The server returns error 403 because of that restriction in the app folder. Is there anyway I can process the form by still using the processor.php? Or should I remove/modify the .htaccess? Thanks for your answers!

  • 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-27T23:44:20+00:00Added an answer on May 27, 2026 at 11:44 pm

    Above the Order deny,allow you can always add a section like:

    <Files processor.php>
    Allow from all
    </Files>
    

    And it should allow that specific file to be read, while everything else remains forbidden.

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

Sidebar

Related Questions

I have this structure on form, <input type=test value= id=username /> <span class=input-value>John Smith</span>
I have this folder structure: /www/project/web/app.php I can access it via /project/web/index.php . The
This is the file structure of my website app/view/home.php .index.php .htaccess Now, I want
I have a folder structure like this: /articles .index.php .second.php .third.php .fourth.php If I'm
If I have a directory structure like this: - index.php - public - img
If I have a folder structure that looks like this: / /bin/myComponent.cfc /reports/index.cfm How
http://something.com:80/somedir/index.html?type=test;one=onevalue#nose This is typical URI structure my question is what is #nose and how
I have a (custom) php framework that contains following structure: app |-classes |-settings core
I have an application running with Codeigniter, its name is SAF. folder structure: /SAF/index.php
I have a website that use this style : /index.php?page=45&info=whatever&anotherparam=2 I plan to have

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.