If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

.HTAccess question....

Not sure if this is the right place to ask, but I couldn't find anything related to this anywhere else...

With regards to blocking people from hotlinking to files on a server, an alternate method is available to show an alternate image if someone tries to hotlink.
Is it possible to configure the htaccess file to only show an alternate image to a certain IP, rather than everyone who hotlinks?
So if for instance, if everyone viewed...

If you are going to block that IP, it would be easier just to block the IP completely, rather than just images (since chances are if you want to block certain IPs, those IPs are probably pretty bad siphons).

Just do

<Limit GET>
order allow,deny
allow from all
deny from 123.456.789.012
deny from 124.457.
</LIMIT>

Note that the second 'deny from' would block a smaller octet set (meaning anything matching the first 2 octet sets, and any wild cards in the 3rd and 4th positions).

If it is from another site you could try the standard mod_rewrite rules, but add