Forum Moderators: DixonJones

Message Too Old, No Replies

Redirecting Users based on IP Addresses

redirecting, asian traffic, redirecting unk traffic

         

domingo

7:14 am on Dec 19, 2002 (gmt 0)

10+ Year Member



Hi,

I have been asked to removed/minimize traffic from the following IP addresses

61.
202.
203.
210.
211.
218.
219.
220.

These IP's belong to Asian countries and as such the PPC search engine which I am using has reservations on traffic generated from these IP addresses.

I have blocked these IP addresses by putting them in .htaccess file. However, I would like to explore the possibility of redirecting the traffic generated from these IP addresses to a different website or a web page.

Is there anyway to implement this by using MOD_REWRITE or any other PHP, PERL Script.

Regards,

P.S. This will also put me on the ban list, as I live in Pakistan :(

domingo

6:10 am on Dec 20, 2002 (gmt 0)

10+ Year Member



Hi,

I find a way to overcome this situation. Here is my .htaccess file
------------------------------------------------------
# -FrontPage-

IndexIgnore .htaccess */.?* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order allow,deny
deny from 61
deny from 203.
deny from 210.
deny from 211.
deny from 219.
deny from 220.
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName TopOne.com
AuthUserFile /home/domingo/www/_vti_pvt/service.pwd
AuthGroupFile /home/domingo/www/_vti_pvt/service.grp
ErrorDocument 404 /404.php
ErrorDocument 403 /403.php

-----------------------------------------------------

Any other suggestions?

Regards

[edited by: sugarkane at 7:13 am (utc) on Dec. 20, 2002]