Forum Moderators: phranque

Message Too Old, No Replies

.htaccess ip forwarding

don't know how

         

JumpingZero

2:30 pm on Apr 20, 2007 (gmt 0)

10+ Year Member



hi there
i have this problem at my site, that people are flooding my guestbook. now i blocked their ip with .htaccess however when you visit the site now you see at which domain the site is hosted.
now i want to forward those ip's as soon as they enter a site, to an own created page which says they are banned...

how do i do that, or is it even possible?

grrtz

jdMorgan

2:35 pm on Apr 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It sounds like the code that you added to block their IP addresses is incorrect, and is 'exposing' the domain. Instead of adding code, you should correct the code you've got.

Jim

JumpingZero

8:58 am on Apr 21, 2007 (gmt 0)

10+ Year Member



i use this code

Order allow,deny
deny from 213.46.83.7
allow from all

which works, because i tested it on myself,
i can't reach the site,
however, i want the ip's i blocked to be redirected to another site

i found this code
but that does not work?
RewriteCond %{REMOTE_ADDR} ^86\.xyz\.4\.182$ [OR]
RewriteCond %{REMOTE_ADDR} ^75\.xyz\.244\.27$
RewriteRule .* http://www.usdoj.gov/criminal/cybercrime/cyberstalking.htm [R,L]

any help is welcome

grtz

[edited by: jdMorgan at 3:18 pm (utc) on April 21, 2007]
[edit reason] Obscured IP addresses [/edit]

jdMorgan

12:07 am on Apr 22, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Maybe I misunderstood your question.

Take a look at the Apache ErrorDocument directive [httpd.apache.org].

You can use that to define a custom error page for 403-Forbidden responses.

Jim