Forum Moderators: phranque
I know its the same person,using the same IP, I use Apache.
Block the IP with a rewrite rules in your .htaccess file.
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_ADDR} "^111.222.333.444$"
RewriteRule .* - [F,L]
[httpd.apache.org...]
I want to keep an outside site from displaying my pages in its frames. Question 1 is, will adding this code to my .htaccess file accomplish that goal?
Question 2: when phidentity confirmed that this requires replacing that number with his IP, does that mean to include the ^ at the beginning and the $ at the end? In other words, should it be "[HIS IP]" or "^[HIS IP]$"?
Question 3: I already have a .htaccess which, after much frustrating trial and error, I long ago succeeded in tweaking to a point where it blocks image leaching. Will this in any way interfere with that?
Question 4: There's some duplicate code between the two functions (notably the first two lines). Just leave that off, right?
Question 5: Adding another RewriteCond and RewriteRule won't negate the ones I have, will it? Or was that Question 3?
Five lines of code, five questions. I guess that's pretty indicative of the depth of my cluelessness, and again, I truly do appreciate the patience of knowledgeable people like you.
-- Don Markstein
Butt-ignorant webmaster