Jump to content

block e-mail request for web page


bigdoggy59

Recommended Posts

Environment:  Web site hosted on a Linux box.  Using CPanel's File Manager to password-protect a folder for our Sales group.

 

Problem:  One of our sales guys logged into the Sales area, opened a report, then clicked "send as e-mail" to a customer.  The customer receives the e-mail, gets a popup asking for username and password (as it should be).  She clicks "Cancel" then gets to see the report anyway (not good).  She tries again and intentionally fails the log in - and gets to see the report anyway (even more not good).  Then I get notified.

 

Question:  Is there any way in PHP to keep a password-protected page from being accessed from an e-mail?  Do I need to ignore the File Manager and build (or use) a PHP authentication class? 

 

Honestly, I didn't realize this was a security risk until now and would like to plug it before someone decides to send something more dangerous than a price sheet.

Link to comment
Share on other sites

Is there any way in PHP to keep a password-protected page from being accessed from an e-mail?

 

From email or not. Sounds like your password protection isn't working.

 

Emails simply contain links which when clicked on make a http request for the resource.

Link to comment
Share on other sites

From email or not. Sounds like your password protection isn't working.

 

Emails simply contain links which when clicked on make a http request for the resource.

 

Until this situation occurred, I'd have said the same thing.  What's odd is that if you try to go to the page directly and don't log in, you get a 403-Access Denied.  When the page has been sent as e-mail, it still asks for the password, but then shows the page whether a login is entered or not.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.