Re: [users@httpd] Simulating rewrite rules?

2024-07-15 Thread Dave Wreski
Hi, On 7/11/24 9:46 AM, Frank Gingras wrote: On Thu, Jul 11, 2024 at 4:49 AM Marc wrote: > > RewriteCond %{HTTP_USER_AGENT} ^$ > [OR] > RewriteCond %{HTTP_USER_AGENT} ^.*(<|>|'|%0A|%0D|%27|%3C|%3E|%00).* > [NC,OR] > RewriteCond %{HTTP_USER_AGENT} > ^.*(HTTrack|cls

Re: [users@httpd] Simulating rewrite rules?

2024-07-11 Thread Frank Gingras
On Thu, Jul 11, 2024 at 4:49 AM Marc wrote: > > > > RewriteCond %{HTTP_USER_AGENT} ^$ > > [OR] > > RewriteCond %{HTTP_USER_AGENT} ^.*(<|>|'|%0A|%0D|%27|%3C|%3E|%00).* > > [NC,OR] > > RewriteCond %{HTTP_USER_AGENT} > > ^.*(HTTrack|clshttp|archiver|loader|email|nikto|miner|python).* [NC,OR] > > Rew

RE: [users@httpd] Simulating rewrite rules?

2024-07-11 Thread Marc
> > RewriteCond %{HTTP_USER_AGENT} ^$ > [OR] > RewriteCond %{HTTP_USER_AGENT} ^.*(<|>|'|%0A|%0D|%27|%3C|%3E|%00).* > [NC,OR] > RewriteCond %{HTTP_USER_AGENT} > ^.*(HTTrack|clshttp|archiver|loader|email|nikto|miner|python).* [NC,OR] > RewriteCond %{HTTP_USER_AGENT} ^.*(winhttp|libwww\- > perl|curl|

Re: [users@httpd] Simulating rewrite rules?

2024-07-10 Thread Dave Wreski
Hi, Hi, I have the following rewrite rule in place on one of our staging sites to redirect bots and malicious scripts to our corporate page:   RewriteCond %{HTTP_USER_AGENT} ^$ [OR]   RewriteCond %{HTTP_USER_AGENT} ^.*(<|>|'|%0A|%0D|%27|%3C|%3E|%00).* [NC,OR]   Rewri

Re: [users@httpd] Simulating rewrite rules?

2024-07-09 Thread mwood
On Tue, Jul 09, 2024 at 01:10:34PM +, Dave Wreski wrote: > Instead of making changes to my rules then having to wait until the condition > is met (Googlebot scans the site again), I'd like to simulate the above > request against my ruleset to see if it matches. Is this possible? curl --user-

Re: [users@httpd] Simulating rewrite rules?

2024-07-09 Thread Frank Gingras
On Tue, Jul 9, 2024 at 9:11 AM Dave Wreski wrote: > Hi, I have the following rewrite rule in place on one of our staging sites > to redirect bots and malicious scripts to our corporate page: > > RewriteCond %{HTTP_USER_AGENT} > ^$ [OR

[users@httpd] Simulating rewrite rules?

2024-07-09 Thread Dave Wreski
Hi, I have the following rewrite rule in place on one of our staging sites to redirect bots and malicious scripts to our corporate page:   RewriteCond %{HTTP_USER_AGENT} ^$ [OR]   RewriteCond %{HTTP_USER_AGENT} ^.*(<|>|'|%0A|%0D|%27|%3C|%3E|%00).* [NC,OR]   RewriteCond %{HTTP_USER_AGENT} ^.*(H