If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / More than 6000 entries on "Who's Online"

More than 6000 entries on "Who's Online"

Started by harry2cool on 23 Mar 2016, 1:53 PM · Views: 540

Results 1 to 4 of 4
23 Mar 2016, 1:53 PM
#1
harry2cool avatar

harry2cool

Zen Follower

Join Date:
Oct 2005
Posts:
280
Plugin Contributions:
0

Post #1 by harry2cool

Just now I see the below on our "Who's Online Page"

Currently there are 6973 customers online
Duplicate IP Addresses: 6906
Total Unique Users: 67.

This time most of them are from :
Host: -host.colocrossing.com

They are from multiple Ip's

How do we avoid such situations , is there a way to block these types of visits automatically.

We are on Zencart version v1.5.4

23 Mar 2016, 5:23 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

colocrossing.com is a hosting service, a server farm. It's not uncommon to find several of their servers hijacked and used for spamming and ddos attacks.

You could add a "deny" rule into your hosting account (ie: .htaccess rule, or otherwise) to block the IP ranges represented by those IP addresses.
Or if you have your own server and you control its firewall, you could block those IP ranges using that.

There isn't anything in Zen Cart that can magically detect whether a visitor is a spammer.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 Mar 2016, 5:36 PM
#3
harry2cool avatar

harry2cool

Zen Follower

Join Date:
Oct 2005
Posts:
280
Plugin Contributions:
0

Post #3 by harry2cool

Thanks for the reply DrByte

There were several Ip's all different

I followed this link:
http://support.hostgator.com/articles/specialized-help/technical/apache-htaccess/user-agent-blocks-mainly-for-bots

and used these codes on the .htaccess:
##begin code
##start blocking potentially unwanted bots.
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]
RewriteCond %{HTTP_USER_AGENT} ^colocrossing
RewriteRule ^.* - [F,L]
##end code. bai bots.

hopefully will not face this issue again.

Thanks

23 Mar 2016, 6:59 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #4 by drbyte

I doubt the "user agent" was set to colocrossing, as I doubt they were "search bots".

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.