684 users online
Register
Log in
Shopping Cart
(0)
Home
Product
Overview
Features
Store demo
Screenshots
Showcase - live shops
Copyright Notice Removal
System Requirements
Roadmap
Contribute
Team Members
License
Downloads
Download nopCommerce
Extensions
Release Notes
Support
Documentation
Forums
Partners
Recommended Hosting
Solution Partners
Become a Partner
Community sponsorship program
My Account
Contacts
Tweet
Home
/
Forums
/
General
/
Security
/
IP Restriction in 2.2
IP Restriction in 2.2
Reply
1
2
Next
oursure
Total Posts:
4
Karma:
20
Joined:
10/4/2010
Location:
United States
PM
Posted:
5 months ago
Quote
Can you use <ipsecurity> in web.config to block access by IP address in nop2.2?
0
Please
login or register
to vote for this post.
(click on this box to dismiss)
a.m.
Total Posts:
6508
Karma:
44322
Joined:
10/22/2008
Location:
Russia
PM
Posted:
5 months ago
Quote
Sure, you can
0
Please
login or register
to vote for this post.
(click on this box to dismiss)
Andrei Mazoulnitsyn,
LinkedIn - http://ru.linkedin.com/in/mazoulnitsyn
Twitter - http://twitter.com/#!/nopCommerce
Facebook community page - http://www.facebook.com/pages/NopCommerce/108282972527146
Google+ page - https://plus.google.com/100073150079669136049
New York
Total Posts:
702
Karma:
5977
Joined:
5/22/2011
Location:
United States
PM
Posted:
5 months ago
Quote
What is the recommended what to blacklist IPs in nop 2.x ?
0
Please
login or register
to vote for this post.
(click on this box to dismiss)
If my answer was helpful, please vote it up.
thrifty34
Total Posts:
297
Karma:
1757
Joined:
6/30/2010
Location:
United States
PM
Posted:
5 months ago
Quote
I keep getting a 500 Error when using <ipsecurity>
0
Please
login or register
to vote for this post.
(click on this box to dismiss)
www.happycoral.com
"Aquariums always look better with Happy Coral"
New York
Total Posts:
702
Karma:
5977
Joined:
5/22/2011
Location:
United States
PM
Posted:
5 months ago
Quote
Does not work for me either. Even on localhost (IIS Express)
<system.webServer>
<security>
<ipSecurity allowUnlisted="true"> <!-- this line allows everybody, except those listed below -->
<clear/> <!-- removes all upstream restrictions -->
<add ipAddress="38.100.21.19"/> <!-- block one IP -->
</ipSecurity>
</security>
<modules runAllManagedModulesForAllRequests="true" />
<validation validateIntegratedModeConfiguration="false" />
<handlers>
<remove name="asset" />
<add name="asset" preCondition="integratedMode" verb="GET,HEAD" path="asset.axd" type="Telerik.Web.Mvc.WebAssetHttpHandler, Telerik.Web.Mvc" />
</handlers>
</system.webServer>
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information:
Module IpRestrictionModule
Notification BeginRequest
Handler ExtensionlessUrl-Integrated-4.0
Error Code 0x80070021
Config Error This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".
Config File \\?\C:\Users\myname\Documents\My Web Sites\myweb\web.config
Config Source:
73: <security>
74: <ipSecurity allowUnlisted="true"> <!-- this line allows everybody, except those listed below -->
75: <clear/> <!-- removes all upstream restrictions -->
(From Trace file)
ModuleName IpRestrictionModule
Notification BEGIN_REQUEST
HttpStatus 500
HttpReason Internal Server Error
HttpSubStatus 19
ErrorCode The process cannot access the file because another process has locked a portion of the file.
(0x80070021)
ConfigExceptionInfo
\\?\C:\Users\myname\Documents\My Web Sites\myweb\web.config ( 74) :This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".
0
Please
login or register
to vote for this post.
(click on this box to dismiss)
If my answer was helpful, please vote it up.
New York
Total Posts:
702
Karma:
5977
Joined:
5/22/2011
Location:
United States
PM
Posted:
4 months ago
Quote
Has anyone tried using ipSecurity in NopC web.config? Is it working for anyone?
0
Please
login or register
to vote for this post.
(click on this box to dismiss)
If my answer was helpful, please vote it up.
cjcommerce
Total Posts:
6
Karma:
30
Joined:
3/25/2010
Location:
United States
PM
Posted:
4 months ago
Quote
where's the "BLACKLIST" in NOP 2.X ??
0
Please
login or register
to vote for this post.
(click on this box to dismiss)
New York
Total Posts:
702
Karma:
5977
Joined:
5/22/2011
Location:
United States
PM
Posted:
4 months ago
Quote
@nopC Team
Would you please add work item(s) to either implement Ip Blacklist or add some hooks so that it could be done with a plugin?
Also, same regarding IsSearchEngine(). To prevent consumption of Customer Ids due to "guest access" by pingalive.com, for now I'm hard coding, but it would be nice to have some hook for a plugin.
src\Libraries\Nop.Core\WebHelper.cs
public virtual bool IsSearchEngine(HttpRequestBase request)
{
...
result = request.Browser.Crawler;
if (!result)
{
//put any additional known crawlers in the Regex below for some custom validation
//var regEx = new Regex("Twiceler|twiceler|BaiDuSpider|baduspider|Slurp|slurp|ask|Ask|Teoma|teoma|Yahoo|yahoo");
//result = regEx.Match(request.UserAgent).Success;
result = "77.73.3.96,".Contains(request.UserHostAddress); //pingalive.com
}
...
0
Please
login or register
to vote for this post.
(click on this box to dismiss)
If my answer was helpful, please vote it up.
a.m.
Total Posts:
6508
Karma:
44322
Joined:
10/22/2008
Location:
Russia
PM
Posted:
4 months ago
Quote
New York wrote:
...
Sure
0
Please
login or register
to vote for this post.
(click on this box to dismiss)
Andrei Mazoulnitsyn,
LinkedIn - http://ru.linkedin.com/in/mazoulnitsyn
Twitter - http://twitter.com/#!/nopCommerce
Facebook community page - http://www.facebook.com/pages/NopCommerce/108282972527146
Google+ page - https://plus.google.com/100073150079669136049
cjcommerce
Total Posts:
6
Karma:
30
Joined:
3/25/2010
Location:
United States
PM
Posted:
4 months ago
Quote
Wondering if Anyone else is MISSING the "Blacklist" feature. We have just launched on NOP 2.3 and Now our site gets hit ALL DAY long with traffic from China, India, etc.
Why would this feature be taken out of A Shopping Cart Solution, leaving Shopping Cart admin's like myself "Naked" with no solution to get Rid of this traffic.
If you currently have a NOP Solution running and make use of the Blacklist, I would NOT recommend upgrading to 2.X as there is NO
easy to use
menu on the Admin Back end to manage IP's and/or networks.
0
Please
login or register
to vote for this post.
(click on this box to dismiss)