bump please :( bitocin donation pl0xby TPFreak - How to...
itpp2012 Wrote: ------------------------------------------------------- > TPFreak Wrote: > ------------------------------------------------------- > > not a single documentation on how to use it with cookies & > variables, > > so it can't be that easy? lol > > Thats why I said test map block with curl, > > map $http_cookie $checkCookie { > defauby TPFreak - How to...
set_sha1 $helpme hello; map $http_cookie $logged_in { default 0; ~MyCustom_Cookie $helpme; } if ($logged_in = $helpme) { return 503; } omg heeeeeeeeeelp.. headcache -.-by TPFreak - How to...
not a single documentation on how to use it with cookies & variables, so it can't be that easy? lolby TPFreak - How to...
itpp2012 Wrote: ------------------------------------------------------- > Your going about it the wrong way, first learn what map does, try a > few simple map's, get/install curl, run curl on your map test setup > and see what comes back. Once you see the power of map, what curl > gives you back (or not) we can try to figure out what you want is > possible and maybe how. Keepby TPFreak - How to...
$10 btc to whoever can help me out lolby TPFreak - How to...
or even set $l7_protect 0; set_sha1 $SHA1Cookie test; set $COCK TechPulse_Firewall=; set $DICK $COCK$SHA1Cookie; if ($whiteListedIP = "true") { set $l7_protect 1; } if ($request_uri ~* "lite-api.php") { set $l7_protect 1; } if ($http_cookie ~ $DICK) { set $l7_protect 1; } if ($l7_protect = 0) { add_header Set-Cookie 'TechPulse_Firewallby TPFreak - How to...
why wouldnt this work set_sha1 $SHA1Cookie test; set $TEST33 TechPulse_Firewall=$SHA1Cookie; if ($http_cookie ~ $TEST33) { set $l7_protect 1; }by TPFreak - How to...
itpp2012 Wrote: ------------------------------------------------------- > With map it depends what your testing for and when a test is positive > what you want to be in the mapped variable, for example; > > map $http_user_agent $mobile { > default 0; > "~Opera Mini" 1; > } > > If the $http_user_agent contains the string portion "*Opera Mini*&quby TPFreak - How to...
itpp2012 Wrote: ------------------------------------------------------- > map $http_cookie $checkCookie { > default 0; > ~$SHA1 1; > } > > Then inside a location block: > > if ($checkCookie) { return 403; } # or whatever you want to happen > instead of a 403 > > If you want to allow things when $SHA1 is filled then turn the 0 and 1 > around in thby TPFreak - How to...
map $http_cookie $checkCookie { default false; $SHA1 true; } tried this, not sure how to do it properly with the cookies.by TPFreak - How to...
itpp2012 Wrote: ------------------------------------------------------- > Read that page, its more or less the same issue which should be solved > with a map block, then use a single IF inside a location block. yes i did i tried putting it inside the map, didnt detect it for some reasonby TPFreak - How to...
same issue, need to know how!by TPFreak - Nginx Mailing List - English
itpp2012 Wrote: ------------------------------------------------------- > Something with map, > > http://serverfault.com/questions/268633/controlling-nginx-proxy-target > -using-a-cookie I don't understand you? I wonder why I can't put a variable in the cookie check, and how I can. Can someone give me a snippet?by TPFreak - How to...
if ($http_cookie ~ "EXAMPLE=$SHAIP") { this is the issue, i cant use variable after = or so, how would i do this?by TPFreak - How to...
This works: add_header Set-Cookie "EXAMPLE=$SHAIP;Path=/"; This does not work: if ($http_cookie ~ "EXAMPLE=$SHAIP") { Why this? How can I get it to work? I want $SHAIP to be checked if exist, basically it will store the cookie if its not set already. This is what shaip is: set_sha1 $SHAIP test; i want it to compare the sha1'd "test" text, if the cookby TPFreak - How to...