Private Php Page

Private Php Page




🛑 👉🏻👉🏻👉🏻 INFORMATION AVAILABLE CLICK HERE👈🏻👈🏻👈🏻




















































Sign up or log in to view your list.
Then, only visitors who have the exact URL (e.g. received by email) can see the page. We check the $_GET['secret_token'] before displaying the content.
My problem is that if by any chance search bots find the URL, they will simply index it and the URL will be public. Is there a practical method to avoid bot visits and subsequent index?
Login system (e.g. by php session): But I do not want to offer user login.
Password-protected folder: The problem is as above.
Using Robots.txt: Many search engine bots do not respect it.
Googlebot
Googlebot 13.4k●4141 gold badges●115115 silver badges●212212 bronze badges
What you are talking about is security through obscurity. Its never a good idea. If you must, I would offer these thoughts:
CrazyDart
CrazyDart 3,803●22 gold badges●2121 silver badges●2929 bronze badges
hakre
181k●4747 gold badges●394394 silver badges●761761 bronze badges
Thanks for useful answer and realistic comments! – Googlebot Feb 9 '12 at 18:44
Try generating a 5-6 alphanumeric password and attach along with the email, so eventhough robots spider it , they need password to access the page. (Just an extra added safety measure)
Shankar Narayana Damodaran
Shankar Narayana Damodaran 65.5k●4343 gold badges●8787 silver badges●121121 bronze badges
If there is no link to it (including that the folder has no index view), the robot won't find it
You could return a 404, if the token is wrong: This way, a robot (and who else doesn't have the token) will think, there is no such page
Eugen Rieck
Eugen Rieck 60.7k●1010 gold badges●6666 silver badges●8989 bronze badges
"If there is no link to it": I would say if it is ever sent in an email there is a good chance it will be indexed. – CrazyDart Feb 9 '12 at 18:20
Well, if it is sent in an e-mail WITH the token, and this gets indexed, you are out of luck. With any solution. If you consider the contents of all e-mails public, then no authentication short of a hardware dongle will help: The moment you mail somebody the token/password whatever, the moment everybody knows it. – Eugen Rieck Feb 10 '12 at 1:55
As long as you don't link to it, no spider will pick it up. And, since you don't want any password protection, the link is going to work for everyone. Consider disabling the secret key after it is used.
Lg102
Lg102 4,163●33 gold badges●3535 silver badges●5757 bronze badges
"As long as you don't link to it, no spider will pick it up": Thats not true at all. Spiders get seeded from many sources, not just links from other pages. – CrazyDart Feb 9 '12 at 18:20
you only need to tell the search engines not to index /content.php, and search engines that honor robots.txt wont index any pages that start with /content.php.
zzzzBov
zzzzBov 160k●4747 gold badges●309309 silver badges●350350 bronze badges
one bad bot is enough to make my private content publicly available! – Googlebot Feb 9 '12 at 18:41
if you're emailing a secret token to users, your private content is already publicly available. The only way a bot would find the secret token is if someone linked to it somewhere that the bot had access to. If that happens, your secret is not a secret anyway. – zzzzBov Feb 9 '12 at 19:05
As others pointed, it can be in different ways; e.g. visitors toolbar. – Googlebot Feb 9 '12 at 21:22
Leaving the link unpublished will be ok in most circumstances...
...However, I will warn you that the prevalence of browser toolbars (Google and Yahoo come to mind) change the game. One company I worked for had pages from their intranet indexed in Google. You could search for the page, and a few results came up, but you couldn't access them unless you were inside our firewall or VPN'd in.
We figured the only way those links got propagated to Google had to be through the toolbar. (If anyone else has a better explanation, I'd love to hear it...) I've been out of that company a while now, so I don't know if they ever figured out definitively what happened there.
Tim
Tim 3,939●77 gold badges●3333 silver badges●5959 bronze badges
You are quite right! This is the reason that I am afraid of sharing private URL as described above. – Googlebot Feb 9 '12 at 18:41
I think you'll need to send a code in the email (as mentioned in an earlier post) or something like a CAPTCHA to keep the bots away and be sure you're dealing with a person. – Tim Feb 9 '12 at 18:53
Click here to upload your image (max 2 MiB)
You can also provide a link from the web.
By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy
2021 Stack Exchange, Inc. user contributions under cc by-sa
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
Accept all cookies Customize settings

Sign up or log in to view your list.
I have a web site that have HTML pages stored in a private folder. I want a PHP script that can read the HTML file then push it to the browser.
My tought was to get the html file with the file() function in PHP. Then echo() it to the browser. That works for the html content of the page. The images and the css does not follow however.
I heard of a "render" function in IIS or ASP that render the HTML content of a web page in a private folder then send the images in a binary format. Does PHP have something similar?
Currently I read the file as follow :
The reason we are trying to do that is to protect the url / information of the pages contained in this folder. The user will have to connect to the web service, then the PHP script will push the html pages
David Laberge
David Laberge 13.4k●1414 gold badges●5151 silver badges●8383 bronze badges
I don't know the answer to your question, but an alternative would be to put the JS and the CSS into the header of the file that you're pulling. Save your HTML files w/o the doctype, html or head tags, then in the PHP, build the HTML output. Add your html tags, your css, js, etc. Just a thought. – phpmeh Feb 20 '12 at 20:21
If the images and CSS are also in a private folder, then those will need to be pushed out to the user agent when the user agent requests them. You could use mod_rewrite to accomplish this (have your script handle all requests for .html, .css, .js, .png, .jpg, etc...) – Brian Driscoll Feb 20 '12 at 20:22
What do you want this for? Are you trying to load a normal web page based on templates? If so, an image is a terrible choice for a number of reasons. – SimonMayer Feb 20 '12 at 20:24
Is there a reason you can't store the content in a database? Does it need to be stored as flat files? – SimonMayer Feb 20 '12 at 21:26
You can use the tag base to solve the problem of the relative path of the files, something like this:
Paulo Rodrigues
Paulo Rodrigues 4,943●77 gold badges●3030 silver badges●5858 bronze badges
sorry, now I read the reason. but, if you need protect some informations, what do you think protect only files that need protection, as files like css, js and images are public? – Paulo Rodrigues Feb 20 '12 at 21:08
CSS and images are not displayed because their paths in the HTML files is relative to HTML files, right? And if you have these CSS and images in the same private folder, how can you hope the user will fetch them?
Indirect, you should fetch CSS and images the same way you do with HTML. But this means you have to replace all paths in your displayed HTML, that is quite absurd. In fact, we are talking about some kind of proxy now... ?!?!?
Anyway echo(file_get_contents($htmlFile)); is less stressful.
lorenzo-s
lorenzo-s 15.6k●1414 gold badges●4444 silver badges●8282 bronze badges
Another option if it is an tag and the image is also stored outside of the root you can just make the src= attribute as so:
src="get_image.php?file=thisfile.png" // add a $_GET if needed to distinguish files
Zac
Zac 1,545●22 gold badges●1111 silver badges●1515 bronze badges
Click here to upload your image (max 2 MiB)
You can also provide a link from the web.
By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy
2021 Stack Exchange, Inc. user contributions under cc by-sa
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
Accept all cookies Customize settings

Bbw Fetish Pics
Vintage Retro Girls
Private Erotic Films
Young Girl Preteen Jerk Dad
Nonude Young Videos
php - How to make a private URL? - Stack Overflow
Render HTML pages from private folder in PHP - Stack Overflow
PHP private Keyword - W3Schools
a11yall/page-private.php at master · happywebdiva/a11yall ...
EightyTwo/page-private.php at master · wearegiants ...
Личный кабинет абонента АО "Тываэнергосбыт"
Public Private Php | ВКонтакте
НО "ГЖФ при Президенте РТ"
Instagram Private Photo Downloader
Private Php Page


Report Page