Showing posts with label firewall. Show all posts
Showing posts with label firewall. Show all posts

Wednesday, December 6, 2023

Using Conda behind firewall

 To use conda behind firewall, in Windows:

1) Edit the .condarc

channels:
- defaults
proxy_servers:
  http: <proxy_host>:8080
  https: <proxy_host>:8080
ssl_verify: False

NOTE: Beware doing something like this:
http: http://proxyhost:8080
https: http://proxyhost:8080

Don't add "http://" above, it's wrong!


2) Using pip (need to trust the hosts)

pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org pandas

Some other better methods exist, the above is just one of the options that works.

Tuesday, August 9, 2016

Web Application Firewall (WAF)

By definition, WAF is going to filter out web request containing SQL injection, cross-site scripting, etc.

Ref: https://www.owasp.org/index.php/Web_Application_Firewall

CSP on Apache

To add CSP to root if sort of funny. The following will NOT work for most cases !!     <LocationMatch "^/$">        Header s...