Re: Apache blocking certain requests instead of php
| From: | Chris | Date: | Thu, 24 Jul 2008 07:38:57 +0000 |
| Subject: | Re: Apache blocking certain requests instead of php | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-277230@lists.php.net to get a copy of this message | ||
Børge Holen wrote:
> On Thursday 24 July 2008 09:14:55 Chris wrote:
>>> I was hoping there's a way to tell apache to block requests where
>>> id=non_numeric.
>> It's trying to do a remote inclusion.
>>
>> It's easy for you to fix in php:
>>
>> if (isset($_GET['id'])) {
>> if (!is_numeric($_GET['id'])) {
>> die("Die hacker die!");
>
> thats sudden! ;)
ok maybe a bit harsh :P
stop hacker stop ?
;)
--
Postgresql & php tutorials
http://www.designmagick.com/