Pointing SquidGuard Squid proxy for realtime url reputation or category check - sophoslabs-intelix

I am trying to use Sophos Intelix for url category checking or for filtering through squid proxy. Also caching a result locally on the proxy (for a specific duration) until url is checked again. 
I am using Intelix for some time in other custom apps and it works well. I am looking for some help with setting up Sophos Intelix integration with squid. Any help to point me in the right direction is appreciated.

Related

WSO2 Enterprise integrator Swagger TryOut not showing data

I am busy with my internship and I am trying out WSO2 with setting up a sequence for an api. I created an api from an existing REST api, but when I try it out with Swagger it does not show any data.
Swagger config
Trying out swagger
It uses the correct curl but I cant let it been shown if I try it out.
correct API data
I have no clue in how to move further with this. Would love if someone could help me out in the right direction.
EDIT/UPDATE-
I checked out the browser console (f12 on your browser) to check out what the exact problem is.
SOLUTION:
I had to allow origins for CORS in the StartUp.cs
This allowed the client to contact it. I am not sure if this is a good solution but it worked for my Local WSO2

ATS policy issue when using a redirect url in Swift

I am using this link for example to load the link. Although the link is a http link it will be redirected to a https link. It works in the browser.
However, as soon as I let my iOS Application load the resource it will say "The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.".
I am using this library to load the picture. Is it not supported that Swift loads the https resource? I could think of that ATS blocks the connection to the server so the redirect can't even be received.
I would be very thankful for any thoughts on this.
Christian
While you certainly can disable the entirety of ATS using the solutions provided by Kishan and Johnson, if you know the domain of the http resource you are trying to load, you have better options. For details of why the disabling of ATS entirely is not the best idea, see this post.
Better options are:
If you know the http resource is always going to give you a redirect to the same https:// url, why not simply use the https:// url in your code. This won't work if the redirect is dynamic, but if your code is trying to load http://www.example.com/resource and that always redirects to https://www.example.com/resource, why not just change your code to go to the https version.
Only disable ATS for the domain in where you need to allow non https connections. This allows you to only allow http connections for domains you know don't support https, better protecting your application users.
Your ATS settings in your info.plist wqould look something like this:
If and only if your urls are driven by data that you don't control (i.e. the domains in those urls could be anything), you will need to disable all of ATS, and Apple may eventually want you to provide justification for disabling it. Originally they were going to have all ATS disabled apps go through an additional justification request processs, but they haven't mentioned that recently. This should be a last resort.
Honestly, looking at your example UR
Go to info.plist add a term called App Transport Security Settings.
And under that add Allow Arbitrary Loads

Facebook WebGL Game + Facebook Simple Hosting + CORS. Possible?

Note: Solved - question makes no sense, my understanding of CORS was incorrect and lead me to ask this question.
The answer is simple as pointed out by #CBroe below - CORS needs to be configured on the game server (in the example in this qestion).
I have a Facebook WebGL game that I'm wanting to host using Facebook's simple hosting (https://developers.facebook.com/docs/games/services/contenthosting/).
Is it possible to use Facebook's Simple Hosting for a WebGL game and still contact my web server (mygamedomain.com)? Is there somewhere in the FB app config to specify domains to allow?
Is the only way to get around this to serve the game from mygamedomain.com also?
I'd really like to avoid serving the game from my webserver if possible.
Any ideas or suggestions?
Not doing so will generate an error as expected:
XMLHttpRequest cannot load https://mygamedomin.com/mygame.php. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://apps-1287636812638.apps.fbsbx.com' is therefore not allowed access.
Just to be clear as there seems to be some confusion:
Game is hosted by facebook using their "Simple Hosting" service, not on my own server, .
I know CORS is the solution - the question is - does Facebook allow/support this? If so where do I configure the domains to allow.
If this was on my own server I the answer is trivial - CORS. But it's not.
There are hacks to circumvent cross-origin restrictions - I'm not looking for these. There's plenty of resources already covering these.
Edit: changed the title to more accurately reflect my question.
CORS is the solution to your problem here.
This question/the answer is not Facebook specific - the issue would be the same with any other domain serving your content, that is different from your own.
Your client-side code is hosted under the Facebook domain, and tries to make a request to your domain - that is the cross-domain part. Your domain is the party that holds the power to either allow or deny this request - by default, it would be denied, but by responding with the appropriate header, your server can signal to the browser, "yes, that's ok, he [your code running under facebook.com] is one of the good guys ..."
So you need to configure this on your server, that you want to make the request to.

Domain variants http https and Google Webmaster Tools

Hopefully a quick question.
I've just set up and launched a site and with Google's webmaster tools search console thing, I go to add my site which is great.
But I've been looking around to try and find what site URLs I should add. Here, google have a page regarding this:
https://support.google.com/webmasters/answer/34592?hl=en
On there it lists add the http and https sites separately.
I've set the config to redirect all requests to http, http + www and https to go to https://www.sitename if that makes sense.
The question is that in this case, should I add all 4 variants to google's webmaster tools or just the one that I'm using(https://www. version)?
You can add all versions, but that is not necessarily.
Also, you can set up preferred domain for google: https://support.google.com/webmasters/answer/44231
Actually, the best idea is to enter ALL your domain variants, including https variants if you use SSL for this reason: if you get penalties against a variant of your domain and you haven't registered it you will not see the warning messages in Google Search Console (Google Webmaster Tools) and never know what is killing your traffic.

DotnetNuke redirect

our client needs to shortcuts to particular pages
We need to redirect non existent urls like
http://site.com/promotion1
to the actual URL similar to
http://site.com/promotions/promotion1/tabid/799/language/en-AU/Default.aspx
...
I've sent a list of appropriate DNN modules to our client but it may take them forever to get back to me.
In the mean time they still submitting requests to us to create redirects for them.
if there's no cost involved then i wont have to wait for them to get back to me.
so I'm looking for a Quick and free way to enable the clients to set these up on this own.
I've looked at:
MAS.ActionRedirect
Ventrian Friendly URL Provider
DotNetNuke URL Rewriting HTTP Module
But haven't had much luck in the small amount of time i have available.
Has anyone got some suggestions on how to achieve our goal with either the above resources or maybe some additional resource i haven't found yet?
(DNN v4.9)
You should be able to use the built-in friendly URL functionality within DNN, or use a URL rewriter module within IIS.
You can read my answer about using the DNN Friendly URL functionality for more details, or look into the IIS URL Rewrite module.