문제

it's possible to increment environment variables in htaccess (example: to count failed logins or access)?

Something like:

RewriteRule ^ - [E=MYVAR:MYVAR+1]

or

SetEnvIf Request_URI "\.gif$" MYVAR=MYVAR+1

Tnx

도움이 되었습니까?

해결책

Short Answer: No you cannot do that in .htaccess alone. It is not a scripting language where you can do maths operations. You will need to do that in your server side scripts.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top