accurist
01-23-2002, 11:10 PM
does anyone how/what file allows or disallows access to a site? say, i want a site to be only accessible from .edu sites and nowhere else how do i do this? sample code would be great. thanks.
![]() | View Full Version : query accurist 01-23-2002, 11:10 PM does anyone how/what file allows or disallows access to a site? say, i want a site to be only accessible from .edu sites and nowhere else how do i do this? sample code would be great. thanks. priyadi 01-24-2002, 04:58 AM stick this in your .htaccess file: order allow,deny allow from all deny from .edu accurist 01-24-2002, 09:48 AM so that will allow access only from edu sites? thanks JayC 01-25-2002, 05:15 AM Originally posted by accurist so that will allow access only from edu sites? thanks Well, actually no... it will do just as it says: deny from .eduSo I guess priyadi misread your request, and gave you just the opposite of what you're looking for. So it's what you asked for: "sample code," but not the real code! Easy modification. But I wonder this: if I'm an admin at an .edu site (which I was until recently) but I use dialup access (or cable, whatever) from my house through an isp, or my cable company... why do you want to keep me from accessing your site? My point is, you say you want to allow access to your site only from .edu sites, but sites aren't typically accessed from other sites -- they're accessed by users. And users might legitimately use any number of different kinds of internet access. |