I wanna allow from Twitterbot crawler access to my web-site


Hi their!

My web site is now denying for direct-linking of files using .htaccess.
I want to allow access from TwitterBot (crawler), but it will not work.

<Files ~ “.(gif|png)$”>
SetEnvIf Referer “~anything~” ShowOK
SetEnvIf User-Agent “TwitterBot” UAOkay
order deny,allow
deny from all
allow from env=ShowOK
allow from env=UAOkay

Please tell me, how to change this.
Thanks yours.


Closing as a duplicate.