x.com sitesinde .flv uzantılı dosyalar mevcut.
y.com sitesinden de ben bu dosyaları playera çekerek oynatıyorum.
İstiyorum ki, x.com sitesindeki dosyaları sadece y.com sitesi çekebilsin.
Bunu htaccess ile yapabilirmişim . Nasıldır?
                        
                            .htaccess ile domain izni vermek | 
                        4 Mesajlar | 2.545 Okunma | ||
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://x.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://x.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://y.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://y.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.x.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.x.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.y.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.y.com$      [NC]
RewriteRule .*\.(flv)$ http://x.com [R,NC]RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://x.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://x.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://y.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://y.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.x.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.x.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.y.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.y.com$      [NC]
RewriteRule .*\.(flv)$ http://x.com [R,NC]