Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
iwl-live
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anthony.Suerte
iwl-live
Commits
f912d780
Commit
f912d780
authored
Jul 22, 2021
by
Anthony.Suerte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HTTP_REFERER TESTER
parent
ed9a4204
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
test_referring.php
test/test_referring.php
+23
-0
No files found.
test/test_referring.php
0 → 100644
View file @
f912d780
<?php
function
getServer
(
$param
){
return
isset
(
$_SERVER
[
$param
])
?
$_SERVER
[
$param
]
:
""
;
}
$connector
=
getServer
(
"HTTP_REFERER"
);
if
(
$connector
==
""
){
echo
"This is True<br/>"
;
$connector
=
getServer
(
"REMOTE_ADDR"
);
if
(
$connector
==
""
)
echo
"No Chance 1"
;
}
else
{
$connector
=
parse_url
(
$connector
);
echo
"Parse URL: "
.
print_r
(
$connector
,
true
)
.
"<br/>"
;
$connector
=
gethostbyname
(
$connector
[
"host"
]);
}
echo
$connector
;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment