Jump to content

get the complete client's request headers


raven74

Recommended Posts

Is there any way of getting the complete client's request headers including the first line?

 

I want to ban users from sending TRACE, TRACK etc request headers to my site. I know this can be done in apache but I don't have permission to modify those files.

 

For example write in terminal:

telnet mysite.com 80

TRACE / HTTP/1.0

 

The above sends a TRACE header to the server that I would like to ban.

 

Can this be done with PHP?

Is there any way of getting the complete client's request headers including the first line?

 

I want to ban users from sending TRACE, TRACK etc request headers to my site. I know this can be done in apache but I don't have permission to modify those files.

 

For example write in terminal:

telnet mysite.com 80

TRACE / HTTP/1.0

 

The above sends a TRACE header to the server that I would like to ban.

 

Can this be done with PHP?

 

You can easily do it through .htaccess file in the root.

 

Please read:

http://www.askapache.com/htaccess/apache-htaccess.html

http://corz.org/serv/tricks/htaccess2.php

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.