homepage Welcome to WebmasterWorld Guest from 23.22.2.150
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
.htaccess help needed
never use this feature
fabian

10+ Year Member



 
Msg#: 325 posted 11:57 am on Aug 6, 2003 (gmt 0)

Hello. I need some help to write a .htaccess .
My site is hosted into a linux apache server.
I need to block access to users coming from a determined host.Example , I need to block access from [widgets.com...]
Could anyone give me a suggestion on what to put
into my .htaccess file?. Thanks in advance

 

jdMorgan

WebmasterWorld Senior Member jdmorgan us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 325 posted 1:58 pm on Aug 6, 2003 (gmt 0)

fabian,

This Introduction to mod_rewrite [webmasterworld.com] post discusses some basic .htaccess techniques, and contains links to the Apache documentation and other resources.

Also, a site search on "blocking" or "block" and "domain", "remote host", or "IP address" here on WebmasterWorld will turn up dozens of threads on the subject.

Your two main options are to use Apache mod_access or mod_rewrite. While mod_rewrite is much more powerful, it is also much more complex, and some servers do not support it. You will have to test this, or ask your hosting provider if mod_rewrite is available to you.

HTH,
Jim

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved