Go Back   CodingForums.com > :: Server side development > Other server side languages/ issues

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-10-2002, 02:28 AM   PM User | #1
sweetverve
New to the CF scene

 
Join Date: Sep 2002
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
sweetverve is an unknown quantity at this point
Blocking domains?

Is it possible to block a particular domain from accessing my site? It's a college domain, so if I block just IPs, I'm afraid that the annpying perpetrator on my site will simply find another computer to access my site. Or may something to block IPs that begin with the same #'s? Thanks.
sweetverve is offline   Reply With Quote
Old 09-10-2002, 03:44 AM   PM User | #2
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,220
Thanks: 4
Thanked 80 Times in 79 Posts
Spookster will become famous soon enough
To block an IP or domain from viewing your site you would just use an .htaccess file in the root directory of your site. If it is coming from a college it could be next to impossible just to block that one person. If they using a computer located in a computer lab then they could simply use a different computer. If they are using their own computer in their dorm they may have a static IP for their computer. However if the school uses a proxy server which is likely the case then you could end up blocking the entire school from viewing it.

Best solution if this person is violating any TOS you have would be to contact the school's sysadmin and report them with whatever information you can collect about the person.
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Old 09-10-2002, 03:55 AM   PM User | #3
sweetverve
New to the CF scene

 
Join Date: Sep 2002
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
sweetverve is an unknown quantity at this point
I have no problem with blocking the entire school from accessing my page. what is the .htaccess file that I would use?
sweetverve is offline   Reply With Quote
Old 09-10-2002, 07:41 AM   PM User | #4
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,220
Thanks: 4
Thanked 80 Times in 79 Posts
Spookster will become famous soon enough
Feyd, one of our fellow moderators wrote a tutorial on .htaccess. You can read through it at the beginning to learn more about .htaccess and then the section you will want is the Deny By IP/Domain part.

http://www.javascriptkit.com/howto/htaccess.shtml
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Old 09-11-2002, 08:28 PM   PM User | #5
codewarrior
New Coder

 
Join Date: Aug 2002
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
codewarrior is an unknown quantity at this point
Or you can try this
__________________
You can satisfy some of the people some of the time, some of the people all of the time, all of the people some of the time. But never all of the people all of the time.
codewarrior is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:00 PM.


Advertisement
Log in to turn off these ads.