Jump to content



Latest News: (loading..)

- - - - -

block country IPs in addition to OSC_sec ban?


This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1   qwertyjjj

qwertyjjj
  • Members
  • 289 posts

Posted 05 May 2012 - 10:35 PM

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?

#2   Taipo

Taipo
  • Members
  • 754 posts

Posted 13 May 2012 - 01:35 AM

osC_Sec should only manage IP addresses between its own tags
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