[Zen Cart] How to Block IP address from .htaccess

Magic SEO URLs general discussion forum.

[Zen Cart] How to Block IP address from .htaccess

Postby rashusweb » Mon Dec 19, 2011 9:56 am

please suggest me how to block IP address as some websites are eating my band width, am using both .htaccess and readonly-htaccess in root folder. in which file need to write code for deny ip.
am loosing changes as .htaccess is read-only. do i need to change permission? please suggest.
rashusweb
 
Posts: 2
Joined: Wed Sep 15, 2010 11:43 pm

Re: [Zen Cart] How to Block IP address from .htaccess

Postby ~J~ » Mon Dec 19, 2011 10:21 am

If your .htaccess file is still loosing your changes when you made this file readonly and you have placed "readonly.htaccess" file within same folder then it is not Magic SEO URLs who is overwriting this file. It is likely some third party or host script.
Magic SEO URLs are now available for
osCommerce, CRE Loaded, Zen Cart, PrestaShop, OpenCart, CubeCart, phpBB and phpBB3!
~J~
InveoStore.com Founder
 
Posts: 1056
Joined: Sat Feb 02, 2008 11:07 am
Location: Prague, Central Europe

Re: [Zen Cart] How to Block IP address from .htaccess

Postby rashusweb » Mon Dec 19, 2011 10:46 am

thank you ~j~
i didn't change any permissions till now...i would like to ask you if it is ok to change permissions for .htaccess. and can you please show the procedure to write
Order allow,deny
Deny from xx.xx.xxx
rashusweb
 
Posts: 2
Joined: Wed Sep 15, 2010 11:43 pm

Re: [Zen Cart] How to Block IP address from .htaccess

Postby ~J~ » Mon Dec 19, 2011 11:43 am

Making .htaccess file read-only is not required if file named "readonly-htaccess" is placed within same directory (generally you can change permissions of the file by right-clicking and selecting Properties).

The way how you can deny an IP/host is described at http://httpd.apache.org/docs/2.2/howto/access.html
Magic SEO URLs are now available for
osCommerce, CRE Loaded, Zen Cart, PrestaShop, OpenCart, CubeCart, phpBB and phpBB3!
~J~
InveoStore.com Founder
 
Posts: 1056
Joined: Sat Feb 02, 2008 11:07 am
Location: Prague, Central Europe


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest