# [PATCH] Add option to disable POST data processing

- Thread: https://externals.io/message/51074
- Original archive: https://news-web.php.net/php.internals/51074
- Started by james.butler@edigitalresearch.com on 2010-12-18T17:08:38+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #51074 — james.butler@edigitalresearch.com — 2010-12-18T17:08:38+00:00

URL: https://externals.io/message/51074#51074

What about people on shared hosting?

--
James Butler
Sent from my iPhone



> Hi Pierre:
> 
> 
> 
> > […]
> 
> Completely disabling POST is something that is probably best done
> via web server configurations.  Doing this at the
> applicaiton/programming layer seems like a kludge.
> 
> --Dan
> 
> -- 
> T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
>            data intensive web and database programming
>                http://www.AnalysisAndSolutions.com/
> 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409

---

## #51076 — Reindl Harald — 2010-12-18T17:21:28+00:00

URL: https://externals.io/message/51074#51076 · In reply to: #51074

They can not configure php too or the webserver allows
this for virtuals hosts (IIS afaik does) but on
shared hosting this had to be done from the admin

I agree that php is the wrong place

If any compnent have to say "405 Method Not Allowed"
it is the webserver long before starting the interpreter

Am 18.12.2010 18:08, schrieb James Butler:
> What about people on shared hosting?
> 
> --
> James Butler
> Sent from my iPhone
> 
> 
> 
> > […]

---

## #51079 — Daniel Convissor — 2010-12-18T19:05:28+00:00

URL: https://externals.io/message/51074#51079 · In reply to: #51074

Hi James:


> What about people on shared hosting?

One option may be to put a <Limit POST> in an .htaccess file.

Oh, and keep in mind <Limit TOP_POSTING>.

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409

---

## #51101 — james.butler@edigitalresearch.com — 2010-12-20T21:59:43+00:00

URL: https://externals.io/message/51074#51101 · In reply to: #51074

> -----Original Message-----
> From: Daniel Convissor [mailto:danielc@analysisandsolutions.com] 
>
> Hi James:
>
> 
> > […]
>
> One option may be to put a <Limit POST> in an .htaccess file.
My thought is that though this is best left to web server in the grand scheme of not making the world too ugly, seeing as people on shared hosts can't change many server settings (if any) but probably can use .htaccess, this would be giving them access to potentially useful feature which those on VPS/dedicated hosts don't need to worry about as we can play with server settings.

> Oh, and keep in mind <Limit TOP_POSTING>.
Apologies, laziness getting the better of me :-)
>
> --Dan
