homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

Block a specific IP with htaccess?

 7:35 pm on Jul 15, 2004 (gmt 0)

first, is there a way to determine the source of a specific IP?

Second, is there a way to block it with htaccess?




 7:40 pm on Jul 15, 2004 (gmt 0)

deny from <ip address>

With regards the source of an IP, that's an open question because an IP address _is_ considered a "source" as far as the Internet is concerned...


 7:45 pm on Jul 15, 2004 (gmt 0)


Welcome to WebmasterWorld [webmasterworld.com]!

Use ARIN, RIPE, APNIC, LACNIC, JPNIC, and KORNET (do a search for these) to look up IP-related information. Each of these covers only part of the world, so you may have to hop from one to the other to find what you need.



 9:45 pm on Jul 15, 2004 (gmt 0)

See [flumps.org...] for a nice ip address layout list. Unfortunately it is not updated since a long time, but most of the information is still correct, the ownership of ranges does not change too often.
This contains the owner of the addresses/blocks/subnets, so if someone offending you, you are able to see in the list which provider you might need to contact about a certain machine/connection.


 1:34 am on Jul 16, 2004 (gmt 0)

>block it with htaccess?
Here's a specific example. I use it to block data miners, whose robots are rude and greedy.

order allow,deny
deny from 63.148.***.
allow from all

- Mike T

[edited by: jdMorgan at 1:55 am (utc) on July 16, 2004]
[edit reason] Removed specifics, obfuscated URL [/edit]


 3:58 pm on Jul 18, 2004 (gmt 0)

a week ago I was referred to a site that had an automated htaccess file generator for things like disabling hotlinking and other things, the site is down now and it says the account is "banned".?


I found it to be a useful tool because my past experiences writing htaccess files were pretty lame and did not always work

is there any other automated htaccess file generator out there?

The Lazy Webmaster

[edited by: jdMorgan at 4:09 pm (utc) on July 18, 2004]
[edit reason] snipped specifics [/edit]


 4:08 pm on Jul 18, 2004 (gmt 0)

Have you tried a search on "online htaccess generator"?



 6:03 pm on Jul 18, 2004 (gmt 0)

Have you tried a search on "online htaccess generator"?

of course not!

I am the Lazy Webmaster!

All right, I will get off my butt and do it. Oh wait! I don't HAVE to get off my butt to do it!


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