.htaccess syntax

Hi there,

I know in htaccess you can deny and allow access by IP address.

deny from x.x.x.x

or

allow from x.x.x.x

Not sure about using domain names. This may help.
 
Code:
RewriteEngine on

RewriteCond %{HTTP_REFERER} !bbb\.com [NC]
RewriteCond %{HTTP_REFERER} !ccc\.com [NC]

Should do it, either way look into the code above.

However referers can so easily be forged it's by no means a concrete solution.
 
Back
Top Bottom