ProxySG Youtube Kategori Engelleme


ProxySG ile “Education”,”Howto”,”Music” kategorileri dışındaki videolara erişim için VPM üzerinde CPL layer oluşturarak aşağıdaki örnek CLP kodunu kullanabilirsiniz.

Belli IP adresleri/IP blokları ve/ve ya kullanıcı/kullanıcı grup’larına tam erişim vermek için ilgili satırlardaki “;” işaretlerini silmeniz ve ilgili condition bloklarını düzenlemeniz gerekmektedir.


You can use the example CLP code below by creating a CPL layer on VPM to access videos other than “Education”, “Howto”, “Music” categories with ProxySG.

To grant full access to Youtube for certain IP address/IP blocks and/or user/user groups, you need to delete “;” mark in the corresponding lines. Also you need to edit the relevant condition blocks.

<proxy>
    
  url.domain=youtube.com condition=YoutubeCategory            allow  
  ;url.domain=youtube.com condition=IpAddresses allow
  ;url.domain=youtube.com condition=UserAndGroups allow
  url.domain=youtube.com condition=YoutubeDeniedCats  deny
condition=Youtube_Support          allow 
    url.domain=googlevideo.com         allow 
    url.domain=www.youtube.com         deny
    url.domain=youtube.com             allow
<proxy>
    url.domain=www.youtube.com http.method=CONNECT allow
define condition Youtube_Support
    url.domain=ytime.com
    url.domain=youtube.com url.path.prefix="/yts/"
    url.domain=youtube.com url.path.prefix="/youtubei/"
    url.domain=youtube.com url.path.prefix="/api/"
    url.domain=youtube.com url.path.prefix="/sw.js"
    url.domain=youtube.com url.path.prefix="/iframe_api"
    url.domain=youtube.com url.path.prefix="/embed/"
    url.domain=youtube.com url.path.prefix="/get_video_info"
end
define condition YoutubeCategory
    request.header.Referer.url.category=("Education","Howto","Music","none")
    url.category=("Education","Howto","Music","none")
end
define condition YoutubeDeniedCats
    request.header.Referer.url.category=!("Education","Howto","Music")
end
;define condition UserAndGroups
;    realm=RealmName user="Domain\username"
;    realm=RealmName group="Domain\GroupName"
;end condition UserAndGroups
;define condition IpAddresses
;    client.address=192.168.1.246
;end condition IpAddresses

Yorum bırakın

Bu site, istenmeyenleri azaltmak için Akismet kullanıyor. Yorum verilerinizin nasıl işlendiği hakkında daha fazla bilgi edinin.