♥FIMBLE Posted July 8, 2009 Share Posted July 8, 2009 I am about to release version 3 of the IP Trap, Updated features Cleaned code, Added a Whitelist, with Search engine IP numbers loaded Redesigned the Blocked.php page. Added correct syntax for robots.txt Updated install file. Any comments, questions first see the readme in the contribution then ask here. http://addons.oscommerce.com/info/5914 Enjoy Nic Joe234 and wolfy 2 Quote Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
rocdy Posted July 9, 2009 Share Posted July 9, 2009 I am about to release version 3 of the IP Trap, Updated features Cleaned code, Added a Whitelist, with Search engine IP numbers loaded Redesigned the Blocked.php page. Added correct syntax for robots.txt Updated install file. Any comments, questions first see the readme in the contribution then ask here. http://addons.oscommerce.com/info/5914 Enjoy Nic I have found this is good addon in version 2.1 but when i upgrade into version 3 it not working. I just tested and i find my ip have not banned when i type www.bnetb-tanahabang.com/personal two or three time. Any idea about this issue? Quote Rocdy Beginner in php programming and still learning from this forums. Special thanks for Oscommerce Community Forums that help me a lot. :-) Link to comment Share on other sites More sharing options...
♥FIMBLE Posted July 9, 2009 Author Share Posted July 9, 2009 I have found this is good addon in version 2.1 but when i upgrade into version 3 it not working. I just tested and i find my ip have not banned when i type www.bnetb-tanahabang.com/personal two or three time. Any idea about this issue? Hi I just tried it on you site and got myself banned ... it works! I tried to load a few different pages and got the blocked.php page each time. Nic Quote Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
Guest Posted July 9, 2009 Share Posted July 9, 2009 HiI just tried it on you site and got myself banned ... it works! I tried to load a few different pages and got the blocked.php page each time. Nic Hi Nic I went to http://www.development-server.net/j/personal and did not get banned. Used IE6 if that helps. Quote Link to comment Share on other sites More sharing options...
♥FIMBLE Posted July 9, 2009 Author Share Posted July 9, 2009 Hi Leslie How are you, long time no hear! The last few days i have has server issues, resulting in my host carrying out a set or restores, i noticce a few things have changed! If you give it a moments then try it again please. Nic Quote Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
Guest Posted July 9, 2009 Share Posted July 9, 2009 Hi LeslieHow are you, long time no hear! The last few days i have has server issues, resulting in my host carrying out a set or restores, i noticce a few things have changed! If you give it a moments then try it again please. Nic I still get the home page (tried several times in a row). Even tried FF with same result. Quote Link to comment Share on other sites More sharing options...
mr_absinthe Posted July 9, 2009 Share Posted July 9, 2009 Hi, same here, when I go to: http://www.development-server.net/j/personal I get blocked.php, however I can still visit http://www.development-server.net/. However as far as I can tell, it works fine on my site. You can try it, Leslie: my store Quote Absinthe Original Liquor Store Link to comment Share on other sites More sharing options...
♥FIMBLE Posted July 9, 2009 Author Share Posted July 9, 2009 Hi, same here, when I go to: http://www.development-server.net/j/personal I get blocked.php, however I can still visit http://www.development-server.net/. However as far as I can tell, it works fine on my site. You can try it, Leslie: my store Hi Thank you for the input, yes you would be able to see the root directory as the trap is set up in the "j" folder. Nic Quote Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
♥FIMBLE Posted July 9, 2009 Author Share Posted July 9, 2009 Hi Leslie, I have had a look athe code once again, it all seems fine! Whats yout IP number? Nic Quote Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
masterc00ps Posted July 9, 2009 Share Posted July 9, 2009 Just after installing I tested, and got the banned + the email reporting it. But when going back to index.php I had access. I checked IP_Trapped.txt for my ip address, and it wasn't there. Worked out that it was a write permission problem, so CHMOD'd file to 666. And all is now fine and working. I may have missed it when installing, but don't remember see it, but hope it helps other to get it working. c00ps Quote Link to comment Share on other sites More sharing options...
♥FIMBLE Posted July 9, 2009 Author Share Posted July 9, 2009 Hi CooPs I have a feeling i left that part out of the install file. it is in the early ones! The permissions for the banned / IP_Trapped.txt and the banned / Whitlist.txt sould be set to 666. Nic Quote Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
mr_absinthe Posted July 9, 2009 Share Posted July 9, 2009 Works fine on the"j" folder. On my site, it works fine with CHMOD 644 on both files, 755 on folder. Quote Absinthe Original Liquor Store Link to comment Share on other sites More sharing options...
azer Posted July 9, 2009 Share Posted July 9, 2009 a question about the code since secret.php is called from application_top.php why don't we use configure.php variables for the various adress written in hardcode instead ? { header ('Location: http://www.yoursite.net/catalog/blocked.php'); exit; could for instance use DIR_WS_HTTPS_CATALOG etc etc tell me ?! Quote MS2 Link to comment Share on other sites More sharing options...
♥FIMBLE Posted July 9, 2009 Author Share Posted July 9, 2009 a question about the codesince secret.php is called from application_top.php why don't we use configure.php variables for the various adress written in hardcode instead ? { header ('Location: http://www.yoursite.net/catalog/blocked.php'); exit; could for instance use DIR_WS_HTTPS_CATALOG etc etc tell me ?! I thought of this, its also able at present with a minor change, portable to non osC sites, so i decided it will be best like this and you can drop your attitude thanks Quote Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
♥FIMBLE Posted July 9, 2009 Author Share Posted July 9, 2009 To add more security, this will be in the next update. For those on a Linux server add the following to prevent your banned / IP_Trapped.txt and your Whitelist.txt being visible when called for in a browser Add SetEnvIfNoCase Request_URI IP_Trapped\.txt ban <Files ~ "^.*$"> order allow,deny allow from all deny from env=ban </Files> SetEnvIfNoCase Request_URI Whitelist\.txt ban <Files ~ "^.*$"> order allow,deny allow from all deny from env=ban </Files> To your .htaccess file, the one inside your catalog folder. Nic Quote Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
azer Posted July 9, 2009 Share Posted July 9, 2009 and you can drop your attitude what do you mean ? i was justing asking if it wouldnt be easier so people make no mistakes in the url with / and \ for instance Quote MS2 Link to comment Share on other sites More sharing options...
♥FIMBLE Posted July 9, 2009 Author Share Posted July 9, 2009 tell me ?! Maybe a languages thing, but that above is considered to be condescending here. If it was not meant this way i apologise. Personally i prefer to keep as is due to the fact it is easily ported to another style of code. Nic Quote Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
♥FIMBLE Posted July 9, 2009 Author Share Posted July 9, 2009 I have been working with Isabella (Biancoblu) who has been testing this for me pre release, and post release, and has been an invaluable help. She has an index solution that can be used to protect your banned folder which does not have an index. I have given her access to the IP Trap uploads so maybe she will upload this to be included Nic Quote Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
azer Posted July 9, 2009 Share Posted July 9, 2009 look at my racord it makes 5 years i m an active member here if i was condescending i would be out from oscommerce project since a long time.. no the ? is for the question and ! is to say if it works could be cool :-) ;) Quote MS2 Link to comment Share on other sites More sharing options...
Guest Posted July 9, 2009 Share Posted July 9, 2009 Hi CooPsI have a feeling i left that part out of the install file. it is in the early ones! The permissions for the banned / IP_Trapped.txt and the banned / Whitlist.txt sould be set to 666. Nic Hi Nic I wish to let you know the previous version worked for me. I can't get banned when I go to your new url. Quote Link to comment Share on other sites More sharing options...
♥FIMBLE Posted July 9, 2009 Author Share Posted July 9, 2009 Thanks leslie, do you have you IP number so i can see if it least registered please? Nic Quote Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
♥Biancoblu Posted July 9, 2009 Share Posted July 9, 2009 I have been working with Isabella (Biancoblu) who has been testing this for me pre release, and post release, and has been an invaluable help.She has an index solution that can be used to protect your banned folder which does not have an index. I have given her access to the IP Trap uploads so maybe she will upload this to be included Nic Nic, I have uploaded the package you mentioned to your IP Trap. This is a way of blocking the listing of folders by uploading a fake index to the folder in question. When you call the folder in a browser the fake index will load so you won't be able to see the list of files contained in the folder. The page will show the date and time of visit, the visitor's IP number, the folder they tried to view, and browser info. Infos will be emailed to you. ***WARNING: do not use in folders that already contain an index.php file!*** Nic, again thanks for your IP trap and all your other great contributions. Isabella cruda55 1 Quote ~ Don't mistake my kindness for weakness ~ Link to comment Share on other sites More sharing options...
♥altoid Posted July 10, 2009 Share Posted July 10, 2009 Hi Nic I wish to let you know the previous version worked for me. I can't get banned when I go to your new url. Nic, as with Leslie my previous version worked. That was 2.1 for me. I can access http://www.development-server.net/j/personal, it takes me to http://www.development-server.net/j/index.php The same thing happens on my site, when I put in the ****/personal URL I go to my index page instead. Outside of that thanks for your work, I know enough about code use (in vb for applications) to know it can be an adventure. :) I'd be glad to help with testing if you want. Thanks Steve Quote I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can. I remember what it was like when I first started with osC. It can be overwhelming. However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc. There are several good pros here on osCommerce. Look around, you'll figure out who they are. Link to comment Share on other sites More sharing options...
alba Posted July 10, 2009 Share Posted July 10, 2009 Ive tried this latest version as well and no matter who tests it they are simply redirected back to the sites index.php file and nothign is logged in the banned file Quote Link to comment Share on other sites More sharing options...
Platinum Games Posted July 10, 2009 Share Posted July 10, 2009 hello all, i have updated to v3 IP TRAP i have found it hard to gtrap my ip when i go to test here no matter how may time i try. it seems that the IP_Trapped.txt file is not being written or something. CHMOD 644 banned file set to 755 not sue what the issue is i have tried everything? Quote Thanks in advance! Ben Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.