Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Sep 2002
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    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

  • #3
    New to the CF scene
    Join Date
    Sep 2002
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have no problem with blocking the entire school from accessing my page. what is the .htaccess file that I would use?

  • #4
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    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

  • #5
    New Coder
    Join Date
    Aug 2002
    Posts
    57
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •