We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

block hotlink to photo's htcaccess | Forum

Topic location: Forum home » Support » General Questions
Jordi
Jordi Jan 23 '15
Hi,


When someone copy paste a photo url on my site they can open it i a webrowser without being logged in to the site. Is there a way to prevent this?


below is my htcaccess file...   i did a lot of searching but i cant find it


thanks

Options +FollowSymLinksRewriteEngine On
AddEncoding gzip .gzAddEncoding gzip .gzip<FilesMatch "\.(js.gz|js.gzip)$">  ForceType text/javascript</FilesMatch><FilesMatch "\.(css.gz|css.gzip)$">  ForceType text/css</FilesMatch>
AddOutputFilterByType DEFLATE text/plainAddOutputFilterByType DEFLATE text/htmlAddOutputFilterByType DEFLATE text/xmlAddOutputFilterByType DEFLATE text/cssAddOutputFilterByType DEFLATE application/xmlAddOutputFilterByType DEFLATE application/xhtml+xmlAddOutputFilterByType DEFLATE application/rss+xmlAddOutputFilterByType DEFLATE application/javascriptAddOutputFilterByType DEFLATE application/x-javascript
RewriteCond %{REQUEST_URI} !/sitemap.xmlRewriteCond %{REQUEST_URI} !/robots.txt
RewriteCond %{REQUEST_URI} !^/index\.phpRewriteCond %{REQUEST_URI} !/ow_updates/index\.phpRewriteCond %{REQUEST_URI} !/ow_updates/RewriteCond %{REQUEST_URI} !/ow_cron/run\.phpRewriteCond %{REQUEST_URI} !/e500\.php#RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]RewriteCond %{REQUEST_FILENAME} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]RewriteRule (.*) index.php

ross Team
ross Jan 23 '15
Please do the search before posting anything on the forum: http://www.oxwall.org/forum/topic/23221
Jordi
Jordi Jan 23 '15
thanks Ross, 


the search option is not the best. if you don't know the exact words.


it worked for me