Jump to content



Latest News: (loading..)

- - - - -

How to ban specific IP's?

security

  • Please log in to reply
3 replies to this topic

#1   annasmith

annasmith
  • Members
  • 4 posts
  • Real Name:Anna Smith
  • Gender:Female

Posted 22 July 2012 - 05:45 PM

Hey all,


I am newbi to osCommerce and want to know is there a way to ban specific ips.

I am using 3.2.1

Thanks in advance.

#2   Jack_mcs

Jack_mcs
  • Members
  • 25,303 posts
  • Real Name:Jack York
  • Gender:Male
  • Location:Michigan

Posted 22 July 2012 - 05:59 PM

That;s usually done via your control panel. Ask your host if there is an option to do it from there. You can also edit the .htaccess file in your root directory if you feel comfortable doing so.

#3   Praful Kamble

Praful Kamble
  • Members
  • 264 posts
  • Real Name:Praful
  • Gender:Male
  • Location:Pune, India

Posted 22 July 2012 - 06:01 PM

@annasmith

There are contributions available. Check for IP trap contribution.
Like post..hit LIKE button.

osCommerce | Joomla | WordPress | Magento | SEO | CakePHP | CI

Guaranteed Website Speed Optimization!!

#4   Juto

Juto
  • Members
  • 369 posts
  • Real Name:Sara
  • Gender:Female

Posted 22 July 2012 - 09:17 PM

@annasmith
Hi Anna, here's the simplest method, open up your htaccess file in your root directory and add (as an example):

#Russian malware scripter network range
deny from 178.0.0.0/8

or for a specific ip

deny from 204.11.219.90

you could also do it like these examples: (note the dot at the end)

deny from 204.11.219.

deny from 204.11.

deny from 204.

Regards

Sara