speaking of nginx heres some cool iOS snippets
# apt repo filter
map $http_user_agent $user_agent_map {
default 0;
"~APT-HTTP" 1;
"~Cydia" 2;
"~Sileo" 3;
}
location / {
rewrite ^/apt(.*)$ $1 permanent;
if ($user_agent_map ~ 0) {
return 403;
}
}
# ipa remote plist install filter
map $http_user_agent $user_agent_map2 {
default 0;
"~com\.apple\.appstored\/.* iOS\/.* model\/iPhone11\,8 hwp\/t8020 build\/.* \(.*; dt:.*\) AMS\/.*" 1;
"~com\.apple\.appstored\/.* iOS\/.* model\/iPhone14\,2 hwp\/t8110 build\/.* \(.*; dt:.*\) AMS\/.*" 2;
"~Mozilla\/.* \(iPhone; CPU iPhone OS .* like Mac OS X\) AppleWebKit\/.* \(KHTML\, like Gecko\) Version\/.* Mobile\/.* Safari\/.*" 3;
}
if ($user_agent_map2 ~ 0) {
return 403;
}
}
location ~ (app) {
location ~ (index.html) {
rewrite ^ "itms-services://?action=download-manifest&url=https://myipasite.com/app/app.plist" permanent;
}
}

















