Forum Moderators: phranque
I came across something really interesting just now. I was running phpSitemapNG with the intention of creating a sitemap.xml file for google. Unfortunately the programmed bombed out (probably too many pages). So I was looking in the log file and came across this...
xx.xx.#*$!.xxx - - [21/Jul/2005:23:31:55 -0500] "GET /satelliteUS.shtml HTTP/1.1" 302 299 "http://www.mysite.com/satelliteUS.shtml" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; phpSitemapNG 1.4.5d)"
Well I have no such satelliteUS.shtml page on mysite.com and it returned a 302 code (isn't that usually a hijack?).
How should I go about finding out more about who this hijacker is?
Also, I noticed some of my own pages returned a 302 code when I have nothing in my .htaccess file related to that page. Is this also something to worry about?
I block such requests:
# BLOCK attempts to use our server as a proxy, but allow absolute URI requests to our site
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /?http:// [NC]
RewriteCond %{THE_REQUEST} !^(GET¦HEAD¦POST¦OPTIONS¦PROPFIND¦TRACE)\ /?http://([^.]+\.)?mydomain\.com/
RewriteRule .* - [F]
RewriteCond %{THE_REQUEST}!^(GET�HEAD�POST�OPTIONS�PROPFIND�TRACE)\
What is that character between GET/HEAD/POST/OPTIONS/PROPFIND/TRACE?
Presumably I can just copy this code into my .htaccess file changing only the domain name?
added: should it go in any particular position (before/after anything) in the .htaccess file (I'm no expert on that).
[edited by: stu2 at 10:19 pm (utc) on July 23, 2005]