Block McAfee IP addresses from logging errors

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
AlanW
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 42
Joined: Wed Apr 08, 2009 12:47 pm

Block McAfee IP addresses from logging errors

Post by AlanW » Mon Jun 01, 2009 9:08 am

We need to block McAfee IP addresses from logging errors. When McAfee scans the site the error log file quickly grows to thousands of error messages until finally the database gets full and the site goes down. We've configured the McAfee scan to exclude a range of pages with wildcard characters for categories/ products but the problem is still occuring.

We need to exclude the list of McAfee servers from logging error. Any ideas?

--Alan Wills


User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Re: Block McAfee IP addresses from logging errors

Post by Logan Rhodehamel » Wed Jun 03, 2009 10:26 am

McAfee purposely submits invalid data to various fields as part of the scan. Our application was logging an error when unexpected data was present in certain fields, but this error was not helpful in conjunction with automated site scans. This has been corrected as part of the 7.0.3 release.
Cheers,
Logan
Image.com

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.

AlanW
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 42
Joined: Wed Apr 08, 2009 12:47 pm

Re: Block McAfee IP addresses from logging errors

Post by AlanW » Wed Jun 03, 2009 12:44 pm

I changed web.config as follows

Code: Select all

 <system.web>
    <customErrors mode="On"/>
    <pages theme="AbleCommerce" enableEventValidation="false" validateRequest="false">
to

Code: Select all

<system.web>
    <customErrors mode="On"/>
    <pages theme="AbleCommerce" enableEventValidation="false" validateRequest="true">

and added validateRequest="false" to the Admin/web.config

Is that an acceptable work around until we can apply 7.0.3 ?

Thanks,
Alan

Post Reply