vendredi 27 février 2015

How to filter HTTP requests services with UNICONET and PHP


I work in a company with UNICONET firewall installed on a Linux server which blocks all access to any website outside our network.


Is it possible to break this security and take control of all access including reports?


Many users inside the network are breaking security protocol by accessing porn websites, and I want to know how to fetch these requests with PHP and Javascript?


I'm implementing a filter class PenguinHTTP and OceanProtocol with Squid firewall.


See what I tried



public function filterRequests($request, $response){
$url = $request->getValue("www.xvideos.com");
$url->isBlocked();
if($url->isBlocked()){
redirect::location("location:busted.php");
}else{
$url->auth($response);
}
}


It seems my code is not working and I cannot fetch any blocked websites and line 7 throwing an Exception Error.


I really need help to fix this. Anyone?


Here is the following code:





<!DOCTYPE HTML>
<html xmlns="http://ift.tt/lH0Osb">
<head>
<style>
.body{border:solid #000 1px}
.b1{width: 50px; height:50px; border-radius:50px}
.b2{width: 150px; height:50px; border-top-right-radius:50px; border-bottom-right-radius:50px; border-left:none;margin-left:25px; border-right: 20px solid red}
.b3{width: 50px; height:50px; border-radius:50px; posistion:relative; float:left}

.stick{
animation: stick 2s;
animation-direction: alternate;
animation-play-state: running;
animation-iteration-count: infinite;
animation-delay: 0;
animation-timing-function: 1;
animation-direction: alternate;

-webkit-animation: stick 2s;
-webkit-animation-direction: alternate;
-webkit-animation-play-state: running;
-webkit-animation-iteration-count: infinite;
-webkit-animation-delay: 0;
-webkit-animation-timing-function: 1;
-webkit-animation-direction: alternate;

-moz-animation: stick 2s;
-moz-animation-direction: alternate;
-moz-animation-play-state: running;
-moz-animation-iteration-count: infinite;
-moz-animation-delay: 0;
-moz-animation-timing-function: 1;
-moz-animation-direction: alternate;

-o-animation: stick 2s;
-o-animation-direction: alternate;
-o-animation-play-state: running;
-o-animation-iteration-count: infinite;
-o-animation-delay: 0;
-o-animation-timing-function: 1;
-o-animation-direction: alternate;
}

@keyframes stick {
0% { width: 150px}
100% { width:500px }
}
@-webkit-keyframes stick {
0% { width: 150px}
100% { width:500px }
}
@-moz-keyframes stick {
0% { width: 150px}
100% { width:500px }
}
@-o-keyframes stick {
0% { width: 150px}
100% { width:500px }
}
</style>
</head>

<body>
I am Back. Suck it! <3
<br>
<div class="body b1">

</div>

<div class="body b2 stick">

</div>

<div class="body b3">

</div>


</body>
</html>



Kisses





Aucun commentaire:

Enregistrer un commentaire