Answer the question
In order to leave comments, you need to log in
How to download files from the closed part of the server?
Good afternoon. Strongly do not kick, for the first time I met with a similar question.
The bottom line is, there is a part of the script that we managed to "get" from a third-party site.
It works, but some of its functionality is in JSON format, hidden in an invisible part of the server.
Url is known, but dotsat fails, all tried methods give an error.
Soft like wget, teleport, web services. also give an error.
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
Error 403
biskitty.com
Apache
Thanks in advance for the solution.
Answer the question
In order to leave comments, you need to log in
If the full URL is known, then try to substitute a referer like https://domain.tld and up to the useragent heap from your browser. The http server may well check both fields and return 403 if it doesn't like something.
If json is downloaded via ajax, then add http header
'X-Requested-With' : 'XMLHttpRequest'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question