Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
Hi all this is very wired question, I want to add both http and https Facebook sharing count.
Is this possible ?
I'm not sure whether I understand your question - feel free to clarify and I'll update my answer.
I'm assuming your Share config looks like the following:
If so, the "Step 1" already has https:// / http:// already replaced with // - this will resolve to the corresponding protocol.
You could update the code in the second section, replacing https:// with // and you should be good to go.
If I'm not understanding the question properly, feel free to clarify.
Cheers
Edit: or do you mean showing the shares from both your http:// and https:// domains? Ideally, if you have a https:// domain, you'll be redirecting all traffic to that anyway in your server config.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
So, I'm debugging a PHP repository and I came across the following lines
if (strpos($_SERVER['HTTP_HOST'], 'selfcaredocument.com') !== false)
{
header("Location: https://iammes.care");
exit;
}
Is this used for security, to not allow access to the page from a URL? I don't understand what it does. I'd like to know more, if you can give me a little more information. My understanding of strpos is that it is used to find the occurrence of a string. But what is the real purpose of its usage in the example?
'HTTP_HOST'
Contents of the Host: header from the current request, if there is one.
See: https://www.php.net/manual/en/reserved.variables.server.php
So if the HTTP_HOST is selfcaredocument.com or contains it, the client will be redirected to a different page.
I would confidently say that this is not a security measure. My guess would be that there is active traffic pointing to the mentioned domain, of which the owner would now like redirected.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
After I finished setting up TLS with let's encrypt.
my site under WordPress is only displayed in ugly HTML.
my architecture is the following:
(reverse proxy) => (nat box)=>(reverse proxy2)=>(web server)
I obviously changed the WordPress configuration for https.
Do you have any idea where this might be coming from?
You could try https://wordpress.org/plugins/wp-letsencrypt-ssl/#description. The plugin could force SSL/HTTPS, fixing insecure content & mixed content issues easily.
Access your site via browser and check the console. You will probably see resources (probably your css) that are being prevented to load because they are 'http' requests in a 'https' connection.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I'm trying to create an RSS feed by following these instructions but currently there are no results.
Here's my RSS:
http://imodelicon.com/test/instagram/instarss.php?hashtag=carshow
My http host is http://imodelicon.com and Request URI is /test/instagram/instrass.php. Is it correct?
If so, I don't see the hashtag result after the link. Could anyone help if there are other issues?
As suggested by #YakovL, adding as answer.
I tried to deploy your app locally and its working fine.
Since it is not working at your end, the only thing that comes to my mind is your settings.
Check what file_get_contents is returning. It might be blocked by a firewall or your hosting provider.
Also, check file_get_contents() not working for additional pointers.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Well im working on a small php script and i want to make a test to see if the visitor is logged to facebook in his computer using php.
I want to do it in these way:
If (USER IS CONNECTED){echo "yes";}else{echo "no";}
Is it possible? if yes how can i do it ?
There is no documented way to achieve this. The JS is there for a reason (AJAX requests).
The article you're referring to is exploiting redirects after login, and doesn't even work (fails to recognize you're logged into Twitter). Something that starts with "I found a way to abuse" shouldn't be taken into consideration.
That's unethical, it exploits a loophole that will be fixed sooner or later, and I call it cracking.
Why would you need this information anyhow?
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I need to provide some functionality to another site.
What way is better and why?
1. Iframe
2. Provide PHP code and HTML/CSS.
I trust another site's admin.
First option is good but you keep all the responsabilities on your side. if an error occur, you're the only one to blame.
HOW? : you generate a regular Html page and give them an iframe. that's how facebook does it.
Option 2 is the eazy way but you talk about storing things into your DB. in this case i hope you know the guy who manage the other website.