Search found 18 matches

Actual Results

Post Posted: July 27th, 2003, 1:43 pm

I've got it - I used shtml, but I got it. Thanks for all of your help.

Post Posted: July 27th, 2003, 9:46 am

It's still blocking everyone out.

Post Posted: July 27th, 2003, 9:04 am

It's still blocking everyone so I'm guessing that my host won't let me use PHP either - thanks for all of your help, though.

Post Posted: July 26th, 2003, 9:59 pm

It's highly unlikely that I'll ever need/want to block more than one person.

Post Posted: July 26th, 2003, 6:50 pm

[code]<? $ip = "$REMOTE_ADDR"; $block[0] = "67.163.182.222"; foreach ($block as $b) { if ($b == $ip) { $blocked = 1; } } ?> <HTML> <BODY> <? if ($blocked != "") { echo ("&...

Post Posted: July 26th, 2003, 3:47 pm

Thank you so much - the code is working for me. One final question though, is there a place in the code that I can put the error page that I want the user to be redirected to? It's saved on an entirely different domain. Edit: It looks as if the code is working a bit too well - it's blocking everyone.

Post Posted: July 26th, 2003, 9:42 am

I've never used php before, but it's worth a shot. Am I only supposed to be adding in the correct IP address or are there other components of the code that I need to put in? Can I just add this code in the header of the index page or will I have do redo the whole page with php?

Post Posted: July 26th, 2003, 9:18 am

All I need to do is block this person from accessing the index page - if he can't get to that, he won't be able to get to the rest of it because of the (cruddy) design it has. Basically, the only page that he has the url for is the index page.

Post Posted: July 25th, 2003, 8:26 pm

My host was far from useful - I'm going to call again on Monday and hope that I get a different person on the phone. However, I was wondering if there's a code out there for this that's in java or some other language that I know I'll be able to use.

Post Posted: July 24th, 2003, 8:09 pm

That was the problem - I'm not granted access to the error log. Is there a different type of code that I can try instead?

Post Posted: July 24th, 2003, 5:44 pm

Where am I supposed to be putting "/var/log/httpd/error_log" to find the error log? After my website address or in my FTP software?

Post Posted: July 24th, 2003, 5:50 am

No it didn't, so I'm guessing that it wasn't the error log that I was seeing.

Post Posted: July 23rd, 2003, 7:10 pm

If what I was looking at actually was the error log, it didn't say anything about stuff in the .htaccess file.

Post Posted: July 23rd, 2003, 3:28 pm

I've gone through the error log and changed some things that were wonky and I'm still getting the error message. Would the code be different if I wanted to block someone from a specific page instead of the entire domain? Because of the setup of the site, blocking an IP address from accessing the mai...

Post Posted: July 23rd, 2003, 12:28 pm

I'm not sure if I quite understand what you're talking about. I do know that error message I'm getting came up as soon as I made the .htaccess file and put that code in it - even without the extra line to direct to an error page.

Post Posted: July 23rd, 2003, 12:09 pm

I placed it in my .htaccess file since that was the original instruction for the code - should it be in my httpd.conf file instead?

Post Posted: July 23rd, 2003, 11:58 am

I'm testing the code out on my own IP address first, and the error message it is giving me is "500 Internal Server Error" - could this have something to do with it not getting to my error document that is on a different domain? I tried using the ErrorDocument 500 line, but that did not work either.

Post Posted: July 22nd, 2003, 7:25 pm

In a post that was made back in February, the following code was posted to block an IP address : <Limit GET POST> order allow,deny allow from all deny from 111.111.111.111 </Limit> Is it possible to make that code direct someone to a specific error message (ie. "error.html")?
  • Sort by
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.