cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Former Member
Not applicable
Report Inappropriate Content
Message 1 of 31

Block Page - Email Link - add URL and other good info

Hello,

I am brand new to the Web Gateway product. I'm trying to alter the default block page so that it has a link that will email our group and include as much info in the email, automatically, as possible. With my prior product, I was able to do this using wildcards. I cannot for the life of me figure out how to plug in the wildcard into the body of the email successfully with MWG.

Currently, here's the modified line I have (this is Default Schema, en, html, default by the way).

    <td class='helpDeskData' background='$<propertyInstance useMostRecentConfiguration="false" propertyId="com.scur.engine.system.proxy.enduserurl"/>$/files/default/img/bg_navbar.jpg'>
      If you believe you have received this message in error, click <a href="mailto:xxx@company.com?subject=Webpage Blocked by Web Security Gateway&body=This website was blocked by Web Security Gateway ">HERE</a> to send a change request.

This works correctly.

If I attempt to add any wildcards (Resource Reference?) I am not successful. If I add URLBlocked.html or URLBlocked.txt, the email does not work properly.

<a href="xxx@company.com?subject=Webpage Blocked by Web Security Gateway&body=This website was blocked by Web Security Gateway $<propertyInstance useMostRecentConfiguration="false" propertyId="com.scur.engine.system.proxy.enduserurl"/>$/files/default/en/URLBlocked.html ">HERE</a> to send a change request.

     The line above actually says $Proxy.EndUserURL$/files...

If I do that, I get this in the body of the email:

This website was blocked by Web Security Gateway /mwg-internal/de5fs23hu73ds/files/default/en/URLBlocked.html

My users are extremely used to being able to just click a button to send the email, and my team is used to getting all the pertinent information in the email without having to dig through logs, etc.

Can this be done?

thanks!
Robbie

30 Replies
eelsasser
McAfee Retired
McAfee Retired
Report Inappropriate Content
Message 2 of 31

Re: Block Page - Email Link - add URL and other good info

You should $URL$ within the body=, not $Proxy.EndUserURL$/files...

That method is one way to do it, but you can also setup a set of rules and pages that let MWG do all the work instead of relying on a local mail client to send the mail.

You can setup a way to click on a link:

Capture1.JPG

Then have a form come up to enter comments:

Capture2.JPG

Then submit them back to the MWG and have it send the email:

Capture3.JPG

I need to polish up some rules that a couple of have worked on, but if you're interested I can post.

Former Member
Not applicable
Report Inappropriate Content
Message 3 of 31

Re: Block Page - Email Link - add URL and other good info

Oh yea, that's very nice!

I'd love to have those rules. Right now I'm lost at how to do anything more than simple stuff, and training isn't until May.

eelsasser
McAfee Retired
McAfee Retired
Report Inappropriate Content
Message 4 of 31

Re: Block Page - Email Link - add URL and other good info

Ok, unzip this read the readme.txt.

It's probably not self-explanatory, but let me know if you need some assist.

Just make sure you go through the configurationEmail notification settings and put in your own SMTP server information,

HELO name
helo (String)
FQDN.OF.MWG
SMTP port
port (Number)
25
Sender name
sender (String)
MWG@COMPANY.COM
SMTP server
server (String)
MY.SMTP.SERVER.COMANY.COM

And go into the events on the Send Email rule and set the correct email address:

EnabledSiteReview:Send Email Notification
1: URL.Path equals "/mwg-internal/sitereview"
2: AND URL.HasParameter("submit") equals true
ContinueEmail.Send("HELPDESK@COMPANY.COM","Site Review Request",String.ReplaceAll(User-Defined.SiteReviewBody,"+"," "))<SiteReviewSMTPServer>ToDo: Make sure the SMTP configuration is set to your Email server, Make sure the Email Recipient is set properly.


Then edit the URL Blocked page and paste in the content in the zip for that.

And create 2 other block pages called SiteReviewRequest and SiteReviewSubmitted and paste in the content from the zip into their respective locations.

Former Member
Not applicable
Report Inappropriate Content
Message 5 of 31

Re: Block Page - Email Link - add URL and other good info

I've tried to get these working to no avail. I can get the block page to display, but the links don't work to send the request. Keep in mind, I am brand new to this product, so anything I have to do will have to be detailed. This is the first time I've ever worked in the MWG product.

I think I didn't create the SiteReviewRequest and SiteReviewSubmitted pages correctly.

eelsasser
McAfee Retired
McAfee Retired
Report Inappropriate Content
Message 6 of 31

Re: Block Page - Email Link - add URL and other good info

So you can at least get the SiteReviewRequest page to display?

If so, view source, save, zip and send that to me via Private message. We should be able to see what's going on inside the page.

Former Member
Not applicable
Report Inappropriate Content
Message 7 of 31

Re: Block Page - Email Link - add URL and other good info

I can only get the block page. The link to site request doesn't work. Also, I noticed my formatting is all off.

Untitled.jpg

Former Member
Not applicable
Report Inappropriate Content
Message 8 of 31

Re: Block Page - Email Link - add URL and other good info

Here is how I overcame the problem with the Site Review Requests in MWG 7:

https://community.mcafee.com/message/170719#170719

jebeling
Employee
Employee
Report Inappropriate Content
Message 9 of 31

Re: Block Page - Email Link - add URL and other good info

Hi Robbie,

While Tom's solution will work. The advantage of the SiteReview ruleset is that it is totally web based with the email originating from the web gateway itself. This means that you aren't dependent on an email client being present or available on the system with the browser. Were you able to get the ruleset to work? From your comments above, I suspect that the block pages are not correct. You need to create two new block pages and their names need to match exactly. The template for the pages can be your default template so that they maintain the same "look and feel" of your other block pages. Positioning of the ruleset in your policy can also be a factor. The ruleset works via redirects/hyperlinks that are directed to and processed by the web gateway itself. 

Was my reply helpful?

If this information was helpful in any way or answered your question, will you please select Accept as a Solution and/or Kudo my reply so we can help other community participants?
Troja
Reliable Contributor
Reliable Contributor
Report Inappropriate Content
Message 10 of 31

Re: Block Page - Email Link - add URL and other good info

Hey,

this is perfect! 🙂

Is there any way to configure MWG sending the e-mail itself?

Cheers,

Thorsten

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use our Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from product experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by employees.
Join the Community
Join the Community