Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Ban IP address


Sierra_8561

Recommended Posts

Hi,

 

Is it possible to ban a IP from entering os commerce site?? I am totally a newbie at this please help

 

Yes, simply add this line in the file .htaccess in your web root path

 

deny from ip.add.re.ss

 

where "ip.add.re.ss" is obviously the IP address you want to ban.

 

However, be careful, if you are absolutely certain that the IP is an individual or only coming from (for example) one domain, then it is usually okay. But, if the IP is from an ISP, you may potentially block out thousands of people, for example dialup connections sharing the same IP address.

 

Peter

Link to comment
Share on other sites

Is it possible to ban a IP from entering os commerce site?? I am totally a newbie at this please help

Thanks

There is a contribution called BanIP that works for all hosts (only Apache servers use .htaccess).

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...