IP blocker script

  • Arman
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Feb 14, 2003
  • Posts: 9
  • Status: Offline

Post February 14th, 2003, 10:16 pm

Hi there,
I was wondering if some one can help me to get some kind of scripts to block ips from entering my web page.. thank you.
Arman :roll:
http://members.vpchat.com/arman/Armans-Place-Backgammon.html[/url]
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post February 14th, 2003, 10:16 pm

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8926
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post February 14th, 2003, 10:27 pm

Hey good to see you here. About blocking IPs to your webpage can I ask why you need to block IPs? Also do you know exactly which IP you want to block? There are numerous ways in which you can block an IP from visiting your site, but it kind of depends on your circumstances and what you are trying to accomplish.
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • Arman
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Feb 14, 2003
  • Posts: 9
  • Status: Offline

Post February 14th, 2003, 10:38 pm

Good to be here,
Reason I need a ip blocker is that I have this gammon league with over 300 members in halsoft but there is this guy keeps coming there and harrassing people while they are in a tournament. so I just was wondering if there is anyway i could block him from entering my pages. any :idea: ?
Arman
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8926
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post February 14th, 2003, 10:51 pm

Okay well first you will need to know his IP. If you cannot figure out his IP you will not be able to block him from your site. If you do know his IP then you can try placing a .htaccess file in your root directory of your website. However it is possible this will not work if your host provider for your website does not allow overrides to take place in the .htaccess file or if your system simply does not support the .htaccess file

Anyway you can try this:

  • Create a file named .htaccess in your main directory of your website
  • For the contents of the file put this:
    Code: [ Select ]
    <Limit GET POST>
    order allow,deny
    allow from all
    deny from 111.111.111.111
    </Limit>
    1. <Limit GET POST>
    2. order allow,deny
    3. allow from all
    4. deny from 111.111.111.111
    5. </Limit>
  • Now simply change 111.111.111.111 to the ip address you wish to block.

I recommend you test this code with your own IP address or someone elses IP address. That way you can be sure if it is working or not. If it works the IP address that you list there will have no access to the site, they will be denied.
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • Arman
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Feb 14, 2003
  • Posts: 9
  • Status: Offline

Post February 14th, 2003, 11:09 pm

I sure do know his IP, but the thing is he is on dile up and changes Ip like I change girlfriends..LOL
anyhow I will try that.. I belive there is a script to tell you people's ip when they enter your page.. Thank you so much, will let you know if it did work.
Arman
  • Arman
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Feb 14, 2003
  • Posts: 9
  • Status: Offline

Post February 14th, 2003, 11:20 pm

sorry to bother you, but I didn't undrestand what you meant by Create a file named .htaccess in your main directory of your website
For the contents of the file put this:
would you please explain a bit more?
Thank you
Arman
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8926
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post February 14th, 2003, 11:50 pm

Simply make file with notepad. Put the contents above that I posted above in that file and change the ip address to the IP you want to block. Now upload that file to your server and make sure the file name says .htaccess on the server.
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • Arman
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Feb 14, 2003
  • Posts: 9
  • Status: Offline

Post February 15th, 2003, 10:45 am

Hi there
I undrestood most of the instructions you gave me but the last part.. What do I name the file as? I'm sure it has to be something.htaccess or is it just .htaccess !
Thank you for all your time.
Arman
  • ED
  • Student
  • Student
  • No Avatar
  • Joined: Jan 02, 2003
  • Posts: 66
  • Loc: Halifax
  • Status: Offline

Post February 15th, 2003, 11:00 am

JUST ".htaccess"

thats it.
you can put it in any directory you want to protect from the guy... it'll also protect any subdirectory of the directory you place it in.
  • Arman
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Feb 14, 2003
  • Posts: 9
  • Status: Offline

Post February 15th, 2003, 11:07 am

here what I got when i uploaded it.
Invalid file name: .htaccess.txt
is that mean my server does not support it?
Arman
  • ED
  • Student
  • Student
  • No Avatar
  • Joined: Jan 02, 2003
  • Posts: 66
  • Loc: Halifax
  • Status: Offline

Post February 15th, 2003, 11:46 am

its because you probably created it in notepad or wordpad...
on your PC... rename the file to... ".htaccess"
not ".htaccess.txt"

you might have your options set to not show known file types so it might not even show .txt when you view the file on your PC..

anyway... i'm sure your FTP program allows you to rename files too...
so... through whatever means .... rename that file ".htaccess" and thats it..
then it'll work
  • Arman
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Feb 14, 2003
  • Posts: 9
  • Status: Offline

Post February 15th, 2003, 4:12 pm

Hi there
Thank you for being patient with me, now I'm lost.. well if I use notepad then the file name will be .htaccess.txt for sure, if I use my dreamweaver, I give the file name .htaccess after its saved it shows there is no name on that file but it showing like an html file. I must be doing something wrong here cause even that when i upload it says Invalid file name: .htm.. all I know is there has to be a name before .htaccess. the file I have saved on my pc says .htaccess but only when I upload it it shows as .htaccess.txt, now this either should be a html file or just a txt , the reason is failing is cause the file name is starting with a dot. :(
  • Arman
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Feb 14, 2003
  • Posts: 9
  • Status: Offline

Post February 15th, 2003, 4:19 pm

Only letters, numbers, or '_' are allowed in the name of a file or directory.
just tried two other servers to upload the file name .htaccess and both said the same thing!
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8926
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post February 15th, 2003, 6:13 pm

Okay Arman do this.

Make a file on your computer called htaccess.txt and put the contents that i said above in it. It should work as that filename is windows compatible.

Now upload that file to your server. You will now have a file called htaccess.txt on your server.

Now rename the file on the server (NOT YOUR COMPUTER). Rename it to .htaccess

Hope that makes sense.
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • Arman
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Feb 14, 2003
  • Posts: 9
  • Status: Offline

Post February 25th, 2003, 5:49 pm

Hi there,
Do you know where I can find a script for floating tool bar which stays on the page eventhough when you scroll up and down?
Thank you
Arman
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post February 25th, 2003, 5:49 pm

Post Information

  • Total Posts in this topic: 39 posts
  • Users browsing this forum: No registered users and 260 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.