Posted on: 04/03/23 03:30pm
By: Anonymous (laboriens)
hello I have a problem with the function search by author, when I do it I see in the bar &author=1 but I have the error 403 if I modify the figure by the username of the person I have all the articles that person did.
so how can I do it when the author has chosen in the advanced search to automatically indicate the username and not the uidd (same thing in the article when you click on More by demon577
Re: probleme author search
Posted on: 04/04/23 07:11am
By: Laugh
I am not sure if I follow.
The advance search allows you to pick the username in a dropdown box. In the URL of that page it uses the id. You can change the ID to another but cannot use the name.
Ids are better to use since names can contain characters that would need to be encoded.
Re: probleme author search
Posted on: 04/04/23 07:47am
By: Anonymous (laboriens)
Quote by: LaughI am not sure if I follow.
The advance search allows you to pick the username in a dropdown box. In the URL of that page it uses the id. You can change the ID to another but cannot use the name.
Ids are better to use since names can contain characters that would need to be encoded.
the id gives me a 403 error. searching before not the name does not give me the error
Re: probleme author search
Posted on: 04/04/23 08:18am
By: Laugh
It's hard to say without more information. Can you share a URL?
403 Forbidden – you don't have permission to access this resource is an HTTP status code that occurs when the web server understands the request but can't provide additional access.
Re: probleme author search
Posted on: 04/04/23 06:02pm
By: Anonymous (Laboriens)
Url id
https://smelly.inovaperf.me/search.php?query=&keyType=phrase&datestart=&dateend=&topic=all&type=all&author=2&results=30&mode=search
Url username
https://smelly.inovaperf.me/search.php?query=&keyType=phrase&datestart=&dateend=&topic=all&type=all&author=admin&results=30&mode=search
Re: probleme author search
Posted on: 04/05/23 07:10am
By: Laugh
Is your Geeklog Config option "Search Login Required?" set to "No Login Required"? (it most likely is since it wouldn't cause these type of errors just double checking)
After reviewing things its not Geeklog causing the errors. It doesn't throw 403 errors based on URL variables for the advanced search.
Also the same 403 happens if you change the topic or type as well.
It must be the server doing it. Either an htaccess setting or something else?
For example this also throws a 403 error (refine a search)
https://smelly.inovaperf.me/search.php?query=&keyType=phrase&author=2&type=all&mode=refine
Re: probleme author search
Posted on: 04/05/23 02:57pm
By: Anonymous (laboriens)
no if you change author=2 by author=admin you will no longer have the 403 error
Re: probleme author search
Posted on: 04/05/23 03:21pm
By: Anonymous (Laboriens)
problem solved. the plesk panel say that the site was under wordpress. I clicked on unlink wordpress and there is no more error
Re: probleme author search
Posted on: 04/05/23 04:06pm
By: Laugh
Good to know. So the server had some firewall rules in place meant for WordPress that was blocking the page request.