Blocking /?author=

Posted in: Newspaper
Post count: 22

With Redirection plugin, I’ve sent requests of /?author={any number} to a 404
regex is ^/(.*)author=(.*)

This should include nothing past the = character, but for some reason it does not.

How does one block /?author=

example of the output that is returned with that request
https://demo.tagdiv.com/newspaper_reel_news_pro/?author=

Thank-you.

  • This topic was modified 1 year by marcusdoc.
Post count: 9544

I may be wrong, but seem to recall having to use .+ vs .* for some stuff

Post count: 22

rechecking the site (next day) and apparently the regex captures /?=author as well as /?author{anything}

thanks anyways … hopefully the regex can help others

(perhaps the cache was not updated immediately)

  • This reply was modified 1 year by marcusdoc.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.