Shopping cart overload on purpose

General ShopSite user discussion

Shopping cart overload on purpose

Postby Lee.K » Thu Jul 11, 2013 11:14 am

Someone is loading up my shopping cart with hundreds of items, obviously with no intention of purchasing them, and eventually I get a Merchant Alert because the UPS quote system says it has too many packages. I'd like to ban the IP address of this user from my site but the merchant alert doesn't provide this. It doesn't even provide the time of the alert - just the date and AM. If I had the time at least I'd be able to match it up to my server logs to get the IP.

Any ideas on how to stop these 'attacks'?

I'm running ShopSite® Pro 11 sp2 r5

Thanks,
Lee
ShopSite® Pro 12 sp2 r1
Lee.K
 
Posts: 25
Joined: Wed Jan 11, 2012 11:44 am

Re: Shopping cart overload on purpose

Postby Jim » Thu Jul 11, 2013 12:32 pm

The "attacks" are probably a search engine that is following all the links on your pages, many of which would be add to cart links.
You should add a robots.txt file to your home directory that excludes the url to the shopping cart.

Checkout http://www.robotstxt.org/ for some info on robots.txt file usage . A websearch for robots.txt will bring up other helpful pages.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Shopping cart overload on purpose

Postby Lee.K » Sun Jul 14, 2013 1:07 pm

I'll add an exclude. I didn't try that since this is a site that's been running for a long time and I've never had this problem before.

Thanks.
Lee

Quick edit... never mind. I just realized I already have the entire cgi-sys directory (where my cart link starts) already disallowed in my robots.txt so this isn't it.

Luckily I haven't had this problem again yet. It only happened on one day (which gave me 8 merchant alerts).
ShopSite® Pro 12 sp2 r1
Lee.K
 
Posts: 25
Joined: Wed Jan 11, 2012 11:44 am

Re: Shopping cart overload on purpose

Postby Jim » Wed Jul 24, 2013 9:55 pm

A robots.txt exclusion statement doesn't mean that robots can't access the files it just means that the "good" ones won't. Anyone with some programming knowledge can write a web spider that will crawl websites looking for links and they don't have to obey a robots.txt statement. But the good ones, Google, Bing, Yahoo etc will observer any exclusion statements. If it happens again look in the logs for the IP it is coming from and exclude that IP from access to the server.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Shopping cart overload on purpose

Postby Lee.K » Thu Jul 25, 2013 2:47 pm

That was my original question. I want to ban the ip address but the merchant alert doesn't provide this or even provide the time of the alert - just the date and AM. That makes it very hard to match it up to my log (which are very big). I wanted to know if there was any way to get either the ip address or the time of the alert in the merchant alert.
ShopSite® Pro 12 sp2 r1
Lee.K
 
Posts: 25
Joined: Wed Jan 11, 2012 11:44 am

Re: Shopping cart overload on purpose

Postby Jim » Thu Jul 25, 2013 3:29 pm

There isn't a way to get either of those, time or IP, with the current version of ShopSite. The next release (sometime this fall) will have the time and IP included in the alert listing found under Commerce Setup > Merchant Alerts and in the email alert.
It will display the date and time like this: Time: Jul 10, 2013 11:30 AM and the IP and some other info like this
IP: 10.1.5.128
Host Name: Not Determined
Cookies Enabled: Yes
JavaScript: Yes
User Agent:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0

Note that currently the email of the alert being sent out should have a time stamp fairly close to the time where the error occurs. So you might be able to use that to give you a close approximation of the time which you can use to search in the server logs.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Shopping cart overload on purpose

Postby Lee.K » Mon Jul 29, 2013 7:27 pm

Thanks.

Good to know of the future improvements. For now my site hasn't experienced this 'attack' since the initial event. I figure if I can make it through the PCI Compliance tests, I can get through anything.
ShopSite® Pro 12 sp2 r1
Lee.K
 
Posts: 25
Joined: Wed Jan 11, 2012 11:44 am


Return to User Forum

Who is online

Users browsing this forum: No registered users and 16 guests

cron