PHP does not work after certification lets encrypt [closed] - php

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.

Related

COUNT both http and https Facebook sharing [closed]

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.

Instagram RSS Feed in PHP script [closed]

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.

What browsers don't send HTTP_Referer [closed]

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 want to show certain content if traffic comes to my wordpress site from google search. I want to use $_SERVER["HTTP_REFERER"] . Security is not a huge issue -- if some client really wants to lie that they are coming thru google that is no big deal (they'll just see an ad). I also understand that I need to check what they send through $_SERVER["HTTP_REFERER"] for malicious code. However, I see that according to answers in this post Determining Referer in PHP not all browsers send HTTP_REFERER.
What browsers don't send it? What versions?
When the referring site has SSL turned on, it will often not include the HTTP_REFERER. As you can imagine, this is by design for security purposes. Code accordingly.
This makes it difficult to know when visitors are coming from sites like youtube and gmail which use SSL by default.
Also this question is similar:
Is there referrer header while using SSL?

cURL: Post values needed? [closed]

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'm using php and curl to get the content of various websites. Some sites require post values. I want to check if the site expect any post values to be sent.
You cannot do that, unless sites specifically tell you in their response headers what they are expecting (and they rarely, if ever, do). Best you can do is take a look at returned headers from the request. You cannot automate this process.
Not entirely sure what you're asking here OP. But when creating scripts in cURL to automate interaction with other websites you generally have to investigate manually to find out what parameters need to be passed to get to the information you want...
It'll be a case of using tools such as Source Code View, and the firefox addon which allows you to modify post information (forgotten what its called) to see whats actually happening when you visit the site.

Provide embedded block for another site [closed]

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.

Categories