\hypertarget{classplg_system_httpbl}{
\section{plgSystemHttpbl Class Reference}
\label{classplg_system_httpbl}\index{plgSystemHttpbl@{plgSystemHttpbl}}
}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classplg_system_httpbl_ae8078df08a019f00849086034a654b15}{\_\-\_\-construct} (\&\$subject, \$params)
\item 
\hyperlink{classplg_system_httpbl_aeae92ab480790021604c088e1939dedb}{httpbl\_\-check} (\$apikey)
\item 
\hyperlink{classplg_system_httpbl_a2121c0e3b99f87b275c45dbd3a8ac9ac}{httpbl\_\-logme} ()
\item 
\hyperlink{classplg_system_httpbl_a05246844e2492e0881514b4fab778d33}{httpbl\_\-blockme} ()
\item 
\hyperlink{classplg_system_httpbl_acb3a8581761a7ed9a064a44642062617}{httpbl\_\-infected} ()
\end{DoxyCompactItemize}


\subsection{Detailed Description}
class \hyperlink{classplg_system_httpbl}{plgSystemHttpbl} \begin{Desc}
\item[\hyperlink{todo__todo000001}{Todo}]port to Joomla 1.6/1.7 \end{Desc}


Definition at line 23 of file httpbl.php.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{classplg_system_httpbl_ae8078df08a019f00849086034a654b15}{
\index{plgSystemHttpbl@{plgSystemHttpbl}!\_\-\_\-construct@{\_\-\_\-construct}}
\index{\_\-\_\-construct@{\_\-\_\-construct}!plgSystemHttpbl@{plgSystemHttpbl}}
\subsubsection[{\_\-\_\-construct}]{\setlength{\rightskip}{0pt plus 5cm}\_\-\_\-construct (
\begin{DoxyParamCaption}
\item[{\&\$}]{subject, }
\item[{\$}]{params}
\end{DoxyParamCaption}
)}}
\label{classplg_system_httpbl_ae8078df08a019f00849086034a654b15}
Constructor.


\begin{DoxyParams}[1]{Parameters}
object & {\em \$subject} & The object to observe \\
\hline
array & {\em \$params} & An array that holds the plugin configuration \\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.0 
\end{DoxySince}


Definition at line 32 of file httpbl.php.



\subsection{Member Function Documentation}
\hypertarget{classplg_system_httpbl_a05246844e2492e0881514b4fab778d33}{
\index{plgSystemHttpbl@{plgSystemHttpbl}!httpbl\_\-blockme@{httpbl\_\-blockme}}
\index{httpbl\_\-blockme@{httpbl\_\-blockme}!plgSystemHttpbl@{plgSystemHttpbl}}
\subsubsection[{httpbl\_\-blockme}]{\setlength{\rightskip}{0pt plus 5cm}httpbl\_\-blockme (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classplg_system_httpbl_a05246844e2492e0881514b4fab778d33}
If a threat has been found blocks the access, still leaving a javascript generated link that false positive users can use to continue browsing. If the links is clicked a 'notabot' cookie is set.

the remote user will get the infection warning message, but will be able to navigate

\begin{DoxySince}{Since}
1.0 
\end{DoxySince}


Definition at line 190 of file httpbl.php.

\hypertarget{classplg_system_httpbl_aeae92ab480790021604c088e1939dedb}{
\index{plgSystemHttpbl@{plgSystemHttpbl}!httpbl\_\-check@{httpbl\_\-check}}
\index{httpbl\_\-check@{httpbl\_\-check}!plgSystemHttpbl@{plgSystemHttpbl}}
\subsubsection[{httpbl\_\-check}]{\setlength{\rightskip}{0pt plus 5cm}httpbl\_\-check (
\begin{DoxyParamCaption}
\item[{\$}]{apikey}
\end{DoxyParamCaption}
)}}
\label{classplg_system_httpbl_aeae92ab480790021604c088e1939dedb}
Main Function checks the user's IP against the BlockList Performs a gethostByName on the remote user's IP address using Project Honeypot DNS and specially formatted DNS Queries If a result is found and identified as a threat, calls the logging, then the blocking functions

\begin{DoxySeeAlso}{See also}
\hyperlink{classplg_system_httpbl_a2121c0e3b99f87b275c45dbd3a8ac9ac}{httpbl\_\-logme} function logs an indentified threat 

\hyperlink{classplg_system_httpbl_a05246844e2492e0881514b4fab778d33}{httpbl\_\-blockme} function brings up a warning message, sends a 403 header and a javascript link for false positiive 
\end{DoxySeeAlso}

\begin{DoxyParams}[1]{Parameters}
string & {\em \$apikey} & A string containing the user's Projec Hopot's API Key \\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.0 
\end{DoxySince}


Definition at line 115 of file httpbl.php.

\hypertarget{classplg_system_httpbl_acb3a8581761a7ed9a064a44642062617}{
\index{plgSystemHttpbl@{plgSystemHttpbl}!httpbl\_\-infected@{httpbl\_\-infected}}
\index{httpbl\_\-infected@{httpbl\_\-infected}!plgSystemHttpbl@{plgSystemHttpbl}}
\subsubsection[{httpbl\_\-infected}]{\setlength{\rightskip}{0pt plus 5cm}httpbl\_\-infected (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classplg_system_httpbl_acb3a8581761a7ed9a064a44642062617}
Displays Infection Message

\begin{DoxySince}{Since}
1.0 
\end{DoxySince}
\begin{Desc}
\item[\hyperlink{todo__todo000003}{Todo}]give the user a possibility of closing the div by inserting some javascript into the warning div 

move the html code from the langage files to a default tmpl file \end{Desc}


Definition at line 231 of file httpbl.php.

\hypertarget{classplg_system_httpbl_a2121c0e3b99f87b275c45dbd3a8ac9ac}{
\index{plgSystemHttpbl@{plgSystemHttpbl}!httpbl\_\-logme@{httpbl\_\-logme}}
\index{httpbl\_\-logme@{httpbl\_\-logme}!plgSystemHttpbl@{plgSystemHttpbl}}
\subsubsection[{httpbl\_\-logme}]{\setlength{\rightskip}{0pt plus 5cm}httpbl\_\-logme (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classplg_system_httpbl_a2121c0e3b99f87b275c45dbd3a8ac9ac}
Logs the threat into a text file

\begin{DoxySince}{Since}
1.0 
\end{DoxySince}
\begin{Desc}
\item[\hyperlink{todo__todo000002}{Todo}]for Joomla 1.6/1.7 versions 1og that information db for ease of use and extraction \end{Desc}


Definition at line 166 of file httpbl.php.



The documentation for this class was generated from the following file:\begin{DoxyCompactItemize}
\item 
plg\_\-httpbl\_\-1.0\_\-j15/\hyperlink{httpbl_8php}{httpbl.php}\end{DoxyCompactItemize}
