nopCommerce team | a.m. wrote:Open Libraries\Nop.HttpModules.BlacklistModule\BlacklistHttpModule.cs file. And remove the following line
application.Response.StatusCode = 403;
ok Andrei i think it's a bug.
it worked but after testing it in many browsers i realized that it doesn't work in latest version of mozilla (v 3.6.8) and chrome (7.0.517.41), Netscape (v 9.006) and flock browser (v2.6.1).
If i block an I.P address and try to visit the website from that blocked I.P Address in the above mentioned browsers instead of getting blockaddress.htm i get the code of the html page like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>You're banned :(</title>
</head>
<body>
<h1>Ooops, it seems you're IP address or network was banned from this website!</h1>
<p>You or someone else used your IP and we have banned it :(</p>
</body>
</html>
I also noticed that when a banned I.P address is trying to visit the website, the code is redirecting the user to the banneraddress.htm but if you notice the address bar the link of the website remains same i.e www.website.com/default.aspx and it doesn't change to www.website.com/bannedaddress.htm.
Then i tried to visit the direct link "www.website.com/bannedaddress.htm" and it works fine in all the browsers even in browsers that i mentioned above.
So i think it is not a design bug, it's something to do with redirecting method, the banneraddress.htm is getting rendered by the code in such a way that is it not getting displayed properly. The reason i am saying this is because if it would have been a design bug then even visiting a direct link "www.website.com/bannedaddress.htm" will not display the page properly.
Andrei after testing if you think it's a bug and if you decide to fix it in the next version, could you please provide me the temporary fix for now so that i don't have to wait for 1.9version ?