Forum Moderators: phranque

Message Too Old, No Replies

Ban ip Redirect Help!

Need some help about redirecting a banned IP

         

DeathShadowBA

9:23 am on Aug 16, 2004 (gmt 0)

10+ Year Member



Hey, I'm trying to block an IP and send the blocked address to a .html document located on the server. Do I have to use a .htaccess file? If not how can I go about this configuration in the main .config file. I don't want to use .htaccess if I do not have to... Sorry for posting yet another help question regarding banning IPs, all the results I got though were working with .htaccess files.

Thanks!

jdMorgan

2:37 pm on Aug 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The methods used differ very little, if at all, between .htaccess and httpd.conf. The local pathnames may need to be adjusted, but that's about it.

Jim

DeathShadowBA

4:55 pm on Aug 16, 2004 (gmt 0)

10+ Year Member



Example Anyone?

jdMorgan

5:04 pm on Aug 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sure, here's a few examples [google.com].

Jim

DeathShadowBA

5:29 pm on Aug 16, 2004 (gmt 0)

10+ Year Member



When I use rewrite in .config apache errors on me. Is there any special place or way to present the code in the .config file? I appreciate the help.

Running: Apache 2.x latest versions always on Linux servers.

Richard Overvold

5:45 pm on Aug 16, 2004 (gmt 0)

10+ Year Member



Do you have PHP support? Do you want to only disable access to one page, or the entire site? If it's just one page, then I have an excellent PHP script that will do the trick.

DeathShadowBA

6:08 pm on Aug 16, 2004 (gmt 0)

10+ Year Member



No, I am not a fan of any server side handlers for security reasons. I do most of the things I need through
custom coded miniservers and JavaScript/Flash action scripting. Pretty much what I am looking for is someone to help me out with what I have to do to make this work using the .config file. My goal is just to ban & redirect one IP or a range of IPs to another html document on the server. Thanks anyway!

DeathShadowBA

4:18 am on Aug 17, 2004 (gmt 0)

10+ Year Member



No one? :(

bull

5:47 am on Aug 17, 2004 (gmt 0)

10+ Year Member



Jim has already pointed out nearly everything.

DeathShadowBA

2:33 pm on Aug 18, 2004 (gmt 0)

10+ Year Member




DeathShadowBA
New User

joined:Aug 16, 2004
posts:5
msg #:55:29 pm on Aug 16, 2004 (utc 0)

When I use rewrite in .config apache errors on me. Is there any special place or way to present the code in the .config file? I appreciate the help.

Running: Apache 2.x latest versions always on Linux servers.