Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jeremy Groot
/
stellervista-Intranet
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
49ac09ac
authored
2023-09-26 16:57:48 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
lock down files
Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent
ae4fadd3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
15 deletions
.htaccess
wp-content/themes/understrap-child/functions.php
.htaccess
View file @
49ac09a
...
...
@@ -25,11 +25,8 @@ RewriteRule . /index.php [L]
# require login for media files
# more info: https://m0n.co/11
<
IfModule
mod_rewrite.c
>
RewriteCond
%{REQUEST_URI} (\.pdf|\.docx|\.xlsx|\.ppt)$ [NC]
RewriteCond
%{HTTP_COOKIE} !stc_logged_in [NC]
RewriteCond
%{REQUEST_URI} (\.pdf|\.docx|\.xlsx|\.ppt|\.jpg)$ [NC]
RewriteCond
%{HTTP_COOKIE} !wordpress_logged_in_([a-zA-Z0-9_]*) [NC]
RewriteRule
(.*) https://stellervistaconnect.com/
</
IfModule
>
...
...
wp-content/themes/understrap-child/functions.php
View file @
49ac09a
...
...
@@ -270,13 +270,3 @@ add_action( 'init', 'wpa_91930' );
add_action
(
'wp_login'
,
'add_custom_cookie'
);
function
add_custom_cookie
()
{
setcookie
(
'stc_logged_in'
,
rand
(
5
,
15
),
time
()
+
WEEK_IN_SECONDS
);
}
// To Remove Cookie
add_action
(
'wp_logout'
,
'remove_custom_cookie'
);
function
remove_custom_cookie
()
{
setcookie
(
'stc_logged_in'
,
''
,
-
1000000
);
}
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment