Welcome! Log In Create A New Profile

Advanced

Please help rewrite proper parameter

March 20, 2016 10:56AM
Hi,

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.

e.g.

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):

www.site.com/file.php?param%253Dblahblah
www.site.com/file.php?param%25253Dblahblah
www.site.com/file.php?param%2525253Dblahblah
...

Tried the following in the general filter block, then into the php block, didn't help:

rewrite ^(.*)(param)\%(25)+(3D)(.*)$ $1$2=$5 redirect;
rewrite ^(.*)(param)=(.*)$ $1$2=$3 redirect;

Thanks!
Subject Author Posted

Please help rewrite proper parameter

shiz March 20, 2016 10:56AM

Re: Please help rewrite proper parameter

shiz April 29, 2016 02:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 274
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready