限制特定页面的访问
This commit is contained in:
@@ -24,6 +24,17 @@ blog_bp = Blueprint('blog', __name__)
|
|||||||
index_path = '/var/open-ww3-project-ww3-tw/mirrors/'
|
index_path = '/var/open-ww3-project-ww3-tw/mirrors/'
|
||||||
index = AutoIndex(blog_bp, browse_root=index_path, add_url_rules=False)
|
index = AutoIndex(blog_bp, browse_root=index_path, add_url_rules=False)
|
||||||
|
|
||||||
|
# 重定向
|
||||||
|
@blog_bp.route('/mirrors/re/')
|
||||||
|
def re():
|
||||||
|
return('404 not found<br><a style="color: white;">这是你不该知道的地方</a><br><iframe src="//player.bilibili.com/player.html?isOutside=true&aid=115578442356850&bvid=BV12CCdBkEL6&cid=34120008494&p=1&autoplay=0" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" style="width: 100%; height: 100%;"></iframe>')
|
||||||
|
|
||||||
|
@blog_bp.route('/mirrors/paint/2024.2.13/临摹出来的乐色/不好说的人物/')
|
||||||
|
@blog_bp.route('/mirrors/paint/2024.2.13/临摹出来的乐色/不好说的人物/<path:subpath>')
|
||||||
|
def no_say_man(subpath=None):
|
||||||
|
return redirect(url_for('blog.re'))
|
||||||
|
|
||||||
|
|
||||||
@blog_bp.route('/')
|
@blog_bp.route('/')
|
||||||
def home():
|
def home():
|
||||||
db = get_owp_db()
|
db = get_owp_db()
|
||||||
|
|||||||
Reference in New Issue
Block a user