Im sorry if my questions came out confusing.
Let me try to break it down for you some more.
I would like to password protect the pics/ dir. If i do that, other domains (such as web forums) will not be able to show pictures that are located inside the pics/ dir.
If i add those domains to the allow list in my htaccess file, they should be able to show the picture without getting prompted for a user name and password.
So far my research has come up with the following. I have to add a “Satisfy any” line to my htaccess files, which means that it will serve the picture to either someone that has a user account password OR if its a domain on the allow list.
Here is where ive gone so far.
ErrorDocument 401 /401.jpg
ErrorDocument 403 /403.jpg
ErrorDocument 404 /404.jpg
Satisfy any
AuthUserFile /home/yan/pass
AuthName "Members Area"
AuthType Basic
require valid-user
order deny,allow
deny from all
allow from .etvw.org
Now, the big problem with password protecting the pics/ dir is that even when i post a picture from that dir on my OWN WEBSITE (http://www.etvw.org) and the domain is added tto the allow list, it still asks for a user/password.
EDIT
Ok, i narrowed it down to my allow/deny codes not working. This simple code wont allow my own domain to show pictures from the pics/ dir.
order allow,deny
allow from .etvw.org
deny from all