stever 10 Posted September 2, 2020 Report Share Posted September 2, 2020 Am I doing something idiotic? set user agent("Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0")set header("referer","https://www.dogs.com")navigate("https://whatismyreferer.com","Wait") I try to set the referer to something arbitary, but whatismyreferer.com doesn't see anything. Using Ubot 5.9.50 Thanks for any help.Steve Quote Link to post Share on other sites
Varo 28 Posted September 3, 2020 Report Share Posted September 3, 2020 use Referrer, not referer Quote Link to post Share on other sites
stever 10 Posted September 3, 2020 Author Report Share Posted September 3, 2020 use Referrer, not refererYou mean like this:set user agent("Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0")set header("Referrer","https://www.dogs.com")navigate("https://whatismyreferer.com","Wait") Nope - that doesn't work either. Quote Link to post Share on other sites
bestmacros 60 Posted September 3, 2020 Report Share Posted September 3, 2020 https://wiki.ubotstudio.com/wiki/Set_Referrer Quote Link to post Share on other sites
Varo 28 Posted September 5, 2020 Report Share Posted September 5, 2020 You mean like this:set user agent("Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0")set header("Referrer","https://www.dogs.com")navigate("https://whatismyreferer.com","Wait") Nope - that doesn't work either.i use this site and worked https://www.whatismybrowser.com/detect/what-http-headers-is-my-browser-sending i tried _https://whatismyreferer.com/not working. edit:try use this :set header("Referer","https://www.dogs.com")navigate("https://whatismyreferer.com/","Wait") i just tried it and it worked 1 Quote Link to post Share on other sites
stever 10 Posted September 5, 2020 Author Report Share Posted September 5, 2020 Both of those worked - thanks to @Varo and @bestmacros. But, interesting - when I visit a site I own, with a fake referer URL using a script like this, neither Statcounter nor Google Analytics sees the referer URL, even though Whatismyreferer sees it. Anyone know why? Quote Link to post Share on other sites
Secretus 3 Posted September 8, 2020 Report Share Posted September 8, 2020 Both of those worked - thanks to @Varo and @bestmacros. But, interesting - when I visit a site I own, with a fake referer URL using a script like this, neither Statcounter nor Google Analytics sees the referer URL, even though Whatismyreferer sees it. Anyone know why? The reason most websites are able to see your referrer is due to it's way of Spoofing Referrer. That also goes for the websites, that tries to spoof your referrer as well. But UBots browser is a well-known bot browser meaning, that it gets easily detected by most website anti-bot frameworks. But if you really need to get past this sort of thing and you DO HAVE UBot Developer Edition, then check out this tutorial by UBot Docta(going for $0 atm.), which teaches you how to use something called Selenium with Python WITHIN UBot. It is basically a much better browser, which you are able to deeply customize with everything that's possible (and more) like UBots browser. Having to use Selenium should not be required. But with UBot Developer Edition, you are able to combine UBot with Python and make them work together as one unit. As for my final words, there's lots of tutorials on how to use the Selenium browser in Python. A simple Google should help you on your way, since it is not very hard to use, and the questions of other developers using the Selenium Browser has no end. Good luck with your testing! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.