Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change referer 'CURLOPT_REFERER' #47

Open
atomGit opened this issue Nov 4, 2019 · 0 comments
Open

change referer 'CURLOPT_REFERER' #47

atomGit opened this issue Nov 4, 2019 · 0 comments

Comments

@atomGit
Copy link

atomGit commented Nov 4, 2019

/modules/checkers/http.php
line 194, 195:

//Add a semi-plausible referer header to avoid tripping up some bot traps
curl_setopt($ch, CURLOPT_REFERER, home_url());

i'd like to change the referer to google to see if i can avoid some '403 Forbidden' results (vimeo.com) - how do i do this - is the following correct:
curl_setopt($ch, CURLOPT_REFERER, 'google.com');

or do i need to keep the brackets:
curl_setopt($ch, CURLOPT_REFERER, 'google.com'());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant