Page 1 of 1
Any way to block an IP address?
Posted: Sat Oct 14, 2017 2:52 pm
by KensGiftShop
I have a site I am working on and ever since I upgraded to 3.0.2.0, I have someone that will create about 20 accounts every couple days. They are all from the same IP address. Is there any way to block an IP address? I have 3 sites with this version of Open Cart and only have the problem on one site. I don't know what they are trying do?
All the accounts have different names and email address's, but the same IP address.
Re: Any way to block an IP address?
Posted: Sat Oct 14, 2017 3:06 pm
by bumcarks
write the below code in htaccess file and replace block IP
Order Deny,Allow
Deny from Block_IP
Re: Any way to block an IP address?
Posted: Sat Oct 14, 2017 3:16 pm
by KensGiftShop
Is this correct and does it matter where it is placed?
Order Deny,Allow
Deny from 77.232.66.255
Re: Any way to block an IP address?
Posted: Sat Oct 14, 2017 11:45 pm
by IP_CAM
Code: Select all
<Files>
deny from 211.202.
deny from 212.
deny from 213.145.
deny from 213.251.
deny from 216.
deny from 217.
</Files>
COMES BEFORE:
# SEO URL Settings
RewriteEngine On
RewriteBase /
Re: Any way to block an IP address?
Posted: Sun Oct 15, 2017 1:25 am
by KensGiftShop
IP_CAM
Where would you place that code?
Re: Any way to block an IP address?
Posted: Sun Oct 15, 2017 4:34 am
by IP_CAM
as bumcarks mentioned:
write the below code in .htaccess file and replace block IP
Re: Any way to block an IP address?
Posted: Mon Oct 16, 2017 9:56 am
by KensGiftShop
I've tried both of these suggestions and they are still able to get in and create bogus accounts.
Re: Any way to block an IP address?
Posted: Mon Oct 16, 2017 10:48 am
by IP_CAM
did you block the entire IP Number, or the first Sections, like:
deny from 4.251.121.
deny from 213.251.25.
because, if they use changing IP's, you have block entire
Subsections, not only individual Numbers, like
deny from 4.251.121.10
deny from 213.251.25.121
BUT, they have many ways, to fool you, when it comes to IP-Numbers,
and you could possibly have entered the content wrongly into the
.htaccess file, among some other settings, to make it unworkable,
so, it cannot be said, from far away, how this problem can be solved.
Ernie
Re: Any way to block an IP address?
Posted: Tue Oct 17, 2017 2:09 am
by KensGiftShop
I did the whole number and it's always the same IP address.
Re: Any way to block an IP address?
Posted: Tue Oct 17, 2017 10:31 pm
by Johnathan
If you want something that doesn't require htaccess, I have a
Geo IP Tools extension that can be used for this. You can enter a list of IP addresses or IP ranges, and set a "blocked" message that users will see if they have a matching IP address. If blocked, that "blocked" page is the only page they'll be able to see. It also adds some data in the session to mark them as blocked, so even if they immediately switch their IP, it *should* keep them blocked (until their session is cleared).
Feel free to take a look at the screenshots and demo site, and if you're interested let me know at
www.getclearthinking.com/contact if you have any further questions.