I have OSC=sec installed and it rewrites the htaccess file to ban specific ip addresses regularly.
However, I also need to blovck some countries but when I add my own deny order, it overwrites this later?
How can I add my own section here without having osc overwrite it?
Latest News: (loading..)
block country IPs in addition to OSC_sec ban?
Started by qwertyjjj, May 05 2012 10:35 PM
1 reply to this topic
#1
Posted 05 May 2012 - 10:35 PM
#2
Posted 13 May 2012 - 01:35 AM
osC_Sec should only manage IP addresses between its own tags
You can add your own ip addresses between those tags or just create your own tags above the osC_Sec ip block, which osC_Sec will ignore.
Example IP block:
osC_Sec will search for its own tag block and only add IP addresses in there.
www.yoursite.com Osc_Sec Ban
You can add your own ip addresses between those tags or just create your own tags above the osC_Sec ip block, which osC_Sec will ignore.
Example IP block:
# My Custom Country Bans order allow,deny deny from 2.2.2.2 allow from all # end of My Custom Country Bans # yoursite.com Osc_Sec Ban order allow,deny deny from 111.111.111.111 deny from 111.111.111.112 deny from 111.111.111.113 deny from 111.111.111.114 allow from all # End of yoursite.com Osc_Sec Ban
osC_Sec will search for its own tag block and only add IP addresses in there.
- Stop Oscommerce hacks dead in their tracks with osC_Sec (see discussion here)
- Another discussion about infected files ::here::
- A discussion on file permissions ::here::
- Site hacked? Should you upgrade or not, some thoughts ::here::
- Ignore this link - just a honeypot site to test my ideas out for osC_Sec and allow the site to be picked up by attackers.
- Fix the admin login bypass exploit here
- Aegis Security: New security addon I am developing, a remake of osC_Sec in PHP 5 with a number of fixes
- Another discussion about infected files ::here::
- A discussion on file permissions ::here::
- Site hacked? Should you upgrade or not, some thoughts ::here::
- Ignore this link - just a honeypot site to test my ideas out for osC_Sec and allow the site to be picked up by attackers.
- Fix the admin login bypass exploit here
- Aegis Security: New security addon I am developing, a remake of osC_Sec in PHP 5 with a number of fixes









