I was curious if it was possible (via the .htaccess file) to redirect visitors with an I.P. in a certain range to a login page.
Right now, the situation is that certain people from the school administration are/have reading/read some pages on my blog, and judged/fined me based on it. I had no chance to argue my side, so I would like to prevent school computers (in the very least) from viewing a certain subdomain without first logging in to confirm their friendship/loyalty. I would do this with PHP, but then I think I may have to add each code snippet to each page, correct? Frankly, I'm too lazy to go through each and every page in that subdomain to add a bit of code, making sure it doesn't interfere with any other PHP snippet.
So, is this possible? I know there's a "Deny" command or something alike, in which I would then enter the I.P. range, leaving out the last portion (which is what I want). I'm curious if there's something in which I could redirect these people instead of just blocking them altogether. Thanks in advance!
Right now, the situation is that certain people from the school administration are/have reading/read some pages on my blog, and judged/fined me based on it. I had no chance to argue my side, so I would like to prevent school computers (in the very least) from viewing a certain subdomain without first logging in to confirm their friendship/loyalty. I would do this with PHP, but then I think I may have to add each code snippet to each page, correct? Frankly, I'm too lazy to go through each and every page in that subdomain to add a bit of code, making sure it doesn't interfere with any other PHP snippet.
So, is this possible? I know there's a "Deny" command or something alike, in which I would then enter the I.P. range, leaving out the last portion (which is what I want). I'm curious if there's something in which I could redirect these people instead of just blocking them altogether. Thanks in advance!
