gpt4free icon indicating copy to clipboard operation
gpt4free copied to clipboard

phind cf_clearance and user_agent

Open xtekky opened this issue 1 year ago • 5 comments

As phind has not fixed its site yet, I still have some time till i take down code related to it, I will be adressing this issue, please read through these instructions by @joeysantana3

Disclaimer: this is what worked for me, not sure this is the right way...

If you follow the setup instructions on the main page, one of the steps is copying/moving streamlit_app.py to the main folder and then running it. After you copy it, open up the streamlit_app.py file in a text editor.

You should see two lines in the python script, phind.cf_clearance = ... and phind.user_agent = ....

Go to https://www.phind.com/ in your web browser and open developer tools. Go to storage -> Cookies -> then select the phind.com cookie. You should see cf_clearance in the cookie data. Copy that value and replace whats in the streamlit_app.py file with your value. For the user_agent value, you need to copy and paste the user agent identifier of the browser you used to access the site. There are a few ways to get your browser user agent, but one way is to go to the network tab of the developer tools, select a row (may need to refresh the page), then in the Headers section you should see request header. Your user-agent is there.

Screenshot from 2023-04-26 17-55-17 Screenshot from 2023-04-26 17-55-37 end.

Note, there is a site called google.com that (wow crazy) can explain to u where you can get a cf_clearance token, just search "how to get my cf_clearance token" and you will see tutorials !!!

xtekky avatar Apr 27 '23 11:04 xtekky

What if I using a docker?

iamjenechka avatar Apr 27 '23 14:04 iamjenechka

The same question. I've tried to insert cf_clearancevalue from PC, but it not work

jeffscrum avatar Apr 27 '23 15:04 jeffscrum

The same question. I've tried to insert cf_clearancevalue from PC, but it not work

Obviously, it will not work. I'll come back with an update soon.

iamjenechka avatar Apr 27 '23 15:04 iamjenechka

I am using virtual ubuntu on windows. launched program in ubuntu and trying to access site in windows browser. tried mentioned steps. didn't work

ravimourya avatar Apr 27 '23 15:04 ravimourya

Yes, I confirm, I tried the advice without a success as well..

Never the less:

  1. I edited gui/streamlit_app.py, inserted the values..

  2. I edited a dockerfile:


RUN apt-get update && apt-get install -y git

RUN git clone https://github.com/xtekky/gpt4free.git
WORKDIR /gpt4free
RUN pip install --no-cache-dir -r requirements.txt
ADD gui/streamlit_app.py /gpt4free/gui
RUN cp gui/streamlit_app.py .

EXPOSE 8501

CMD ["streamlit", "run", "streamlit_app.py"]
  1. Then rebuilded the image..

3.. :(

the same and without a docker..

image

iamjenechka avatar Apr 27 '23 15:04 iamjenechka

Same error, not working from localhost.

Screenshot 2023-04-27 at 21 05 56 Screenshot 2023-04-27 at 21 07 26

mike-antipov-dev avatar Apr 27 '23 18:04 mike-antipov-dev

I can not find cf_clearance on my browser(Google Chrome),just cf_bm.

shellock avatar Apr 29 '23 05:04 shellock

I can not find cf_clearance on my browser(Google Chrome),just cf_bm.

Do the 'git pull', phind is not working anymore.

mike-antipov-dev avatar Apr 29 '23 06:04 mike-antipov-dev

I can not find cf_clearance on my browser(Google Chrome),just cf_bm.

you will find it under "Application" tab -> storage -> cookies

ravimourya avatar Apr 29 '23 10:04 ravimourya

I can not find cf_clearance on my browser(Google Chrome),just cf_bm.

you will find it under "Application" tab -> storage -> cookies

Same i can't find it...

VincenzoPallini avatar Apr 30 '23 15:04 VincenzoPallini

I can not find cf_clearance on my browser(Google Chrome),just cf_bm.

weituo2002 avatar May 03 '23 14:05 weituo2002

image

weituo2002 avatar May 03 '23 14:05 weituo2002

Same here. I see other cookies with cf, but not anything that says cf_clearance

joshholly avatar May 10 '23 12:05 joshholly