Please help rewrite proper parameter
nginx-forum at forum.nginx.org
Sun Mar 20 14:56:22 UTC 2016
Sometimes, bots are notorious for doing that, arguments are over urlencoded.
If someone knew a way to rewrite them back to their normal state, that
would be awesome.
Normal URL: www.site.com/file.php?param=blahblah
URLs that bots try sometimes (often in fact - don't know where they get
those strings BTW):
Tried the following in the general filter block, then into the php block,
rewrite ^(.*)(param)\%(25)+(3D)(.*)$ $1$2=$5 redirect;
rewrite ^(.*)(param)=(.*)$ $1$2=$3 redirect;
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,265514,265514#msg-265514
More information about the nginx