Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / General Questions / Is there a way I can block an IP from my Site in Zen Cart

Is there a way I can block an IP from my Site in Zen Cart

Locked

Started by skreeners on 21 Nov 2007, 5:13 PM · Views: 1,065

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
21 Nov 2007, 5:13 PM
#1
skreeners avatar

skreeners

New Zenner

Join Date:
May 2007
Posts:
1
Plugin Contributions:
0

Is there a way I can block an IP from my Site in Zen Cart

I have been having malicious IPS floating around my site and would like to know if there is a way to block specific IPS from accessing the site in general?

21 Nov 2007, 9:55 PM
#2
poolprorich avatar

poolprorich

Zen Follower

Join Date:
Aug 2007
Location:
Tampa FL.
Posts:
143
Plugin Contributions:
0

Re: Is there a way I can block an IP from my Site in Zen Cart

hello add somthing like this to your .htaccess file

order allow,deny
deny from 123.45.6.7
deny from 012.34.5.
allow from all
21 Nov 2007, 10:14 PM
#3
jasperguy avatar

jasperguy

New Zenner

Join Date:
Nov 2007
Posts:
21
Plugin Contributions:
0

Re: Is there a way I can block an IP from my Site in Zen Cart

Wow, simple and to the point, might have to use this on all sites I maintain.

Thanks.

My Zen Cart==
Version: 1.3.7.1

21 Nov 2007, 10:48 PM
#4
feelgood2k avatar

feelgood2k

New Zenner

Join Date:
Oct 2007
Posts:
20
Plugin Contributions:
0

Re: Is there a way I can block an IP from my Site in Zen Cart

Or if your server doesnt like that then you can do the same thing in your .htaccess with the following:

<IfModule mod_rewrite.c>
RewriteEngine on

RewriteCond %{REMOTE_ADDR} ^111.111.111.111$
RewriteCond %{REMOTE_ADDR} ^222.222.222.222$
RewriteCond %{REMOTE_ADDR} ^333.333.333.333$
RewriteRule ^.*$ - [F,L]

</ifModule>

...which gives them a forbidden (403) error page.

22 Nov 2007, 2:09 AM
#5
nomadrw avatar

nomadrw

Zen Follower

Join Date:
Sep 2007
Location:
Somewhere in Southern Cal
Posts:
331
Plugin Contributions:
0

Re: Is there a way I can block an IP from my Site in Zen Cart

Just a thought I could alway go on another computer an get into your store. Also one can change his or her IP address is they know what they are doing. If you have their IP address and they have logged in then you can send them an e-mail stating if they continue you will give this to the authorities

nomad