Extra Form
PHP PHP 7.4
CMS Rhymix 2.x

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^https?://([a-z0-9-]+\.)?도메인\.net/ [NC]
RewriteCond %{HTTP_REFERER} !^https?://([a-z0-9-]+\.)?naver\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^https?://([a-z0-9-]+\.)?nate\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^https?://([a-z0-9-]+\.)?daum\.net/ [NC]
RewriteCond %{HTTP_REFERER} !^https?://([a-z0-9-]+\.)?yahoo\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^https?://([a-z0-9-]+\.)?kakao\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^https?://([a-z0-9-]+\.)?facebook\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^https?://([a-z0-9-]+\.)?google\.co\.kr/ [NC]
RewriteCond %{HTTP_REFERER} !^https?://([a-z0-9-]+\.)?google\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^https?://([a-z0-9-]+\.)?google\.([a-z]+|com?\.[a-z]+)/ [NC]
RewriteRule \.(gif|jpg|jpeg|png|mp4|GIF|JPG|JPEG|PNG|MP4)$ - [NC,F,L]

 

.htaccess

이걸 /var/www/html/.htaccess 요기 넣어도 안되고

 

.htaccess을 만들어서

/var/www/html/files 여기에 업로드 해봐도  안되네요.. 작성한게  잘못 된 것이 있는지 한번 봐주세용..

  • profile

    본인 사이트에서 본 이미지를 다른 곳에 게시한 후 보면 보입니다.
    브라우저 캐시를 지우고 확인하시거나 다른 브라우저로 확인하셔야 합니다.

     

    nginx 아니고 apache 맞으신거죠?

  • profile

     

    대신 테스트 해드립니다.

  • profile
    위에 이미지 가져왔지만 안보입니다.
    보이신다면 이미 사이트에서 보셨기 때문에 브라우저에 이미 저장되었기 때문입니다. 다른 분들은 안보이니 잘 작동 하고 있는 겁니다.

    Failed to load resource: the server responded with a status of 403 (Forbidden)
  • profile ?
    적용되고 있었군요 테스트 정말 감사합니다!!!!