I'm trying to make it so only loocal scripts on the machine/web server can access /avatars/ example: profile.php?username=Jordan it has to show on that script but if i go to the link directoly it shows error 403 or whatever it needs. i used:
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
ErrorDocument 403 "Error: <br /><h2>You are not allowed to access this directly.</h2>
but it doesnt work, why?