IP trap Version 3 released
#1
Posted 08 July 2009 - 11:16 AM
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
#2
Posted 09 July 2009 - 05:26 AM
FIMBLE, on Jul 8 2009, 12:16 PM, said:
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?
Beginner in php programming and still learning from this forums.
Special thanks for Oscommerce Community Forums that help me a lot. :-)
#3
Posted 09 July 2009 - 07:27 AM
rocdy, on Jul 9 2009, 06:26 AM, said:
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
#4
Posted 09 July 2009 - 09:27 AM
FIMBLE, on Jul 9 2009, 05:27 PM, said:
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
I went to http://www.development-server.net/j/personal
and did not get banned.
Used IE6 if that helps.
The Coopco Underwear Shop
If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.
#5
Posted 09 July 2009 - 09:53 AM
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
#6
Posted 09 July 2009 - 11:16 AM
FIMBLE, on Jul 9 2009, 07:53 PM, said:
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
The Coopco Underwear Shop
If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.
#7
Posted 09 July 2009 - 12:36 PM
#8
Posted 09 July 2009 - 01:10 PM
mr_absinthe, on Jul 9 2009, 01:36 PM, said:
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
#9
Posted 09 July 2009 - 01:12 PM
I have had a look athe code once again, it all seems fine!
Whats yout IP number?
Nic
#10
Posted 09 July 2009 - 01:35 PM
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
#11
Posted 09 July 2009 - 01:44 PM
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
#12
Posted 09 July 2009 - 01:49 PM
#13
Posted 09 July 2009 - 01:53 PM
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 ?!
#14
Posted 09 July 2009 - 02:15 PM
azer, on Jul 9 2009, 02:53 PM, said:
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 ?!
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
#15
Posted 09 July 2009 - 04:11 PM
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
#16
Posted 09 July 2009 - 04:23 PM
Quote
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
#17
Posted 09 July 2009 - 04:48 PM
Quote
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
#18
Posted 09 July 2009 - 04:53 PM
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
#19
Posted 09 July 2009 - 04:55 PM
no the ? is for the question and ! is to say if it works could be cool :-)
#20
Posted 09 July 2009 - 05:25 PM
FIMBLE, on Jul 9 2009, 11:44 PM, said:
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
I wish to let you know the previous version worked for me. I can't get banned when I go to your new url.
The Coopco Underwear Shop
If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.









