Forum Moderators: mack

Message Too Old, No Replies

Blocking an IP from site

         

xxene

6:49 pm on Dec 6, 2004 (gmt 0)

10+ Year Member



I have no idea how ot work with code, beyond a very basic, elementary type knowledge. So please bear that in mind.

I have a popular blog (through blogger) and I was wondering if I could block people i work with from accessing the site with their IP addresses. I have no idea how to build my own code (or I wouldn't still be using blogger). Can someone please help me?

Thanks,
Joan

Birdman

7:09 pm on Dec 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WW xxene!

This link has a few examples of how it can be done(on Apache server):

Ban an IP [webmasterworld.com]

xxene

7:27 pm on Dec 6, 2004 (gmt 0)

10+ Year Member



Thanks!

Where do I paste the code in my template? Between the <head> & </head>? Sorry, but I am really new to this and I am wishing I had taken computer classes intead of all those existential philosophy classes in college. :)

Birdman

7:41 pm on Dec 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No, actually that code goes in a file called .htaccess, which you should see in your /public_html directory on your server. If you cannot see the file, double check your ftp settings. You must have "show hidden files" enabled.