zurück zum General (english) | Seiten

spider.Man(R)

09.11.2008, 16:11
 

redirect question (General (english))

using the 1.1 beta

in .htaccess:

RewriteEngine on

# If denied access to error page forward
ErrorDocument 403 /ex/forbid.php

# Redirect when accessing /.
RewriteRule ^[^?]*/.[^.] /ex/forbid.php

# Redirect when accessing or using & #
RewriteRule & /ex/forbid.php
RewriteRule # /ex/forbid.php

# Exploits filter
RewriteCond %{THE_REQUEST} "^((GET|POST|HEAD) [^/]|CONNECT)" [NC]
RewriteRule .* /ex/forbid.php [L]

so... i expect that when i try to access anything that results in a 403, i will be directed to /ex/forbid.php (and banned) yes?

however, i just tested this today and this is not happening. i'm just being redirected to a generic 403 document. i do not recall if i tested at the time i installed Spider Trap, but i assume i would have.

JR-EWING(R)

10.11.2008, 09:34

redirect question


spider.Man(R)

10.11.2008, 15:40

redirect question

JR-EWING(R)

10.11.2008, 15:48

redirect question


spider.Man(R)

10.11.2008, 16:21

redirect question

i just checked and there's no .htaccess in cgi-bin, which makes me wonder why i was being redirected to a generic 403 at all, unless the host has apache configured to do that or something.

also tried this:

#ErrorDocument 403 /errordocs/403.shtml
#ErrorDocument 403 /ex/forbid.php
ErrorDocument 403 /ex/index.php

RewriteEngine on

# Used for Spider Trap, shouldn't be needed but won't work otherwise
#RewriteCond %{HTTP_HOST} ^0daynews.org$ [OR]
#RewriteCond %{HTTP_HOST} ^www.0daynews.org$
#RewriteRule ^errordocs/403.shtml$ "http://0daynews.org/ex/index.php" [R=301,L]

but this sends me in a redirect loop with address:

/cgi-bin/forbid.php

so i tried same as above except:

ErrorDocument 403 /ex/forbid.php
#ErrorDocument 403 /ex/index.php

# Used for Spider Trap, shouldn't be needed but won't work otherwise
#RewriteCond %{HTTP_HOST} ^0daynews.org$ [OR]
#RewriteCond %{HTTP_HOST} ^www.0daynews.org$
#RewriteRule ^errordocs/403.shtml$ "http://0daynews.org/ex/index.php" [R=301,L]

which is what i tried before, as posted earlier. it worked exactly ONCE (banned me), then resulted in a generic 404 every time thereafter :)

i tried changing permissions on index and forbid, but this didn't help. both are 644 currently.


Ähnliche Beiträge
Thema Author Antworten Letzter Beitrag
question - problem - suggestionspider.Man227.10.2008, 10:53



zurück zum General (english) | Seiten